<?PHP
/*
=====================================================
 DataLife Engine v9.3 - by DLE Farsi Group 
-----------------------------------------------------
 http://datalifeengine.ir/
-----------------------------------------------------
 Copyright (c) 2006,2011 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["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=center><a href="http://dle-temp.com">اينجا كليك كنيد</a></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();
}
?>