کد:
<?php
/************************************************************/
/* 2takdl-ElectroHouse */
/************************************************************/
$bgcolor1 = "#ffffff";
$bgcolor2 = "#fafafa";
$bgcolor3 = "#ededed";
$bgcolor4 = "#cccccc";
$textcolor1 = "#666666";
$textcolor2 = "#666666";
function OpenTable() {
echo"<table bgcolor=\"#ffffff\" border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td background=\"themes/2takdl-ElectroHouse/images/big2.png\">
<table border=\"0\" width=\"100%\" height=\"32\" cellspacing=\"0\" cellpadding=\"4\">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style=\"border: 1px solid #ffffff\">
<table border=\"0\" width=\"100%\">
<tr>
<td>";
}
function OpenTable2() {
echo"<table border='0' width='100%' dir='rtl' cellspacing='4' cellpadding='2'><tr><td bgcolor=\"#fafafa\" style=\"border: 1px solid #ffffff\">";
}
function CloseTable() {
echo"</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function CloseTable2() {
echo"</td></tr></table>";
}
function head()
{
global $slogan,$name, $sitename, $banners, $nukeurl, $Version_Num, $ab_config, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle, $pagetags;
$ThemeSel = get_theme();
@include_once("themes/$ThemeSel/theme.php");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo "<head>\n";
if($name != "Forums"){ // Fix By Mohsenweb
echo "<title>$sitename $pagetitle</title>\n";
}
if($pagetags !=""){ // Fix By SHahab SHT
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset="._CHARSET."\">\n";
echo "<META HTTP-EQUIV=\"EXPIRES\" CONTENT=\"0\">\n";
echo "<META NAME=\"RESOURCE-TYPE\" CONTENT=\"DOCUMENT\">\n";
echo "<META NAME=\"DISTRIBUTION\" CONTENT=\"GLOBAL\">\n";
echo "<META NAME=\"AUTHOR\" CONTENT=\"".addslashes($sitename)."\">\n";
echo "<META NAME=\"COPYRIGHT\" CONTENT=\"Copyright (c) by ".addslashes($sitename)."\">\n";
echo "<META NAME=\"KEYWORDS\" CONTENT=\"".addslashes($pagetags)."\">\n";
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"".addslashes($slogan)."\">\n";
echo "<META NAME=\"ROBOTS\" CONTENT=\"INDEX, FOLLOW\">\n";
echo "<META NAME=\"REVISIT-AFTER\" CONTENT=\"1 DAYS\">\n";
echo "<META NAME=\"RATING\" CONTENT=\"GENERAL\">\n";
}else{
if($username == $anonymous){include("includes/meta.php");}}
@include("includes/javascript.php");
if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
}
echo "</script>\n";
echo "<script type=\"text/javascript\" language=\"javascript1.2\" src=\"themes/2takdl-ElectroHouse/script/script.js\"></script>\n";
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n";
echo "<Script src=\"includes/preloader.js\" TYPE=\"text/javascript\"></script>\n";
if (file_exists("includes/custom_files/custom_head.php")) {
@include_once("includes/custom_files/custom_head.php");
}
if($ab_config['site_switch'] == 1) {
echo "<center><img src='images/nukesentinel/disabled.png' border='0' width='120' height='34'></center><br />\n";
}
echo "\n</head>\n";
echo "<DIV id=\"waitDiv\" style=\"VISIBILITY: hidden; direction:rtl; text-align:center; line-height:17px; position:fixed; z-index:0; float:right; top:0; right:0; width:100px; height:20px; background-color:#000000; color:#fff; font-size:11px;\">در حال بارگذاری...</DIV>";
echo "<SCRIPT>showWaitm('waitDiv', 1);</SCRIPT>\n";
echo "</DIV>\n";
$u_agent = $_SERVER['HTTP_USER_AGENT'];
if(preg_match('/MSIE/i',$u_agent))
{
echo "<script type=\"text/javascript\">document.getElementById('waitDiv').style.position='absolute';</script>\n";
}
themeheader();
}
function themeheader() {
global $db, $prefix,$user,$cookie,$name;
if($row = $db->sql_fetchrow($db->sql_query("SELECT * from ".$prefix."_nukesql"))){
echo "<body dir=\"rtl\" topmargin=\"0\" leftmargin=\"0\" bgcolor=\"#090909\" background=\"themes/2takdl-ElectroHouse/images/header.jpg\" style=\"background-position: center top; background-repeat:no-repeat\" text=\"#666666\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n\n\n";
$username = $cookie[1];
$query = $db->sql_query("SELECT username FROM ".$prefix."_users WHERE username='$username'");
$row = $db->sql_fetchrow($query);
$real_name = mysql_escape_string($row['username']);
if ($username == "") {
$theuser = " کاربر مهمان، خوش آمديد! ( <a href=\"modules.php?name=Your_Account\">ورود</a> - <a href=\"modules.php?name=Your_Account&op=new_user\">عضويت</a> )";
}else{
$theuser = " $real_name ، خوش آمديد! <a href=\"modules.php?name=Your_Account&op=logout\">خروج</a>";
}
$time = date("H:i:s");
$now = date("Y-m-d");
$now = FormalDate2Hejri1($now);
$now = "امروز ".$now."";
echo"<div align=\"center\">
<table width=\"100%\" height=\"333\" align=\"center\">
<tr>
<td> </td>
</tr>
</table>
<table border=\"0\" bgcolor=\"#0d0d0d\" width=\"920\" dir=\"rtl\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<div align=\"center\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" dir=\"rtl\">
<tr>
<!--Header Image-->
<!---------------->
</td>
</tr>
<tr>
<td>
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<div align=\"center\">
<table width=\"920\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tbody>
<tr>
<td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tbody>
<tr>
<td width=\"9\"><div align=\"right\"><img src=\"themes/2takdl-ElectroHouse/images/menu/rast.png\" border=\"0\" height=\"51\" width=\"9\"></div></td>
<td align=\"center\" background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"99\"><a href=\"index.php\"><img src=\"themes/2takdl-ElectroHouse/images/menu/home.png\" width=\"100\" height=\"51\" border=\"0\"></a></td>
<td background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"2\"><img src=\"themes/2takdl-ElectroHouse/images/menu/brk.png\" border=\"0\" height=\"51\" width=\"2\"></td>
<td align=\"center\" background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"99\"><a href=\"forums.html\"><img src=\"themes/2takdl-ElectroHouse/images/menu/forom.png\" width=\"100\" height=\"51\" border=\"0\"></a></td>
<td background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"2\"><img src=\"themes/2takdl-ElectroHouse/images/menu/brk.png\" border=\"0\" height=\"51\" width=\"2\"></td>
<td align=\"center\" background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"99\"><a href=\"search.html\"><img src=\"themes/2takdl-ElectroHouse/images/menu/srch.png\" width=\"100\" height=\"51\" border=\"0\"></a></td>
<td background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"2\"><img src=\"themes/2takdl-ElectroHouse/images/menu/brk.png\" border=\"0\" height=\"51\" width=\"2\"></td>
<td align=\"center\" background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"99\"><a href=\"archive.html\"><img src=\"themes/2takdl-ElectroHouse/images/menu/archive.png\" width=\"100\" height=\"51\" border=\"0\"></a></td>
<td background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"2\"><img src=\"themes/2takdl-ElectroHouse/images/menu/brk.png\" border=\"0\" height=\"51\" width=\"2\"></td>
<td align=\"center\" background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"99\"><a href=\"modules.php?name=Your_Account&op=new_user\"><img src=\"themes/2takdl-ElectroHouse/images/menu/reg.png\" width=\"100\" height=\"51\" border=\"0\"></a></td>
<td background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"2\"><img src=\"themes/2takdl-ElectroHouse/images/menu/brk.png\" border=\"0\" height=\"51\" width=\"2\"></td>
<td background=\"themes/2takdl-ElectroHouse/images/menu/vasat.png\" width=\"2\"><img src=\"themes/2takdl-ElectroHouse/images/menu/vasat2.png\" border=\"0\" height=\"51\" width=\"44\"></td>
<td width=\"365\" height=\"51\" align=\"center\" background=\"themes/2takdl-ElectroHouse/images/menu/serchmenu3.png\" style=\"background-repeat:no-repeat\">
<div align=\"center\">
<table width=\"100%\" height=\"100%\">
<tr>
<td><div align=\"center\"><div id=\"search\">
<form action=\"modules.php?name=Search\" method=\"post\">
<div class=\"search\">
<div class=\"search-input\"><input style=\"background-color:#ffffff\" name=\"query\" id=\"mod_search_searchword\" maxlength=\"20\" alt=\"Search\" class=\"inputbox\" type=\"text\" size=\"20\" value=\"جستجو...\" onblur=\"if(this.value=='') this.value='جستجو...';\" onFocus=\"if(this.value=='جستجو...') this.value='';\" style=\"height: 30px\"/><input height=\"21\" value=\"Go...\" class=\"search-button\" type=\"submit\" />
</div></div>
<input type=\"hidden\" name=\"task\" value=\"search\" />
<input type=\"hidden\" name=\"option\" value=\"com_search\" />
</form>
</div></div></td>
</tr>
</table>
</div></td></tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign=\"top\">
<table border=\"0\" width=\"100%\" cellpadding=\"3\">
<tr>";
if ($name == "Forums") {} else {
echo "<td width=\"180\" valign=\"top\">";
blocks(left);
}
echo"</td><td valign=\"top\">";
if(ads(0) && defined('INDEX_FILE')){
$banner = ads(0);
echo "<div align=\"center\">$banner</div><br>";
}
}else{
$string = "2KfZitmGINmC2KfZhNioINmF2K7YtdmI2LUg2YbZitmI2YMgOC4wINmB2KfYsdiz2Yog2YXYtNmH2K/YqtmK2YUg2YXZitio2KfYtNivINmIINmB2YLYtyDYr9ixINin2YrZhiDZhtiz2K7ZhyDZgtin2KjZhCDYp9iz2KrZgdin2K/ZhyDYp9iz2Kou";
$string = base64_decode($string);
die("<META http-equiv=Content-Type content=\"text/html; charset=utf-8\"><table dir=\"rtl\" width=\"100%\" height=\"100%\"><tr><td valign=\"center\" align=\"center\" style=\"font-family:tahoma; font-size:9pt;\">$string</td></tr></table>");
}
}
function themefooter() {
global $index, $foot1, $foot2, $foot3, $copyright;
echo "</td>";
if(defined('INDEX_FILE')){
echo"<td width=\"180\" valign=\"top\">";
blocks(right);
echo "</td>";
}
echo "</tr></table>";
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$copyright<br>";
if(ads(2)){
$showbanner = ads(2);
echo "<div align=\"center\">$showbanner</div><br>";
}
echo"</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td style=\"background-image: url('themes/2takdl-ElectroHouse/images/Footer_bg.gif'); background-repeat: repeat-x; background-position: center bottom\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td align=\"center\"><a href=\"\"><br>
</a></td>
</tr>
<tr>
<td align=\"center\"><p>
<img border=\"0\" src=\"themes/2takdl-ElectroHouse/images/7px.gif\" width=\"7\" height=\"7\"></p>
</td>
</tr>
<tr>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>";
}
function themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext, $commentlink, $comments, $score, $ratings,$sid,$newsLink){
global $anonymous, $tipath,$RateUnitWidth;
$ThemeSel = get_theme();
if(file_exists("themes/$ThemeSel/images/topics/$topicimage")){
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
}else{
$t_image = "$tipath$topicimage";
}
if($score != 0){
$rated = round($score / $ratings);
}else{
$rated = 0;
}
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/articles/stars-".$rated.".gif")) {
$scoreimage = "themes/$ThemeSel/images/articles/stars-".$rated.".gif";
}else{
$scoreimage = "images/articles/stars-".$score.".gif";
}
if($comments==0){
$comments = "نظر دهيد!";
}else{
$comments = "$comments نظر";
}
if($newsLink==""){
$more = "<span class=\"statnews\" style=\"cursor:default;\">ادامه </span><img border=\"0\" src=\"themes/2takdl-ElectroHouse/images/more.gif\" width=\"16\" height=\"16\">";
}else{
$more = "<a href=\"$newsLink\"><span class=\"statnews\" title=\"اين مطلب $counter بار بازديد شده\">ادامه</span> <img border=\"0\" src=\"themes/2takdl-ElectroHouse/images/more.gif\" alt=\"اين مطلب $counter بار بازديد شده \" width=\"16\" height=\"16\"></a>";
}
$rating_code = rating_load($sid);
echo" <table bgcolor=\"#ffffff\" border=\"0\" width=\"555\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td background=\"themes/2takdl-ElectroHouse/images/big.png\">
<table border=\"0\" width=\"555\" height=\"32\" cellspacing=\"0\" cellpadding=\"4\">
<tr>
<td width=\"15\"></td>
<td><a class=\"TableTitle\" href=\"$newsLink\">$title</a></td>
</tr>
</table></td>
</tr>
<tr>
<td style=\"border: 1px solid #ffffff\">
<table border=\"0\" width=\"100%\">
<tr>
<td>
<a href='modules.php?name=News&new_topic=$topic'>
<img src='$t_image' border='0' alt='$topictext' title='$topictext' align='right' hspace='0'></a><p align=\"justify\">$hometext</p></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor=\"#fdfdfd\" style=\"border-bottom: 1px solid #ffffff;border-left: 1px solid #ffffff;border-right: 1px solid #ffffff\">
<table width=\"100%\">
<td width=\"125\">$rating_code</td>
<td align=\"center\"><font class=\"statnews\">$datetime</font></td>
<td width=\"80\"><font class=\"statnews\">بازدید:$counter</font></td>
<td width=\"60\" align=\"center\"><a href=\"$commentlink\"><span class=\"statnews\" title=\"$comments\">نظرات</span> <img border=\"0\" src=\"themes/2takdl-ElectroHouse/images/comment.gif\" width=\"18\" height=\"18\" alt=\"$comments\"></a></td>
<td width=\"60\" align=\"center\">$more</td></tr>
</table></td>
</tr>
<tr>
<td><img src=\"themes/2takdl-ElectroHouse/images/1.gif\" width=\"555\" height=\"10\"></td>
</tr>
</table>
<br>\n";
}
function themearticle($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext, $printpage){
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if(file_exists("themes/$ThemeSel/images/topics/$topicimage")){
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
}else{
$t_image = "$tipath$topicimage";
}
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
$posted .= " <a href=\"$printpage\" target=\"_blank\"><img border=\"0\" src=\"images/print.gif\" width=\"16\" height=\"16\" alt=\"چاپ مطلب\"></a>";
if($notes != ""){
$notes = "<br><br><b>"._NOTE."</b> $notes\n";
}else{
$notes = "";
}
if("$aid" == "$informant"){
$content = "$thetext$notes\n";
}else{
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
}else{
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
echo"<table bgcolor=\"#ffffff\" border=\"0\" width=\"555\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td background=\"themes/2takdl-ElectroHouse/images/big.png\">
<table border=\"0\" width=\"555\" height=\"32\" cellspacing=\"0\" cellpadding=\"4\">
<tr>
<td width=\"15\"></td>
<td><span class=\"TableTitle\">$title</span></td>
</tr>
</table> </td>
</tr>
<tr>
<td style=\"border: 1px solid #ffffff\">
<table border=\"0\" width=\"100%\">
<tr>
<td>
<a href='modules.php?name=News&new_topic=$topic'>
<img src='$t_image' border='0' alt='$topictext' title='$topictext' align='right' hspace='0'></a><p align=\"justify\">$bodytext</p> </td>
</tr>
</table> </td>
</tr>
<tr>
<td align=\"center\" bgcolor=\"#fdfdfd\" style=\"border-bottom: 1px solid #ffffff;border-left: 1px solid #ffffff;border-right: 1px solid #ffffff\">$posted</td>
</tr>
<tr>
<td><img src=\"themes/2takdl-ElectroHouse/images/1.gif\" width=\"555\" height=\"10\"></td>
</tr>
</table>";
}
function themesidebox($title, $content, $themeview=1){
if($themeview == 0)
{
$CBSB_Class = "CBSBPlus";
$Display_Content = " display:none;";
}else
{
$CBSB_Class = "CBSBMin";
$Display_Content = "";
}
echo"<table border=\"0\" bgcolor=\"#ffffff\" width=\"180\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td background=\"themes/2takdl-ElectroHouse/images/smal.png\">
<table border=\"0\" height=\"32\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">
<tr>
<td>
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><span class=\"TableTitle\"> $title</span></td>
<td width=\"10\"><img class=\"CBSB $CBSB_Class\" border=\"0\" onclick=\"BlockStatChange(this,'$title')\" src=\"themes/2takdl-ElectroHouse/images/7px.gif\" width=\"9\" height=\"9\"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id=\"$title\" style=\"border-right: 1px solid #ffffff;border-left: 1px solid #ffffff;$Display_Content\">
<table border=\"0\" width=\"100%\">
<tr>
<td>$content</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background=\"themes/2takdl-ElectroHouse/images/smal_PAIN.png\" height=\"10\">
</td>
</tr>
</table>
<br>\n";
}
function themecenterbox($title, $content, $themeview=1){
if($themeview == 0)
{
$CBSB_Class = "CBSBPlus";
$Display_Content = " display:none;";
}else
{
$CBSB_Class = "CBSBMin";
$Display_Content = "";
}
echo"<table bgcolor=\"#ffffff\" border=\"0\" width=\"555\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td background=\"themes/2takdl-ElectroHouse/images/big.png\">
<table border=\"0\" width=\"555\" height=\"32\" cellspacing=\"0\" cellpadding=\"4\">
<tr>
<td width=\"15\"></td>
<td>
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><span class=\"TableTitle\">$title</span></td>
<td width=\"10\"><img class=\"CBSB $CBSB_Class\" border=\"0\" onclick=\"BlockStatChange(this,'$title')\" src=\"themes/2takdl-ElectroHouse/images/7px.gif\" width=\"9\" height=\"9\"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td id=\"$title\" style=\"border: 1px solid #ffffff;$Display_Content\"><table border=\"0\" width=\"100%\">
<tr>
<td>$content</td>
</tr>
</table></td>
</tr>
<tr>
<td><img src=\"themes/2takdl-ElectroHouse/images/1.gif\" width=\"555\" height=\"10\"></td>
</tr>
</table>
<br>\n";
}
?>