Вход Регистрация
Файл: header.php
Строк: 517
<?
if(isset($_GET['logout'])){
setcookie("");
setcookie("id"); 
setcookie("hash"); 
}
if(isset(
$_GET['language']) && in_array($_GET['language'], array('ru','lv','en'))):
setcookie("langu"$_GET['language'], time() + (86400*30));
$_COOKIE['langu'] = $_GET['language'];
endif; 
if(isset(
$_GET['ref'])):
setcookie("parent"$_GET['ref'], time() + (86400*30));
$_COOKIE['parent'] = $_GET['ref'];
endif; 
if(isset(
$_COOKIE['parent'])):
$ref=mysql_escape_string($_COOKIE['parent']);
endif; 
include(
"setup.php");
include(
"inc/function.inc.php");
include(
"inc/function_t.inc.php");
require (
"inc/connect.inc.php");
$sql=mysql_query("select * from ".$db_pref."users where user='".mysql_real_escape_string($_GET['ref'])."'");
$row=mysql_fetch_array($sql);
$num=$row['ad'];
if (
$plus $num 1) {
mysql_query("update ".$db_pref."users set ad='$plus' where user='".mysql_real_escape_string($_GET['ref'])."'");
}
$sql=mysql_query("select*from ".$db_pref."sysvals");
$row1=mysql_fetch_array($sql);
$langu $_COOKIE["langu"];
$deflangu=$row1["lang"];
$lang_admin=$row1["lang_admin"];
if(
in_array(@$_COOKIE['langu'], array('ru','lv','en'))):

include(
'language/'.$_COOKIE["langu"].'.php');
$text=$_COOKIE["langu"];
}
else:
include(
'language/'.$deflangu.'.php');
$text=$deflangu;
endif;
$sql=mysql_query("select*from ".$db_pref."sysvals");
$row1=mysql_fetch_array($sql);
$publickeyrecap=$row1['publickey'];
$privatekeyrecap=$row1['privatekey'];
$name_title_footer=$row1['name_title'];
$sistem=$row1['sistem'];
$d_neakt=$row1['day_active'];
$currency=$row1['currency'];
$maxImage=$row1['maxImage'];
$lang_g=$row1['lang_g'];
$sliders=$row1['slider'];
$f_height=$row1['height'];
$f_width=$row1['width'];
$f_lightdark=$row1['lightdark'];
if(
$sistem==webmoney){
$money='руб';
}
if((
$sistem==liberty)||($sistem==multi)||($sistem==alertpay)||($sistem==perfekt)and($currency=='U')){
$money='USD';
}
if(
$sistem==liqpay){
$money='USD';
}
$sql1=mysql_query("select*from ".$db_pref."pays");
$row=mysql_fetch_array($sql1);
$mat=$row['urovni'];
$matrix=$row['matrix'];
$mat_ref=$row['mat_ref'];
$ur=$row['urovni'];;
if(
$matrix=="YES"){
$mat_ref2 $mat_ref $mat_ref ;
$mat_ref3 $mat_ref2 $mat_ref;
$mat_ref4 $mat_ref3 $mat_ref;
$mat_ref5 $mat_ref4 $mat_ref;
$mat_ref6 $mat_ref5 $mat_ref;
$mat_ref7 $mat_ref6 $mat_ref;
$mat_ref8 $mat_ref7 $mat_ref;
$mat_ref9 $mat_ref8 $mat_ref;
$mat_ref10 $mat_ref9 $mat_ref;
$r1 $mat_ref;
$r2 $mat_ref2;
$r3 $mat_ref3;
$r4 $mat_ref4;
$r5 $mat_ref5;
$r6 $mat_ref6;
$r7 $mat_ref7;
$r8 $mat_ref8;
$r9 $mat_ref9;
$r10 $mat_ref10;
$rezult1 =$row['pay'] * $r1
if(
$mat>=2){
$rezult2 =$row['pay2'] * $r2;
}if(
$mat>=3){
$rezult3 =$row['pay3'] * $r3;
}if(
$mat>=4){
$rezult4 =$row['pay4'] * $r4;
}if(
$mat>=5){
$rezult5 =$row['pay5'] * $r5;
}if(
$mat>=6){
$rezult6 =$row['pay6'] * $r6;
}if(
$mat>=7){
$rezult7 =$row['pay7'] * $r7;
}if(
$mat>=8){
$rezult8 =$row['pay8'] * $r8;
}if(
$mat>=9){
$rezult9 =$row['pay9'] * $r9;
}if(
$mat>=10){
$rezult10 =$row['pay10'] * $r10;
}
$total $rezult1  $rezult2 $rezult3 $rezult4 $rezult5 $rezult6 $rezult7 $rezult8$rezult9 $rezult10;
}
else{
$mat_ref2 $mat_ref $mat_ref ;
$mat_ref3 $mat_ref2 $mat_ref;
$mat_ref4 $mat_ref3 $mat_ref;
$r1 $mat_ref;
$r2 $mat_ref2;
$r3 $mat_ref3;
$r4 $mat_ref4;
$r5 $mat_ref;
$r6 $mat_ref2;
$r7 $mat_ref3;
$r8 $mat_ref4;
$rezult1 =$row['pay'] * $r1
$rezult2 =$row['pay2'] * $r2;
$rezult3 =$row['pay3'] * $r3;
$rezult4 =$row['pay4'] * $r4;
$rezult5 =$row['pay5'] * $r5;
$rezult6 =$row['pay6'] * $r6;
$rezult7 =$row['pay7'] * $r7;
$rezult8 =$row['pay8'] * $r8;
$total $rezult1  $rezult2 $rezult3 $rezult4 $rezult5 $rezult6 $rezult7 $rezult8;
}
$sql=mysql_query("select*from ".$db_pref."pages");
$row=mysql_fetch_array($sql);
$color_g=$row['color'];
$m_color=$row['m_color'];
$b_color=$row['b_color'];
$body_width=$row['body_width'];
$images=$row['images'];
$flash=$row['flash'];
$status_storona=$row['statistik'];
$timer=$row['timer'];
$stats_width=$row['stats_width'];
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb"><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /><?=$row['head_meta'];?><title><?=$row['head_title'];?></title> <style type="text/css">.s5boxhidden{display:none;} </style>
<script language="javascript" type="text/javascript" >var s5_boxeffect = "none";</script> 
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/textarea.js"></script>
<script src="js/jquery.colorbox.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/colorbox.css" type="text/css" />
<script type="text/javascript">jQuery(document).ready(function(){ 
jQuery(".s5box_register").colorbox({width:"500px", inline:true, href:"#s5box_register"});
jQuery(".s5box_login").colorbox({width:"400px",height:"280px", inline:true, href:"#s5box_login"});
jQuery(".s5box_one").colorbox({width:"50%", inline:true, href:"#s5box_one"});
jQuery(".s5box_two").colorbox({width:"35%", inline:true, href:"#s5box_two"});
jQuery(".s5box_three").colorbox({width:"650px", inline:true, href:"#s5box_three"});
jQuery(".s5box_four").colorbox({width:"35%", inline:true, href:"#s5box_four"});jQuery(".s5box_five").colorbox({width:"35%", inline:true, href:"#s5box_five"});jQuery(".s5box_six").colorbox({width:"35%", inline:true, href:"#s5box_six"});jQuery(".s5box_seven").colorbox({width:"35%", inline:true, href:"#s5box_seven"});jQuery(".s5box_eight").colorbox({width:"35%", inline:true, href:"#s5box_eight"});jQuery(".s5box_nine").colorbox({width:"35%", inline:true, href:"#s5box_nine"});jQuery(".s5box_ten").colorbox({width:"35%", inline:true, href:"#s5box_ten"});});</script>
<script type="text/javascript">
jQuery(document).ready(function(){jQuery("div.hideWrap a.hideBtn").click(function(){jQuery(this).toggleClass('show').siblings('div.hideCont').slideToggle('normal');
return false;
});
});
</script>
<script type="text/javascript" src="js/ie6.js"></script>
<script type="text/javascript">   
jQuery(function() { 
jQuery.reject({ 
reject: { all: false }, 
header: 'Знаете ли вы, что ваш интернет-браузер устарел? ', 
paragraph1: 'Ваш браузер устарел, и не может быть совместим с нашим сайтом. Список самых популярных веб-браузеров можно найти ниже.', 
paragraph2: 'Просто нажмите на значки, чтобы перейти на страницы загрузки ', 
close: true, 
closeMessage: 'При закрытии этого окна вы признаете, что ваш интернет-браузер устарел !!!', 
closeLink: 'Закрыть это сообщение ?' 
}); 
return false; 
}); 
</script>
<meta http-equiv="Content-Type" content="text/html; _ISO" />
<meta http-equiv="Content-Style-Type" content="text/css" /><link href="css/template_css.css" rel="stylesheet" type="text/css" media="screen" /><link href="css/s5_suckerfish.css" rel="stylesheet" type="text/css" media="screen" /><link href="images/favicon.png" rel="shortcut icon" type="image/x-icon" />
<style type="text/css"> 
#s5_menu,.form4 { 
background:#<?=$m_color;?> url(images/s5_menu_bg.png) repeat-x top left;}
#s5_navv ul li.active a.active,#cboxLoadedContent div.module h3,.s5_h3_first,a,.contentheading,.componentheading,#current,#current span.s5_accordion_menu_left a.mainlevel,#current span { 
color:#<?=$color_g;?>;}
#s5_footer { 
margin-top:-11px;}
#s5_top_container { 
margin-bottom:0px;}
#s5_top_container .module_round_box { 
margin-bottom:0px;}
#s5_search {
margin-top:-<?if($lang_g=="YES"){echo"35";}else{echo"20";}?>px;
margin-right:4px;
width:180px;
height:70px;
overflow:hidden;
}
.clear { 
width:100%;
overflow:hidden; 
}
</style>
<?if($maxImage=='YES'){?>
<script src="js/jquery.maximage.js" type="text/javascript" charset="utf-8"></script>
<style>
img.bgmaximage {position:fixed !important;}
</style>
<script>
jQuery(function(){
jQuery('img.bgmaximage').maxImage({
isBackground: true,
overflow: 'auto'
});
});
</script>
<img src="images/s5_background1.jpg" class="bgmaximage" />
<?}else{?>
<div id="s5_body_wrap" style="background:url('images/s5_background1.jpg') no-repeat top center; position:fixed"></div>
<?}?>
<? 
include("inc/bodi.php");?>
</head>
<body id="s5_body" style="background-color:#<?=$b_color;?>">
<div id="s5_main_body_wrap" style="margin-left:-<?php echo $body_width/2 ?>px; width:<?php echo $body_width ?>px"><div id="s5_header_wrap1"><div id="s5_header_wrap2"><div id="s5_header_wrap3" style="width:<?php echo $body_width 24 ?>px"><div id="s5_logo" onclick="window.document.location.href='index.php'"></div><div id="s5_top_wrap" style="width:<?php echo $body_width 464 ?>px"><div id="s5_top_menu"></div><div style="clear:both"></div>
<div id="s5_search_outer"><div align="center" id="s5_search">
<a href="<?=$_SERVER['PHP_SELF'];?>?language=ru"><img src="images/ru.png" alt="" align="middle"/>&nbsp;</a>
<a href="<?=$_SERVER['PHP_SELF'];?>?language=en"><img src="images/uk.png" alt="" align="middle"/>&nbsp;</a>
<!--
<a href="<?=$_SERVER['PHP_SELF'];?>?language=lv"><img src="images/lv.png" alt="" align="middle"/>&nbsp;</a>-->
<?if($lang_g=="YES"){?>
<br>
<br>
<div id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'auto',
autoDisplay: false,
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<?}?>
</div></div>
</div></div></div></div><div id="s5_main_wrap" style="width:<?php echo $body_width?>px"><div class="s5_round_wrap">
<div class="s5_tl"></div><div class="s5_tm" style="width:<?php echo $body_width 48 ?>px"></div><div class="s5_tr"></div><div class="s5_ml" style="width:<?php echo $body_width 24 ?>px"><div class="s5_mr" style="width:<?php echo $body_width 48 ?>px"><div class="s5_mm" style="width:<?php echo $body_width 48 ?>px"><div style="position:relative"><div id="s5_menu"><div id="s5_navv"><?
$menu 
.='
<ul>
<li><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="index.php">'
.$lang['menu1'].'<span class="s5_bottom_text">'.$lang['menu1_1'].'</span></a></span></span>
<li><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="account.php">'
.$lang['menu4'].'<span class="s5_bottom_text">'.$lang['menu4_4'].'</span></a></span></span>
<li><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="faq.php">FAQ,s<span class="s5_bottom_text">'
.$lang['menu8_8'].'</span></a></span></span>
<li><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="rules.php">'
.$lang['menu2'].'<span class="s5_bottom_text">'.$lang['menu2_2'].'</span></a></span></span>
<li><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="news.php">'
.$lang['menu6'].'<span class="s5_bottom_text">'.$lang['menu6_6'].'</span></a></span></span>
'
;
$sqlgbactive=mysql_query("select*from ".$db_pref."sysvals where gb_active='YES'"); 
$rowgbactive=mysql_fetch_array($sqlgbactive); 
if(
$rowgbactive>0){ 
$menu .='<li><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="gb.php?page">'.$lang['menu7'].'<span class="s5_bottom_text">'.$lang['menu7_7'].'</span></a></span></span>';
}
$forumactive=mysql_query("select*from ".$db_pref."sysvals where forum_active='YES'"); 
$forumactive=mysql_fetch_array($forumactive); 
if(
$forumactive>0){ 
$menu .='<li><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="'.$forum_link.'">'.$lang['menu5'].'<span class="s5_bottom_text">'.$lang['menu5_5'].'</span></a></span></span>
</ul>
'
;
}
$PHP_SELF basename($_SERVER['PHP_SELF']); 
if(
$PHP_SELF == 'profile.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'reflinks.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'otpusk.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'order.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'mail.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'referrals.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'poderzka.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'bonus.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'new_order.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'confirm_order.php'$PHP_SELF 'account.php';
if(
$PHP_SELF == 'old_order.php'$PHP_SELF 'account.php';
echo 
str_replace 

'<li><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="'.$PHP_SELF
'<li class="active"><span class="s5_outer_active"><span class="s5_rs"><a class="active" href="'.$PHP_SELF
$menu 
); 
?></div><div style="display:none">
<img src="images/s5_menu_hover.png" alt=""></img></div>
<div id="s5_login_wrap1">
<div id="s5_login_wrap2">
<div id="s5_login_wrap3">
<div id="s5_login_wrap4">
<div id="s5_login_wrap5">
<?
if (isset($_COOKIE['id']) and isset($_COOKIE['hash'])) 

$query mysql_query("SELECT *,INET_NTOA(login_ip) as login_ip FROM ".$db_pref."users WHERE id = '".intval($_COOKIE['id'])."' LIMIT 1");
$userdata mysql_fetch_assoc($query); 
if((
$userdata['hash'] !== $_COOKIE['hash']) or ($userdata['id'] !== $_COOKIE['id'])
or ((
$userdata['login_ip'] !== $_SERVER['REMOTE_ADDR'])  and ($userdata['login_ip'] !== "0.0.0.0"))) 

?>
&nbsp;<a style="text-decoration:none" id="cursor" class="s5box_register"><?=$lang['menu3'];?></a>&nbsp;&nbsp;<a style="text-decoration:none" id="cursor" class="s5box_login"><?=$lang['hader7'];?></a>&nbsp;
<?

else 

$user=$userdata['user']; 
$stat=$userdata['rang'];
$email=$userdata['email'];
$lang['hader2']=str_replace("{stat}",$userdata['rang'],$lang['hader2']);
$lang['zakaz1']=str_replace("{stat}",$userdata['rang'],$lang['zakaz1']);
$lang['zakaz1']=str_replace("{stat+1}",$stat+1,$lang['zakaz1']);
$skype_da=strlen($userdata['skype']);
$icq_da=strlen($userdata['icq']);
$alertpay_multi=$userdata['alertpay'];
$perfektmoney_multi=$userdata['perfektmoney'];
$wmkosel=$userdata['wm'];
$lastlogdate time();
$ip=getRealIP();
$tim=$_SERVER['REQUEST_TIME'];
mysql_query("update ".$db_pref."users set lang='$langu' , date_active='$lastlogdate' , ip='$ip', status='YES', tim='$tim' where user='$user' limit 1");
?>
<a href="<?=$_SERVER['PHP_SELF'];?>?logout"><?=$lang['hader4'];?></a>
<?  


else 

?>
&nbsp;<a style="text-decoration:none" id="cursor" class="s5box_register"><?=$lang['menu3'];?></a>&nbsp;&nbsp;<a style="text-decoration:none" id="cursor" class="s5box_login"><?=$lang['hader7'];?></a>&nbsp;
<?

?>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="s5_menu_shadow"></div>
<?
$sqlslider
=mysql_query("select*from ".$db_pref."slider");
$rowslider=mysql_num_rows($sqlslider);
if((
$rowslider>'0')and($sliders=="YES")and(strpos($_SERVER['PHP_SELF'], 'index.php' ) !== false)) {
include(
"inc/slider.php");
}
?>
</div>
</div>
</div>
</div>
<div class="s5_bl"></div>
<div class="s5_bm" style="width:<?php echo $body_width 48 ?>px"></div>
<div class="s5_br"></div>
<div style="clear:both"></div>
</div>
<?
if($status_storona=="NO"){
include(
"inc/stat.inc.php");
}
?>
<div id="s5_middle" style="width:<?php echo $body_width $stats_width -11 ?>px">
<div class="s5_round_wrap">
<div class="s5_tl"></div>
<div class="s5_tm" style="width:<?php echo $body_width $stats_width -59 ?>px"></div>
<div class="s5_tr"></div>
<div class="s5_ml" style="width:<?php echo $body_width $stats_width -35?>px">
<div class="s5_mr" style="width:<?php echo $body_width $stats_width -59 ?>px">
<div class="s5_mm" style="width:<?php echo $body_width $stats_width -59 ?>px">
<div style="position:relative">
<div id="s5_component_wrap">
<table class="blog" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<div>
<?
if(isset($_GET['logout'])){
?>
<div class="form">
<h3 align="center" style="font-weight:bold;"><i><?=$lang['v'];?></i></h3>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" class="table"><font color="red"><?=$lang['v1'];?></font></td>
</tr>
</table></div><br>
<script language='Javascript'>function reload() {location = "index.php"}; setTimeout('reload()', 3000);</script>
<?
}
?>
<?
if(isset($_POST['del_order'])):
?>
<div class="form">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" class="table">
<?
$sqlorder_del
=mysql_query("select*from ".$db_pref."neworders where name='$user'");
$roworder_del=mysql_fetch_array($sqlorder_del);
$id=$roworder_del['id'];
$zapr_ref=$roworder_del['zapros_ref'];
$ulength_zap_ref=strlen($zapr_ref);
if(
$ulength_zap_ref==0){
?>
<br><h3 align="center">
<?=$lang['zap_del'];?>
</h3><br>
<form name="zapros_ref" METHOD=POST ACTION="account.php">
<textarea class='form2 resizable' name="zapros_ref" style="width:100%;"/></textarea>
<input TYPE="hidden" name="uid" value="<?=$id?>">
<input class="button" TYPE="submit" value=".:: <?=$lang['zap_del1'];?> ::.">
</form>
<br>
<?}else{
echo 
"<div align='center'><font color='green'><br><b>".$lang['zap_del3']."</b></font><br>
<BR>
<div class='form'>
$zapr_ref
</div>
<br></div>"

}
?>
</div>
</td>
</tr>
</table></div><br>
<?
elseif(isset($_POST['zapros_ref'])):
$uid=mysql_escape_string($_POST['uid']);
$zapros_ref=mysql_escape_string($_POST['zapros_ref']);
$ulength=strlen($_POST['zapros_ref']);
if(
$ulength==0){
echo 
"<script language='Javascript'>function reload() {location = "account.php"}; setTimeout('reload()', 3000);</script>";
echo 
"<div align='center'><font color='red'><b>".$lang['zap_del2']."</b></font><br><br></div>"
}else{
echo 
"<div align='center'><font color='green'><br><b>".$lang['zap_del3']."</b></font><br><br></div>"
$zapros_ref str_replace"<"""$zapros_ref );
$zapros_ref str_replace">"""$zapros_ref );
mysql_query("update ".$db_pref."neworders set zapros_ref='$zapros_ref' where id='$uid' LIMIT 1");
echo 
"<script language='Javascript'>function reload() {location = "account.php"}; setTimeout('reload()', 3000);</script>";
}
endif;
?>
Онлайн: 1
Реклама