<?PHP
/*
=====================================================
 DataLife Engine v9.8 - by DLE Farsi Group 
-----------------------------------------------------
 http://datalifeengine.ir/
-----------------------------------------------------
 Copyright (c) 2006,2013 DLE Farsi Group
=====================================================
*/

if(!defined('DATALIFEENGINE'))
{
  die("Hacking attempt!");
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Our Help Sections
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
$help_sections = array();

//----------------------------------
// Templates Section
//----------------------------------
$help_sections["backup"] = <<<HTML
<table width="100%">
    <tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-right:10px;"><div class="navigation">تهیه نسخه پشتیبانی (بک آپ گیری)</div></td>
    </tr>
</table>
<div class="unterline"></div>
<div align=center><a href="http://datalifeengine.ir/2007/03/19/backup.html">اينجا كليك كنيد</a></div>
HTML;

$help_sections["date"] = <<<HTML
<table width="100%">
    <tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-right:10px;"><div class="navigation">فرمت هاي تاريخ</div></td>
    </tr>
</table>
<div class="unterline"></div>

<UL>
<LI><b>a</b> - "am" يا "pm"
<LI><b>A</b> - "AM" يا "PM"
<LI><b>B</b> - âðåìÿ Swatch Internet 
<LI><b>d</b> - äåíü (÷èñëî) ìåñÿöà, 2 öèôðû ñ âåäóùèì íóë¸ì, åñëè íåîáõîäèìî; ò. å. îò "01" äî "31" 
<LI><b>D</b> - äåíü íåäåëè, áóêâåííûé, 3 áóêâû; íàïðèìåð, "Fri"
<LI><b>F</b> - ìåñÿö, áóêâåííûé, long; íàïðèìåð, "January" 
<LI><b>g</b> - ÷àñ, 12-÷àñîâîé ôîðìàò áåç âåäóùèõ íóëåé; ò.å. îò "1" äî "12" 
<LI><b>G</b> - ÷àñ, 24-÷àñîâîé ôîðìàò áåç âåäóùèõ íóëåé; ò.å. îò "0" äî "23" 
<LI><b>h</b> - ÷àñ, 12-÷àñîâîé ôîðìàò; ò.å. îò "01" äî "12"
<LI><b>H</b> - ÷àñ, 24-÷àñîâîé ôîðìàò; ò.å. îò "00" äî "23" 
<LI><b>i</b> - ìèíóòû; ò.å. îò "00" äî "59"
<LI><b>I</b> (çàãëàâíàÿ i) - "1", åñëè Daylight Savings Time, "0" - â ïðîòèâíîì ñëó÷àå.
<LI><b>j</b> - äåíü (÷èñëî) ìåñÿöà áåç âåäóùèõ íóëåé; ò.å. îò "1" äî "31" 
<LI><b>l</b> ('L' â íèæíåì ðåãèñòðå) - äåíü íåäåëè, áóêâåííûé, long; íàïðèìåð, "Friday" 
<LI><b>L</b> - boolean, óêàçûâàþùåå, âèñîêîñíûé ëè ãîä; ò.å. "0" èëè "1" 
<LI><b>m</b> - ìåñÿö; ò.å. îò "01" äî "12"
<LI><b>M</b> - ìåñÿö, áóêâåííûé, 3 áóêâû; íàïðèìåð, "Jan" 
<LI><b>n</b> - ìåñÿö áåç âåäóùèõ íóëåé; ò.å. îò "1" äî "12" 
<LI><b>O</b> - Ðàçíèöà ñ âðåìåíåì ïî Ãðèíâè÷ó, â ÷àñàõ; íàïðèìåð, "+0200" 
<LI><b>r</b> - RFC 822 ôîðìàò äàòû; íàïðèìåð, "Thu, 21 Dec 2000 16:01:07 +0200" (ââåä¸í â PHP 4.0.4) 
<LI><b>s</b> - ñåêóíäû; ò.å. îò "00" äî "59"
<LI><b>S</b> - ïðîñòîé àíãëèéñêèé ñóôôèêñ äëÿ äíÿ (÷èñëà) ìåñÿöà, 2 ñèìâîëà; ò.å. "st", "nd", "rd" èëè "th"
<LI><b>t</b> - êîëè÷åñòâî äíåé â äàííîì ìåñÿöå; ò.å. îò "28" äî "31" 
<LI><b>T</b> - óñòàíîâêà Timezone/×àñîâîé ïîÿñ íà äàííîé ìàøèíå; íàïðèìåð, "EST" èëè 
"MDT" 
<LI><b>U</b> - ñåêóíäû ýïîõè Unix Epoch (íà÷èíàÿ ñ January 1 1970 00:00:00 GMT) 
<LI><b>w</b> - äåíü íåäåëè, ÷èñëîâîé, ò.å. îò "0" (Sunday) äî "6" (Saturday) 
<LI><b>W</b> - ISO-8601 íîìåð íåäåëè â ãîäó, íåäåëè íà÷èíàþòñÿ ñ ïîíåäåëüíèêà/Monday 
(ââåäåíî â PHP 4.1.0) 
<LI><b>Y</b> - ãîä, 4 öèôðû; íàïðèìåð, "1999"
<LI><b>y</b> - ãîä, 2 öèôðû; íàïðèìåð, "99" 
<LI><b>z</b> - äåíü ãîäà; ò.å. îò "0" äî "365"
<LI><b>Z</b> - ñìåùåíèå ÷àñîâîãî ïîÿñà, â ñåêóíäàõ (ò.å. îò "-43200" äî "43200"). Ñìåùåíèå ÷àñîâûõ ïîÿñîâ ê çàïàäó îò UTC âñåãäà îòðèöàòåëüíîå, à äëÿ ïîÿñîâ ê âîñòîêó îò UTC - âñåãäà ïîëîæèòåëüíîå.</LI>
</UL>



HTML;

$help_sections["xfields"] = <<<HTML
<table width="100%">
    <tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-right:10px;"><div class="navigation">راهنماي استفاده از فيلدهاي اضافي در مطالب</div></td>
    </tr>
</table>
<div class="unterline"></div>
<div align=center><a href="http://datalifeengine.ir/2007/04/04/xfiels.html">اينجا كليك كنيد</a></div>
HTML;

$help_sections["xprofile"] = <<<HTML
<table width="100%">
    <tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-right:10px;"><div class="navigation">راهنماي استفاده از فيلدهاي اضافي در مشخصات كاربري</div></td>
    </tr>
</table>
<div class="unterline"></div>
<div align=center><a href="http://datalifeengine.ir/2007/04/04/xfiels_users.html">اينجا كليك كنيد</a></div>
HTML;

$help_sections["seo"] = <<<HTML
<table width="100%">
    <tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-right:10px;"><div class="navigation">نحوه ی فعل کردن لینکهای Seo</div></td>
    </tr>
</table>
<div class="unterline"></div>
<div align=center><a href="http://datalifeengine.ir/2006/09/25/how_to_active_seo_links.html">اينجا كليك كنيد</a></div>
HTML;

$help_sections["bbcodes"] = <<<HTML
<table width="100%">
    <tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-right:10px;"><div class="navigation">راهنماي BBCodes</div></td>
    </tr>
</table>
<div class="unterline"></div>
<div align=center><a href="http://datalifeengine.ir/2007/03/22/bbcodes_help.html">اينجا كليك كنيد</a></div>
HTML;


$help_sections["templates"] = <<<HTML
<table width="100%">
    <tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-right:10px;"><div class="navigation">راهنماي نصب قالب</div></td>
    </tr>
</table>
<div class="unterline"></div>
<div align=right>
<div style="padding-right: 10px; border: 1px solid #ccc; margin: 4px; border-right: 6px solid #1176cc; background: #f0f0f0; height: 22px; padding-top: 5px;">
	<a href="http://www.datalifeengine.ir/wiki/theme-design/196-design-template7.html">قالب پیغام خصوصی pm.tpl</a>
</div>
<div style="padding-right: 10px; border: 1px solid #ccc; margin: 4px; border-right: 6px solid #1176cc; background: #f0f0f0; height: 22px; padding-top: 5px;">
	<a href="http://www.datalifeengine.ir/wiki/theme-design/181-learn-maketemplatesdle-class5.html">قالب نظرات comments.tpl</a>
</div>
<div style="padding-right: 10px; border: 1px solid #ccc; margin: 4px; border-right: 6px solid #1176cc; background: #f0f0f0; height: 22px; padding-top: 5px;">
	<a href="http://www.datalifeengine.ir/wiki/theme-design/144-create-template-3.html">قالب نظر سنجی poll.tpl و vote.tpl</a>
</div>
<div style="padding-right: 10px; border: 1px solid #ccc; margin: 4px; border-right: 6px solid #1176cc; background: #f0f0f0; height: 22px; padding-top: 5px;">
	<a href="http://www.datalifeengine.ir/wiki/theme-design/139-create-template-2.html">قالب مطالب shortstory.tpl و fullstory.tpl</a>
</div>
<div style="padding-right: 10px; border: 1px solid #ccc; margin: 4px; border-right: 6px solid #1176cc; background: #f0f0f0; height: 22px; padding-top: 5px;">
	<a href="http://www.datalifeengine.ir/wiki/theme-design/361-learn-design-template-dle-class9.html">آموزش ساخت فرم جستجو</a>
</div>
<div style="padding-right: 10px; border: 1px solid #ccc; margin: 4px; border-right: 6px solid #1176cc; background: #f0f0f0; height: 22px; padding-top: 5px;">
	<a href="http://www.datalifeengine.ir/wiki/theme-design/1253-compressing-css-files-in-template.html">فشرده سازی فایل های CSS در قالب</a>
</div>
</div>
HTML;

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Load the specified section in PopUp Window
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
if(isset($section)){
if(!isset($help_sections["$section"])){ die("<b>$section</b>"); }
echo"<HTML dir=rtl>
	<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\" />
    <style type=\"text/css\">
	<!--
	a:active,a:visited,a:link {color: #446488; text-decoration: none; font-family: tahoma, Arial, Helvetica, sans-serif; font-size: 8pt;}
	a:hover {color: #00004F; text-decoration: none; font-family: tahoma, Arial, Helvetica, sans-serif; font-size: 8pt; }
	.code {
		font-family : tahoma, Courier;
		font-size : 11px;
		border: 1px solid #BBCDDB;
		margin:10px;
		padding:4px;
		background:#FBFFFF;
	}
    h1 {
		background-color : #C4BFB9;
		border : #000000 1px solid;

		color : #6B6256;
		font-family : Tahoma, tahoma, Arial, Helvetica, sans-serif;
		font-size : 11px;
		font-weight : bold;
		padding-bottom : 5px;
		padding-left : 10px;
		padding-right : 10px;
		padding-top : 5px;
		text-decoration : none;
	}
	BODY, TD, TR {text-align:justify ;padding: 0; leftMargin: 0; topMargin: 0; text-decoration: none; font-family: tahoma, Arial, Helvetica, sans-serif; font-size: 8pt; cursor: default;}
	-->
	</style>
<title> - $section</title>
<body>". $help_sections["$section"] ."</body></html>";
}
else{
if($member_db[1] > 1){ msg("error", "Error", "Access Denied"); }

echoheader("question", "Question");
echo"<style type=\"text/css\">
	<!--
	.code {
		font-family : tahoma, Courier;
		font-size : 11px;
		border: 1px solid #BBCDDB;
		margin:10px;
		padding:4px;
		background:#FBFFFF;
	}
	-->
	</style>";


echo <<<HTML
<div style="padding-top:5px;padding-bottom:2px;">
<table width="100%">
    <tr>
        <td width="4"><img src="engine/skins/images/tl_lo.gif" width="4" height="4" border="0"></td>
        <td background="engine/skins/images/tl_oo.gif"><img src="engine/skins/images/tl_oo.gif" width="1" height="4" border="0"></td>
        <td width="6"><img src="engine/skins/images/tl_ro.gif" width="6" height="4" border="0"></td>
    </tr>
    <tr>
        <td background="engine/skins/images/tl_lb.gif"><img src="engine/skins/images/tl_lb.gif" width="4" height="1" border="0"></td>
        <td style="padding:5px;" bgcolor="#FFFFFF">
HTML;

foreach($help_sections as $help_section){
echo "$help_section<br /><br />";
}

echo <<<HTML
</td>
        <td background="engine/skins/images/tl_rb.gif"><img src="engine/skins/images/tl_rb.gif" width="6" height="1" border="0"></td>
    </tr>
    <tr>
        <td><img src="engine/skins/images/tl_lu.gif" width="4" height="6" border="0"></td>
        <td background="engine/skins/images/tl_ub.gif"><img src="engine/skins/images/tl_ub.gif" width="1" height="6" border="0"></td>
        <td><img src="engine/skins/images/tl_ru.gif" width="6" height="6" border="0"></td>
    </tr>
</table>
</div>
HTML;
echofooter();
}
?>