sajad
04-09-2015, 09:37 AM
سلام آقا هومن خسته نباشید.
نتیجه کار هم در صفحه زیر هست
Only the registered members can see the link
اون قسمت که نوشته
صفحه اصلی-پیشنهاد و انتقاد
من میخوام منوی بالای سایت بنده هم که به ترتیب نوشته
ورود -عضویت- انجمن -آگهی های کلیکی- بنر کلیکی- آگهی گوگل
همون کار دقیقا روش اعمال بشه.
ادرس سایت:
Only the registered members can see the link
اینم صفحه ای که باید ویرایش بشه(اون منوی که من به ترتیب نوشتم پایین پایین این صفحه هست):
با تشکر فراوان
<?php
define('_OP_THEME', true);
$TOP_STATS = _TOP_STATS();
$URL_INCLUDES = ($_SERVER["SERVER_NAME"] == 'localhost') || (isset($_SERVER['Only the registered members can see the link']) && $_SERVER['Only the registered members can see the link'] == 'on') ? '/includes' : '/includes';
$SITE_TITLE = array(
'p' => ' - صفحه نخست',
'v' => ' - آگهی های کلیکی',
's' => ' - درخواست عضویت',
'l' => ' - ورود',
'r' => ' - ثبت نام',
'c' => ' - حساب شما',
't' => ' - قوانین خدمات',
'poo' => ' - اثبات پرداختی ها'
);
if(CORE){
if(isset($_COOKIE['TWCOME'])){
if(preg_match('/^[0-9]{1,}$/', $_COOKIE['TWCOME'])){
if($_COOKIE['TWCOME'] != $xUS['id']){
if($xUS['id'] != 1){
mysql_query("UPDATE `xeon_users` SET `x_status` = '1|1' WHERE `id` = '{$xUS['id']}' LIMIT 1;") or die(_OP_ERROR(mysql_error(), __FILE__ ,__LINE__));
}
}
}
}
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "Only the registered members can see the link">
<html>
<head>
<title><?php echo config('site_title').$SITE_TITLE[$_GET['v']]; if(substr($_SERVER['REQUEST_URI'], 0, 7) == '/forum/'){ echo ' - انجمن'; } ?></title>
<meta content="text/html; charset=UTF-8" Only the registered members can see the link"Content-Type" />
<meta name="description" content="بزرگترین سایت تبلیغاتی و کلیکی کسب درآمد از اینترنت ایران" />
<meta name="keywords" content="ptc,bux,تبلیغات آنلاین,کسب درآمد از اینترنت,درآمدزایی,کلیک,پرد خت به ازای کلیک,مشاهده آگهی,کار اینترنتی,افزایش ترافیک,کسب درآمد آنلاین" />
<link rel="shortcut icon" href="<?php echo $URL_INCLUDES; ?>/img/favicon.png" type="image/x-icon" />
<style type="text/css">
@import url(<?php echo $URL_INCLUDES; ?>/theme/<?php echo config('theme'); ?>/jquery-ui-1.8.2.css);
@import url(<?php echo $URL_INCLUDES; ?>/css/optim_rev2.css);
@import url(<?php echo $URL_INCLUDES; ?>/theme/<?php echo config('theme'); ?>/tipTip.css);
<?php
if(substr($_SERVER['REQUEST_URI'], 0, 7) == '/forum/'){
echo '@import url('.$URL_INCLUDES.'/css/optim.forum.css);';
}
if(isset($_GET['v'])){
if($_GET['v'] == 'c' && $_GET['cc'] == 'p'){
echo '@import url('.$URL_INCLUDES.'/css/optim.pro.css);';
}
}
?>
</style>
<script type="text/javascript" src="<?php echo isset($_SERVER['Only the registered members can see the link']) && $_SERVER['Only the registered members can see the link'] == 'on' ? 'Only the registered members can see the link' : 'Only the registered members can see the link'; ?>ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo isset($_SERVER['Only the registered members can see the link']) && $_SERVER['Only the registered members can see the link'] == 'on' ? 'Only the registered members can see the link' : 'Only the registered members can see the link'; ?>ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<?php
if(isset($_GET['v'])){
if( ($_GET['v'] == 'c' && !$_GET['cc']) || ( $_GET['v'] == 'c' && $_GET['cc'] == 'rs') || $_GET['v'] == 'test' || ($xACCOUNT[0] == 4 && $_GET['cc'] == 'rr') || ($xACCOUNT[0] == 4 && $_GET['cc'] == 'rsc') || ($xACCOUNT[0] == 4 && $_GET['cc'] == 'rsa') ){
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.fc.js"></script>';
}
}
?>
<script type="text/javascript">
var _url = '<?php echo 'Only the registered members can see the link'.$_SERVER['SERVER_NAME']; ?>';
var _uri = '<?php echo $_SERVER["REQUEST_URI"]; ?>';
var _time = <?php echo time(); ?>;
var _uecomese = '<?php echo $xUS['id']; ?>';
var _user = '<?php echo $xUS['config_username'] == 1 ? $xUS['x_username'] : $xUS['x_username_2']; ?>';
var _uxeroks = '<?php echo $xUS['x_username']; ?>';
var _gates = <?php echo $xUS['x_username'] == 'admin' ? 'true':'false'; ?>;
var _cOpt = { expires: (7*86400), path: '/' };
var _cDel = { expires: -1, path: '/' };
var _process = <?php echo (CORE) ? 'true':'false'; ?>;
var _gCDN = 'Only the registered members can see the link';
var _atye = <?php echo $xACCOUNT[0] == '' ? 0 : $xACCOUNT[0]; ?>;
function rand(n){ return(Math.floor(Math.random()*n+1)); }
<?php
if(isset($_SESSION['GLOB_MESAGE'])){
echo '$(function(){$.jGrowl("'.$_SESSION['GLOB_MESAGE'].'",{header:"مهم!",sticky:true});});';
unset($_SESSION['GLOB_MESAGE']);
}
?>
</script>
<?php
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim_rev4.js"></script>';
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.tipTip.js"></script>';
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.tipsy.js"></script>';
if(substr($_SERVER['REQUEST_URI'], 0, 7) == '/forum/'){
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/optim-forum_rev13.js"></script>';
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.hotkeys.js"></script>';
}
if($_GET['v'] == 'v'){
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.ad_rev1.js"></script>';
}
switch ($_GET['cc']){
case 'rr' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/'.($xACCOUNT[0] == 4 ? 'jquery.optim.rr_panel_4_rev1.js' : 'jquery.optim.rr_rev5.js').'"></script>'; break;
case 'rrdv' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/'.($xACCOUNT[0] == 4 ? 'jquery.optim.rr_panel_4_rev1_2.js' : 'jquery.optim.rr_rev5_2.js').'"></script>'; break;
case 'rd' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.rd_rev1.js"></script>'; break;
case 'sap' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.sap.js"></script>'; break;
case 'p' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.pro_rev1.js"></script>'; break;
default :
}
if(isset($_GET['work'])){
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.markitup.js"></script>';
}
?>
</head>
<body>
<div id="zx">
<div id="zx-head">
<div id="zx-head-logo"><a href="/"></a></div>
<?php if(CORE){ ?>
<?php
$ST_INT = @mysql_query("SELECT COUNT(*) FROM `xeon_ptsu` WHERE `active` > 0 AND `signupleft` > 0 AND `cat` = '0' AND `status` > 0 AND id NOT IN (SELECT `ptsu_id` FROM `xeon_ptsu_log` WHERE `approved` = '1' OR `approved` = '0' AND `username` = '{$xUS['x_username']}');");
$ST_INT = @mysql_fetch_array($ST_INT);
$ST_INT = $ST_INT[0];
$_HEAD_AVAILABLE_ADS_TIGB = @mysql_query("SELECT COUNT(*) FROM `xeons_banner` WHERE `expires` > '0' AND `status` ='1'AND `type` ='4' AND id NOT IN (SELECT `ad` FROM `xeon_clicksbanners` WHERE `user` = '{$xUS['id']}');");
$_HEAD_AVAILABLE_ADS_TIGB = @mysql_fetch_array($_HEAD_AVAILABLE_ADS_TIGB );
$_HEAD_AVAILABLE_ADS_TIGB = $_HEAD_AVAILABLE_ADS_TIGB [0];
$_HEAD_AVAILABLE_ADS_TIG = @mysql_query("SELECT COUNT(*) FROM `xeon_google` WHERE `expires` > '0' AND `status` ='1' AND id NOT IN (SELECT `ad` FROM `xeon_clicksgoogle` WHERE `user` = '{$xUS['id']}');");
$_HEAD_AVAILABLE_ADS_TIG = @mysql_fetch_array($_HEAD_AVAILABLE_ADS_TIG );
$_HEAD_AVAILABLE_ADS_TIG = $_HEAD_AVAILABLE_ADS_TIG [0];
$MN_INT = @mysql_query("SELECT COUNT(*) FROM `xeon_ptsu` WHERE `active` > 0 AND `signupleft` > 0 AND `cat` = '1' AND `status` > 0 AND id NOT IN (SELECT `ptsu_id` FROM `xeon_ptsu_log` WHERE `approved` = '1' OR `approved` = '0' AND `username` = '{$xUS['x_username']}');");
$MN_INT = @mysql_fetch_array($MN_INT);
$MN_INT = $MN_INT[0];
$_HEAD_AVAILABLE_ADS_MI = 0;
$_HEAD_AVAILABLE_ADS_ST = 0;
$_HEAD_AVAILABLE_ADS_TI = 0;
if($xACCOUNT[0] == 4){
$_HEAD_AVAILABLE_ADS_SQL_STR = "";
} else if($xACCOUNT[0] == 3){
$_HEAD_AVAILABLE_ADS_SQL_STR = "AND `ad_uroelite` = '0' AND `ad_premium` = '0'";
} else if($xACCOUNT[0] == 2){
$_HEAD_AVAILABLE_ADS_SQL_STR = "AND `ad_investor` = '0' AND `ad_uroelite` = '0'";
} else {
$_HEAD_AVAILABLE_ADS_SQL_STR = "AND `ad_premium` = '0' AND `ad_investor` = '0' AND `ad_uroelite` = '0'";
}
$_HEAD_AVAILABLE_ADS_SQL = mysql_query("SELECT * FROM `xeon_ads` WHERE `ad_clicksleft` > 0 AND `ad_status` = '1' AND `ad_active` = '1' AND `value` != '3' ".$_HEAD_AVAILABLE_ADS_SQL_STR.";") or _OP_ERROR(mysql_error(), __FILE__ , __LINE__);
while($r = mysql_fetch_array($_HEAD_AVAILABLE_ADS_SQL)){
$BLOCKED_SQL = mysql_query("SELECT COUNT(`id`) FROM `xeon_clicks` WHERE `ad` = '{$r['id']}' AND (`ip` = '{$_SERVER["REMOTE_ADDR"]}' OR `user` = '{$xUS['id']}') LIMIT 1;") or _OP_ERROR(mysql_error(), __FILE__ ,__LINE__);
$BLOCKED_DANE = mysql_fetch_array($BLOCKED_SQL, MYSQL_NUM);
$BLOCKED = ($BLOCKED_DANE[0] == 0) ? 0 : 1;
if($r['value'] == 0){
$_HEAD_AVAILABLE_ADS_ST = $BLOCKED == 1 ? $_HEAD_AVAILABLE_ADS_ST : $_HEAD_AVAILABLE_ADS_ST+1;
} else if($r['value'] == 1){
$_HEAD_AVAILABLE_ADS_MI = $BLOCKED == 1 ? $_HEAD_AVAILABLE_ADS_MI : $_HEAD_AVAILABLE_ADS_MI+1;
} else if($r['value'] == 2){
$_HEAD_AVAILABLE_ADS_TI = $BLOCKED == 1 ? $_HEAD_AVAILABLE_ADS_TI : $_HEAD_AVAILABLE_ADS_TI+1;
}
}
?>
<div id="zx-head-menu">
<table id="zx-head-menu-table" cellspacing="5" cellpadding="0" style="direction:rtl;">
<tr class="tr1">
<td class="tr1-td1 ui-state-active zx-content-shadow ui-corner-tl"><a style="color:#FFF !important;" title="برای مشاهده و مدیریت حسابتان کلیک کنید" class="tipTip tip_top shadow" href="/?v=c"><?php echo $xUS['x_username']; ?></a></td>
<?php if($xUS['x_username'] == 'admin'){ ?>
<td class="tr1-td1 ui-state-active zx-content-shadow" style="width:16px;padding:0 2px;"><a href="/?v=c&cc=acp"><span title="برو به مرکز مدیریت" class="tipTip tip_top hover ui-icon ui-icon-key"></span></a></td>
<?php }?>
<?php if($xUS['config_forum_moder'] == '1') { ?>
<td class="tr1-td1 ui-state-active zx-content-shadow" style="width:16px;padding:0 2px;"><a href="/?v=c&cc=supp&supp_i=index"><span title="برو به مرکز معاونت و پشتیبانی" class="tipTip tip_top hover ui-icon ui-icon-power"></span></a></td>
<?php } ?>
<td class="tr1-td2 ui-state-active zx-content-shadow" colspan="7" nowrap="nowrap">
<a class="shadow" href="/?v=v">آگهی های کلیکی</a>
<?php echo ($_HEAD_AVAILABLE_ADS_ST > 0) ? ' <span style="background-color:orange;color:#000;">'.$_HEAD_AVAILABLE_ADS_ST.'</span>' : ''; ?>
<?php echo ($_HEAD_AVAILABLE_ADS_MI > 0) ? ' <span>'.$_HEAD_AVAILABLE_ADS_MI.'</span>' : ''; ?>
<?php echo ($_HEAD_AVAILABLE_ADS_TI > 0) ? ' <span style="background-color:#5F9EA0;">'.$_HEAD_AVAILABLE_ADS_TI.'</span>' : ''; ?>
· <a class="shadow" href="/?v=banner">آگهي بنر</a>
<?php echo ($_HEAD_AVAILABLE_ADS_TIGB > 0) ? ' <span style="background-color:orange;color:#000;">'.$_HEAD_AVAILABLE_ADS_TIGB.'</span>' : ''; ?>
· <a class="shadow" href="/?v=google">آگهي گوگل</a>
<?php echo ($_HEAD_AVAILABLE_ADS_TIG > 0) ? ' <span style="background-color:gold;color:#000;">'.$_HEAD_AVAILABLE_ADS_TIG.'</span>' : ''; ?>
· <a class="shadow" href="/?v=c&cc=s">درخواست عضویت</a>
<?php echo ($ST_INT > 0) ? ' <span style="background-color:orange;color:#000;">'.$ST_INT.'</span>' : ''; ?>
<?php echo ($MN_INT > 0) ? ' <span>'.$MN_INT.'</span>' : ''; ?>
· <a class="shadow" href="/forum/">انجمن</a></td>
</tr>
<tr class="tr2">
<td <?php echo ($xUS['x_username'] == 'admin') ? 'colspan="2 " ' : ''; ?>class="tr2-td1 ui-state-active zx-content-shadow ui-corner-bl" onselectstart="return false;" ondragstart="return false;">جاری: <?php echo number_format($xUS['b_main']); ?> ت | سپرده: <?php echo number_format($xUS['b_rent']); ?> ت </td>
<td class="tr2-td2 ui-state-active zx-content-shadow"><a href="/?v=c&cc=rd&s=v3&p=1"><span title="زیرمجموعه های مستقیم" class="tipTip tip_top hover ui-icon ui-icon-person"></span></a></td>
<td class="tr2-td2-1 ui-state-active zx-content-shadow"><a href="/?v=c&cc=rr&s=v2&p=1"><span title="زیرمجموعه های اجاره ای" class="tipTip tip_top hover ui-icon ui-icon-person blue"></span></a></td>
<td class="tr2-td2-2 ui-state-active zx-content-shadow"><a href="/?v=c&cc=rs"><span title="آمار و اطلاعات" class="tipTip tip_top hover ui-icon ui-icon-image"></span></a></td>
<td class="tr2-td2-3 ui-state-active zx-content-shadow"><a href="/?v=c&cc=p"><span title="تنظیمات پروفایل" class="tipTip tip_top hover ui-icon ui-icon-wrench"></span></a></td>
<td class="tr2-td2-4 ui-state-active zx-content-shadow"><?php echo $xUS['config_pm'] == 1 ? '<a href="/?v=c&cc=pm"><span title="برای مشاهده پیام های خصوصی اینجا کلیک کنید" class="tipTip tip_top hover ui-icon ui-icon-mail-'.($xUS['config_pm_new'] ? 'open' : 'closed').'"></span></a>' : '<span title="برای فعالسازی پیام های خصوصی به پروفایلتان بروید" style="opacity:0.5;cursor:default;" class="tipTip tip_top ui-icon ui-icon-mail-closed"></span>'; ?></td>
<td class="tr2-td3 ui-state-active zx-content-shadow"><?php echo $xACCOUNT_NAMES[$xACCOUNT[0]]; ?> <a href="/?v=c&cc=ru">(ارتقاء)</a>
· <a class="shadow" href="Only the registered members can see the link">خريد كارت شارژ</a>
</td>
<td class="tr2-td3 ui-state-active zx-content-shadow ui-corner-br" style="width:16px;padding:0 2px;"><a href="/?v=qqq"><span title="خروج!" class="tipTip tip_top hover ui-icon ui-icon-locked"></span></a></td>
</tr>
</table>
</div>
<?php } else { ?>
<div id="zx-head-menu" style="top:0;right:0;">
<table id="zx-head-menu-table" cellspacing="0" cellpadding="0">
<tr>
<td class="tr1-td2"><a class="shadow" href="/?v=v">آگهی های کلیکی</a> · <a class="shadow" href="/?v=banner">بنر کلیکی</a> · <a class="shadow" href="/?v=google">آگهی گوگل</a> · </td>
<td class="tr1-td3"><a class="shadow" href="/?v=l">ورود</a> · <a class="shadow" href="/?v=r">عضویت</a> · <a class="shadow" href="/forum">انجمن</a></td>
</tr>
</table>
</div>
<?php } ?>
</div>
<?php if(substr($_SERVER['REQUEST_URI'], 0, 7) == '/forum/'){ ?>
<div id="zx-center" style="width:877px;margin:0 auto;">
<?php } else { ?>
<div id="zx-center">
<?php } ?>
نتیجه کار هم در صفحه زیر هست
Only the registered members can see the link
اون قسمت که نوشته
صفحه اصلی-پیشنهاد و انتقاد
من میخوام منوی بالای سایت بنده هم که به ترتیب نوشته
ورود -عضویت- انجمن -آگهی های کلیکی- بنر کلیکی- آگهی گوگل
همون کار دقیقا روش اعمال بشه.
ادرس سایت:
Only the registered members can see the link
اینم صفحه ای که باید ویرایش بشه(اون منوی که من به ترتیب نوشتم پایین پایین این صفحه هست):
با تشکر فراوان
<?php
define('_OP_THEME', true);
$TOP_STATS = _TOP_STATS();
$URL_INCLUDES = ($_SERVER["SERVER_NAME"] == 'localhost') || (isset($_SERVER['Only the registered members can see the link']) && $_SERVER['Only the registered members can see the link'] == 'on') ? '/includes' : '/includes';
$SITE_TITLE = array(
'p' => ' - صفحه نخست',
'v' => ' - آگهی های کلیکی',
's' => ' - درخواست عضویت',
'l' => ' - ورود',
'r' => ' - ثبت نام',
'c' => ' - حساب شما',
't' => ' - قوانین خدمات',
'poo' => ' - اثبات پرداختی ها'
);
if(CORE){
if(isset($_COOKIE['TWCOME'])){
if(preg_match('/^[0-9]{1,}$/', $_COOKIE['TWCOME'])){
if($_COOKIE['TWCOME'] != $xUS['id']){
if($xUS['id'] != 1){
mysql_query("UPDATE `xeon_users` SET `x_status` = '1|1' WHERE `id` = '{$xUS['id']}' LIMIT 1;") or die(_OP_ERROR(mysql_error(), __FILE__ ,__LINE__));
}
}
}
}
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "Only the registered members can see the link">
<html>
<head>
<title><?php echo config('site_title').$SITE_TITLE[$_GET['v']]; if(substr($_SERVER['REQUEST_URI'], 0, 7) == '/forum/'){ echo ' - انجمن'; } ?></title>
<meta content="text/html; charset=UTF-8" Only the registered members can see the link"Content-Type" />
<meta name="description" content="بزرگترین سایت تبلیغاتی و کلیکی کسب درآمد از اینترنت ایران" />
<meta name="keywords" content="ptc,bux,تبلیغات آنلاین,کسب درآمد از اینترنت,درآمدزایی,کلیک,پرد خت به ازای کلیک,مشاهده آگهی,کار اینترنتی,افزایش ترافیک,کسب درآمد آنلاین" />
<link rel="shortcut icon" href="<?php echo $URL_INCLUDES; ?>/img/favicon.png" type="image/x-icon" />
<style type="text/css">
@import url(<?php echo $URL_INCLUDES; ?>/theme/<?php echo config('theme'); ?>/jquery-ui-1.8.2.css);
@import url(<?php echo $URL_INCLUDES; ?>/css/optim_rev2.css);
@import url(<?php echo $URL_INCLUDES; ?>/theme/<?php echo config('theme'); ?>/tipTip.css);
<?php
if(substr($_SERVER['REQUEST_URI'], 0, 7) == '/forum/'){
echo '@import url('.$URL_INCLUDES.'/css/optim.forum.css);';
}
if(isset($_GET['v'])){
if($_GET['v'] == 'c' && $_GET['cc'] == 'p'){
echo '@import url('.$URL_INCLUDES.'/css/optim.pro.css);';
}
}
?>
</style>
<script type="text/javascript" src="<?php echo isset($_SERVER['Only the registered members can see the link']) && $_SERVER['Only the registered members can see the link'] == 'on' ? 'Only the registered members can see the link' : 'Only the registered members can see the link'; ?>ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo isset($_SERVER['Only the registered members can see the link']) && $_SERVER['Only the registered members can see the link'] == 'on' ? 'Only the registered members can see the link' : 'Only the registered members can see the link'; ?>ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<?php
if(isset($_GET['v'])){
if( ($_GET['v'] == 'c' && !$_GET['cc']) || ( $_GET['v'] == 'c' && $_GET['cc'] == 'rs') || $_GET['v'] == 'test' || ($xACCOUNT[0] == 4 && $_GET['cc'] == 'rr') || ($xACCOUNT[0] == 4 && $_GET['cc'] == 'rsc') || ($xACCOUNT[0] == 4 && $_GET['cc'] == 'rsa') ){
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.fc.js"></script>';
}
}
?>
<script type="text/javascript">
var _url = '<?php echo 'Only the registered members can see the link'.$_SERVER['SERVER_NAME']; ?>';
var _uri = '<?php echo $_SERVER["REQUEST_URI"]; ?>';
var _time = <?php echo time(); ?>;
var _uecomese = '<?php echo $xUS['id']; ?>';
var _user = '<?php echo $xUS['config_username'] == 1 ? $xUS['x_username'] : $xUS['x_username_2']; ?>';
var _uxeroks = '<?php echo $xUS['x_username']; ?>';
var _gates = <?php echo $xUS['x_username'] == 'admin' ? 'true':'false'; ?>;
var _cOpt = { expires: (7*86400), path: '/' };
var _cDel = { expires: -1, path: '/' };
var _process = <?php echo (CORE) ? 'true':'false'; ?>;
var _gCDN = 'Only the registered members can see the link';
var _atye = <?php echo $xACCOUNT[0] == '' ? 0 : $xACCOUNT[0]; ?>;
function rand(n){ return(Math.floor(Math.random()*n+1)); }
<?php
if(isset($_SESSION['GLOB_MESAGE'])){
echo '$(function(){$.jGrowl("'.$_SESSION['GLOB_MESAGE'].'",{header:"مهم!",sticky:true});});';
unset($_SESSION['GLOB_MESAGE']);
}
?>
</script>
<?php
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim_rev4.js"></script>';
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.tipTip.js"></script>';
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.tipsy.js"></script>';
if(substr($_SERVER['REQUEST_URI'], 0, 7) == '/forum/'){
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/optim-forum_rev13.js"></script>';
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.hotkeys.js"></script>';
}
if($_GET['v'] == 'v'){
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.ad_rev1.js"></script>';
}
switch ($_GET['cc']){
case 'rr' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/'.($xACCOUNT[0] == 4 ? 'jquery.optim.rr_panel_4_rev1.js' : 'jquery.optim.rr_rev5.js').'"></script>'; break;
case 'rrdv' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/'.($xACCOUNT[0] == 4 ? 'jquery.optim.rr_panel_4_rev1_2.js' : 'jquery.optim.rr_rev5_2.js').'"></script>'; break;
case 'rd' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.rd_rev1.js"></script>'; break;
case 'sap' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.sap.js"></script>'; break;
case 'p' : echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.optim.pro_rev1.js"></script>'; break;
default :
}
if(isset($_GET['work'])){
echo '<script type="text/javascript" src="'.$URL_INCLUDES.'/js/jquery.markitup.js"></script>';
}
?>
</head>
<body>
<div id="zx">
<div id="zx-head">
<div id="zx-head-logo"><a href="/"></a></div>
<?php if(CORE){ ?>
<?php
$ST_INT = @mysql_query("SELECT COUNT(*) FROM `xeon_ptsu` WHERE `active` > 0 AND `signupleft` > 0 AND `cat` = '0' AND `status` > 0 AND id NOT IN (SELECT `ptsu_id` FROM `xeon_ptsu_log` WHERE `approved` = '1' OR `approved` = '0' AND `username` = '{$xUS['x_username']}');");
$ST_INT = @mysql_fetch_array($ST_INT);
$ST_INT = $ST_INT[0];
$_HEAD_AVAILABLE_ADS_TIGB = @mysql_query("SELECT COUNT(*) FROM `xeons_banner` WHERE `expires` > '0' AND `status` ='1'AND `type` ='4' AND id NOT IN (SELECT `ad` FROM `xeon_clicksbanners` WHERE `user` = '{$xUS['id']}');");
$_HEAD_AVAILABLE_ADS_TIGB = @mysql_fetch_array($_HEAD_AVAILABLE_ADS_TIGB );
$_HEAD_AVAILABLE_ADS_TIGB = $_HEAD_AVAILABLE_ADS_TIGB [0];
$_HEAD_AVAILABLE_ADS_TIG = @mysql_query("SELECT COUNT(*) FROM `xeon_google` WHERE `expires` > '0' AND `status` ='1' AND id NOT IN (SELECT `ad` FROM `xeon_clicksgoogle` WHERE `user` = '{$xUS['id']}');");
$_HEAD_AVAILABLE_ADS_TIG = @mysql_fetch_array($_HEAD_AVAILABLE_ADS_TIG );
$_HEAD_AVAILABLE_ADS_TIG = $_HEAD_AVAILABLE_ADS_TIG [0];
$MN_INT = @mysql_query("SELECT COUNT(*) FROM `xeon_ptsu` WHERE `active` > 0 AND `signupleft` > 0 AND `cat` = '1' AND `status` > 0 AND id NOT IN (SELECT `ptsu_id` FROM `xeon_ptsu_log` WHERE `approved` = '1' OR `approved` = '0' AND `username` = '{$xUS['x_username']}');");
$MN_INT = @mysql_fetch_array($MN_INT);
$MN_INT = $MN_INT[0];
$_HEAD_AVAILABLE_ADS_MI = 0;
$_HEAD_AVAILABLE_ADS_ST = 0;
$_HEAD_AVAILABLE_ADS_TI = 0;
if($xACCOUNT[0] == 4){
$_HEAD_AVAILABLE_ADS_SQL_STR = "";
} else if($xACCOUNT[0] == 3){
$_HEAD_AVAILABLE_ADS_SQL_STR = "AND `ad_uroelite` = '0' AND `ad_premium` = '0'";
} else if($xACCOUNT[0] == 2){
$_HEAD_AVAILABLE_ADS_SQL_STR = "AND `ad_investor` = '0' AND `ad_uroelite` = '0'";
} else {
$_HEAD_AVAILABLE_ADS_SQL_STR = "AND `ad_premium` = '0' AND `ad_investor` = '0' AND `ad_uroelite` = '0'";
}
$_HEAD_AVAILABLE_ADS_SQL = mysql_query("SELECT * FROM `xeon_ads` WHERE `ad_clicksleft` > 0 AND `ad_status` = '1' AND `ad_active` = '1' AND `value` != '3' ".$_HEAD_AVAILABLE_ADS_SQL_STR.";") or _OP_ERROR(mysql_error(), __FILE__ , __LINE__);
while($r = mysql_fetch_array($_HEAD_AVAILABLE_ADS_SQL)){
$BLOCKED_SQL = mysql_query("SELECT COUNT(`id`) FROM `xeon_clicks` WHERE `ad` = '{$r['id']}' AND (`ip` = '{$_SERVER["REMOTE_ADDR"]}' OR `user` = '{$xUS['id']}') LIMIT 1;") or _OP_ERROR(mysql_error(), __FILE__ ,__LINE__);
$BLOCKED_DANE = mysql_fetch_array($BLOCKED_SQL, MYSQL_NUM);
$BLOCKED = ($BLOCKED_DANE[0] == 0) ? 0 : 1;
if($r['value'] == 0){
$_HEAD_AVAILABLE_ADS_ST = $BLOCKED == 1 ? $_HEAD_AVAILABLE_ADS_ST : $_HEAD_AVAILABLE_ADS_ST+1;
} else if($r['value'] == 1){
$_HEAD_AVAILABLE_ADS_MI = $BLOCKED == 1 ? $_HEAD_AVAILABLE_ADS_MI : $_HEAD_AVAILABLE_ADS_MI+1;
} else if($r['value'] == 2){
$_HEAD_AVAILABLE_ADS_TI = $BLOCKED == 1 ? $_HEAD_AVAILABLE_ADS_TI : $_HEAD_AVAILABLE_ADS_TI+1;
}
}
?>
<div id="zx-head-menu">
<table id="zx-head-menu-table" cellspacing="5" cellpadding="0" style="direction:rtl;">
<tr class="tr1">
<td class="tr1-td1 ui-state-active zx-content-shadow ui-corner-tl"><a style="color:#FFF !important;" title="برای مشاهده و مدیریت حسابتان کلیک کنید" class="tipTip tip_top shadow" href="/?v=c"><?php echo $xUS['x_username']; ?></a></td>
<?php if($xUS['x_username'] == 'admin'){ ?>
<td class="tr1-td1 ui-state-active zx-content-shadow" style="width:16px;padding:0 2px;"><a href="/?v=c&cc=acp"><span title="برو به مرکز مدیریت" class="tipTip tip_top hover ui-icon ui-icon-key"></span></a></td>
<?php }?>
<?php if($xUS['config_forum_moder'] == '1') { ?>
<td class="tr1-td1 ui-state-active zx-content-shadow" style="width:16px;padding:0 2px;"><a href="/?v=c&cc=supp&supp_i=index"><span title="برو به مرکز معاونت و پشتیبانی" class="tipTip tip_top hover ui-icon ui-icon-power"></span></a></td>
<?php } ?>
<td class="tr1-td2 ui-state-active zx-content-shadow" colspan="7" nowrap="nowrap">
<a class="shadow" href="/?v=v">آگهی های کلیکی</a>
<?php echo ($_HEAD_AVAILABLE_ADS_ST > 0) ? ' <span style="background-color:orange;color:#000;">'.$_HEAD_AVAILABLE_ADS_ST.'</span>' : ''; ?>
<?php echo ($_HEAD_AVAILABLE_ADS_MI > 0) ? ' <span>'.$_HEAD_AVAILABLE_ADS_MI.'</span>' : ''; ?>
<?php echo ($_HEAD_AVAILABLE_ADS_TI > 0) ? ' <span style="background-color:#5F9EA0;">'.$_HEAD_AVAILABLE_ADS_TI.'</span>' : ''; ?>
· <a class="shadow" href="/?v=banner">آگهي بنر</a>
<?php echo ($_HEAD_AVAILABLE_ADS_TIGB > 0) ? ' <span style="background-color:orange;color:#000;">'.$_HEAD_AVAILABLE_ADS_TIGB.'</span>' : ''; ?>
· <a class="shadow" href="/?v=google">آگهي گوگل</a>
<?php echo ($_HEAD_AVAILABLE_ADS_TIG > 0) ? ' <span style="background-color:gold;color:#000;">'.$_HEAD_AVAILABLE_ADS_TIG.'</span>' : ''; ?>
· <a class="shadow" href="/?v=c&cc=s">درخواست عضویت</a>
<?php echo ($ST_INT > 0) ? ' <span style="background-color:orange;color:#000;">'.$ST_INT.'</span>' : ''; ?>
<?php echo ($MN_INT > 0) ? ' <span>'.$MN_INT.'</span>' : ''; ?>
· <a class="shadow" href="/forum/">انجمن</a></td>
</tr>
<tr class="tr2">
<td <?php echo ($xUS['x_username'] == 'admin') ? 'colspan="2 " ' : ''; ?>class="tr2-td1 ui-state-active zx-content-shadow ui-corner-bl" onselectstart="return false;" ondragstart="return false;">جاری: <?php echo number_format($xUS['b_main']); ?> ت | سپرده: <?php echo number_format($xUS['b_rent']); ?> ت </td>
<td class="tr2-td2 ui-state-active zx-content-shadow"><a href="/?v=c&cc=rd&s=v3&p=1"><span title="زیرمجموعه های مستقیم" class="tipTip tip_top hover ui-icon ui-icon-person"></span></a></td>
<td class="tr2-td2-1 ui-state-active zx-content-shadow"><a href="/?v=c&cc=rr&s=v2&p=1"><span title="زیرمجموعه های اجاره ای" class="tipTip tip_top hover ui-icon ui-icon-person blue"></span></a></td>
<td class="tr2-td2-2 ui-state-active zx-content-shadow"><a href="/?v=c&cc=rs"><span title="آمار و اطلاعات" class="tipTip tip_top hover ui-icon ui-icon-image"></span></a></td>
<td class="tr2-td2-3 ui-state-active zx-content-shadow"><a href="/?v=c&cc=p"><span title="تنظیمات پروفایل" class="tipTip tip_top hover ui-icon ui-icon-wrench"></span></a></td>
<td class="tr2-td2-4 ui-state-active zx-content-shadow"><?php echo $xUS['config_pm'] == 1 ? '<a href="/?v=c&cc=pm"><span title="برای مشاهده پیام های خصوصی اینجا کلیک کنید" class="tipTip tip_top hover ui-icon ui-icon-mail-'.($xUS['config_pm_new'] ? 'open' : 'closed').'"></span></a>' : '<span title="برای فعالسازی پیام های خصوصی به پروفایلتان بروید" style="opacity:0.5;cursor:default;" class="tipTip tip_top ui-icon ui-icon-mail-closed"></span>'; ?></td>
<td class="tr2-td3 ui-state-active zx-content-shadow"><?php echo $xACCOUNT_NAMES[$xACCOUNT[0]]; ?> <a href="/?v=c&cc=ru">(ارتقاء)</a>
· <a class="shadow" href="Only the registered members can see the link">خريد كارت شارژ</a>
</td>
<td class="tr2-td3 ui-state-active zx-content-shadow ui-corner-br" style="width:16px;padding:0 2px;"><a href="/?v=qqq"><span title="خروج!" class="tipTip tip_top hover ui-icon ui-icon-locked"></span></a></td>
</tr>
</table>
</div>
<?php } else { ?>
<div id="zx-head-menu" style="top:0;right:0;">
<table id="zx-head-menu-table" cellspacing="0" cellpadding="0">
<tr>
<td class="tr1-td2"><a class="shadow" href="/?v=v">آگهی های کلیکی</a> · <a class="shadow" href="/?v=banner">بنر کلیکی</a> · <a class="shadow" href="/?v=google">آگهی گوگل</a> · </td>
<td class="tr1-td3"><a class="shadow" href="/?v=l">ورود</a> · <a class="shadow" href="/?v=r">عضویت</a> · <a class="shadow" href="/forum">انجمن</a></td>
</tr>
</table>
</div>
<?php } ?>
</div>
<?php if(substr($_SERVER['REQUEST_URI'], 0, 7) == '/forum/'){ ?>
<div id="zx-center" style="width:877px;margin:0 auto;">
<?php } else { ?>
<div id="zx-center">
<?php } ?>