Файл: inc/shapka.php
Строк: 345
<?php
include 'inc/mysql.php';
include 'inc/check.php';
include ("inc/head.php");
if(isset($_SESSION['auth']) && $_SESSION['auth']==1){
include 'inc/account.php';
include 'inc/func.php';
include 'inc/regeneration.php';
include_once ("inc/gradient.php");
include 'inc/hacked.php';
include ("inc/exp.php");
$stop_injection = new InitVars();
$t = microtime(1);
echo '<div class="informationnavig">';
if($account['status']=="gm"){
$nik = gradient(''.$account[login].'','00FF00', '00CC00');
echo "<img src='pic/main/$account[sex].png' alt='*'/> $nik <img src='/pic/main/up.png' alt='*'/> $account[lvl] <img src='/pic/main/hp.png' alt='*'/> ".number_format ($account[hp])." <img src='/pic/main/mp.png' alt='*'/> ".number_format ($account[mp])." <img src='/pic/main/money.png' alt='*'/> ".number_format ($account[money])." <img src='/pic/main/baks.png' alt='*'/> ".number_format ($account[baks])." <img width='15' height='15' src='/pic/main/boy.png' alt='*'/> ".number_format ($account[arena])."/".number_format ($account[arena2])."";
}else{
if($account['status']=="moder"){
$nik = gradient(''.$account[login].'','0066CC', 'AB82FF');
echo "<img src='pic/main/$account[sex].png' alt='*'/> $nik <img src='/pic/main/up.png' alt='*'/> $account[lvl] <img src='/pic/main/hp.png' alt='*'/> ".number_format ($account[hp])." <img src='/pic/main/mp.png' alt='*'/> ".number_format ($account[mp])." <img src='/pic/main/money.png' alt='*'/> ".number_format ($account[money])." <img src='/pic/main/baks.png' alt='*'/> ".number_format ($account[baks])." <img width='15' height='15' src='/pic/main/boy.png' alt='*'/> ".number_format ($account[arena])."/".number_format ($account[arena2])."";
}else{
if($account['status']=="bot"){
$nik = gradient(''.$account[login].'','FFCC00', 'FF9933');
echo "<img src='pic/main/$account[sex].png' alt='*'/> $nik <img src='/pic/main/up.png' alt='*'/> $account[lvl] <img src='/pic/main/hp.png' alt='*'/> ".number_format ($account[hp])." <img src='/pic/main/mp.png' alt='*'/> ".number_format ($account[mp])." <img src='/pic/main/money.png' alt='*'/> ".number_format ($account[money])." <img src='/pic/main/baks.png' alt='*'/> ".number_format ($account[baks])." <img width='15' height='15' src='/pic/main/boy.png' alt='*'/> ".number_format ($account[arena])."/".number_format ($account[arena2])."";
}else{
echo "<img src='pic/main/$account[sex].png' alt='*'/> $account[login] <img src='/pic/main/up.png' alt='*'/> $account[lvl] <img src='/pic/main/hp.png' alt='*'/> ".number_format ($account[hp])." <img src='/pic/main/mp.png' alt='*'/> ".number_format ($account[mp])." <img src='/pic/main/money.png' alt='*'/> ".number_format ($account[money])." <img src='/pic/main/baks.png' alt='*'/> ".number_format ($account[baks])." <img width='15' height='15' src='/pic/main/boy.png' alt='*'/> ".number_format ($account[arena])."/".number_format ($account[arena2])."";
}}}
$date=date("D");
if($date=="Mon"){
echo " <img width='15' height='15' src='/pic/main/rystal.png' alt='*'/> $account[krustal]";
}
if($date=="Tue"){
echo " <img width='15' height='15' src='/pic/main/rystal.png' alt='*'/> $account[krustal]";
}
if($date=="Wed"){
echo " <img width='15' height='15' src='/pic/main/rystal.png' alt='*'/> $account[krustal]";
}
if($date=="Thu"){
echo " <img width='15' height='15' src='/pic/main/rystal.png' alt='*'/> $account[krustal]";
}
if($date=="Fri"){
echo " <img width='15' height='15' src='/pic/main/rystal.png' alt='*'/> $account[krustal]";
}
if($date=="Sat"){
echo " <img width='15' height='15' src='/pic/main/rystal.png' alt='*'/> $account[krustal]";
}
$req = mysql_query("SELECT * FROM `arena_boy` WHERE `account` = '$account[id]' ");
$avto=mysql_num_rows($req);
if($avto==1){
$aro = mysql_fetch_array($req);
$aro[time]=$aro[time]-time();
if($aro[time]<60){
echo " <img src='pic/main/timereg.png' alt='*'/> <a href='arena.php'>$aro[time] сек.</a>";
}elseif($aro[time]>60 and $aro[time]<3600){
$aro[time]=round($aro[time]/60);
echo " <img src='pic/main/timereg.png' alt='*'/> <a href='arena.php'>$aro[time] мин.</a>";
}else{
$aro[time]=round($aro[time]/3600);
echo " <img src='pic/main/timereg.png' alt='*'/> <a href='arena.php'>$aro[time] час.</a>";
}}
$req = mysql_query("SELECT * FROM `arena_travma` WHERE `account` = '$account[id]' ");
$avto=mysql_num_rows($req);
if($avto==1){
$aro = mysql_fetch_array($req);
$aro[time]=$aro[time]-time();
if($aro[time]>= 1){
if($aro[time]<60){
echo " <img src='pic/main/timereg.png' alt='*'/> <a href='arena.php'>$aro[time] сек.</a>";
}elseif($aro[time]>60 and $aro[time]<3600){
$aro[time]=round($aro[time]/60);
echo " <img src='pic/main/timereg.png' alt='*'/> <a href='arena.php'>$aro[time] мин.</a>";
}else{
$aro[time]=round($aro[time]/3600);
echo " <img src='pic/main/timereg.png' alt='*'/> <a href='arena.php'>$aro[time] час.</a>";
}}}
if($account[patrul]=="on"){
$req = mysql_query("SELECT * FROM `patrul` WHERE `time`>'$time' and `account`='$account[id]'");
$avto=mysql_num_rows($req);
if($avto==1){
$aro = mysql_fetch_array($req);
$aro[time]=$aro[time]-time();
if($aro[time]<60){
echo " <img src='pic/main/patrul.png' alt='*'/> <a href='patrul.php'>$aro[time] сек.</a>";
}elseif($aro[time]>60 and $aro[time]<3600){
$aro[time]=round($aro[time]/60);
echo " <img src='pic/main/patrul.png' alt='*'/> <a href='patrul.php'>$aro[time] мин.</a>";
}else{
$aro[time]=round($aro[time]/3600);
echo " <img src='pic/main/patrul.png' alt='*'/> <a href='patrul.php'>$aro[time] час.</a>";
}}else{
echo " <img src='pic/main/patrul.png' alt='*'/> <a href='patrul.php'>0 сек.</a>";
}}
if($account[shakta]=='on' && $account[shakta_tip]=='0'){
$req = mysql_query("SELECT * FROM `shakta` WHERE `tip`='mesto' and `time`>'$time' and `account`='$account[id]'");
$avto=mysql_num_rows($req);
if($avto==1){
$aro = mysql_fetch_array($req);
$aro[time]=$aro[time]-time();
if($aro[time]<60){
echo " <img src='/pic/shakta/kirka.png' alt='*'/> <a href='shakta.php'>$aro[time] сек.</a>";
}elseif($aro[time]>60 and $aro[time]<3600){
$aro[time]=round($aro[time]/60);
echo " <img src='/pic/shakta/kirka.png' alt='*'/> <a href='shakta.php'>$aro[time] мин.</a>";
}else{
$aro[time]=round($aro[time]/3600);
echo " <img src='/pic/shakta/kirka.png' alt='*'/> <a href='shakta.php'>$aro[time] час.</a>";
}}else{
echo " <img src='pic/shakta/kirka.png' alt='*'/> <a href='shakta.php'>0 сек.</a>";
}}
if($account[shakta]=='on' && $account[shakta_tip]=='2'){
$req = mysql_query("SELECT * FROM `shakta` WHERE `tip`='mesto2' and `time`>'$time' and `account`='$account[id]'");
$avto=mysql_num_rows($req);
if($avto==1){
$aro = mysql_fetch_array($req);
$aro[time]=$aro[time]-time();
if($aro[time]<60){
echo " <img src='/pic/shakta/kirka.png' alt='*'/> <a href='shakta.php'>$aro[time] сек.</a>";
}elseif($aro[time]>60 and $aro[time]<3600){
$aro[time]=round($aro[time]/60);
echo " <img src='/pic/shakta/kirka.png' alt='*'/> <a href='shakta.php'>$aro[time] мин.</a>";
}else{
$aro[time]=round($aro[time]/3600);
echo " <img src='/pic/shakta/kirka.png' alt='*'/> <a href='shakta.php'>$aro[time] час.</a>";
}}else{
echo " <img src='pic/shakta/kirka.png' alt='*'/> <a href='shakta.php'>0 сек.</a>";
}}
if($account[ozero]=='on' && $account[ozero_tip]=='0'){
$req = mysql_query("SELECT * FROM `ozero` WHERE `tip`='mesto' and `time`>'$time' and `account`='$account[id]'");
$avto=mysql_num_rows($req);
if($avto==1){
$aro = mysql_fetch_array($req);
$aro[time]=$aro[time]-time();
if($aro[time]<60){
echo " <img src='/pic/main/ozero.png' alt='*'/> <a href='ozero.php'>$aro[time] сек.</a>";
}elseif($aro[time]>60 and $aro[time]<3600){
$aro[time]=round($aro[time]/60);
echo " <img src='/pic/main/ozero.png' alt='*'/> <a href='ozero.php'>$aro[time] мин.</a>";
}else{
$aro[time]=round($aro[time]/3600);
echo " <img src='/pic/main/ozero.png' alt='*'/> <a href='ozero.php'>$aro[time] час.</a>";
}}else{
echo " <img src='pic/main/ozero.png' alt='*'/> <a href='ozero.php'>0 сек.</a>";
}}
if($account[ozero]=='on' && $account[ozero_tip]=='2'){
$req = mysql_query("SELECT * FROM `ozero` WHERE `tip`='mesto2' and `time`>'$time' and `account`='$account[id]'");
$avto=mysql_num_rows($req);
if($avto==1){
$aro = mysql_fetch_array($req);
$aro[time]=$aro[time]-time();
if($aro[time]<60){
echo " <img src='/pic/main/ozero.png' alt='*'/> <a href='ozero.php'>$aro[time] сек.</a>";
}elseif($aro[time]>60 and $aro[time]<3600){
$aro[time]=round($aro[time]/60);
echo " <img src='/pic/main/ozero.png' alt='*'/> <a href='ozero.php'>$aro[time] мин.</a>";
}else{
$aro[time]=round($aro[time]/3600);
echo " <img src='/pic/main/ozero.png' alt='*'/> <a href='ozero.php'>$aro[time] час.</a>";
}}else{
echo " <img src='pic/main/ozero.png' alt='*'/> <a href='ozero.php'>0 сек.</a>";
}}
echo '</div>';
echo '<div class="rate"><div class="ratk2" style="width:'.$exp.'%"></div></div>';
include 'inc/lvl_ap.php';
include 'inc/bonus.php';
include 'inc/zadanye.php';
if($account[aktivations]=="off"){
echo'<div class="text"><a href="activs.php?"><img src="pic/index/!.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Сохранись и получи 100 <img src="/pic/main/baks.png" alt="*"/></a></div>';
}
$u=mysql_query("SELECT * FROM `forum_topik` WHERE `razdel`='1' ORDER by `id` DESC");
$dat=mysql_fetch_array($u);
$uids=$dat[tema];
$qi = mysql_query("SELECT * FROM `forum_topik` WHERE `razdel`='1' and `id`='$dat[id]' ORDER by `id` DESC ");
$avto = mysql_num_rows($qi);
if($avto==1){
While($row= mysql_fetch_array($qi))
{
$req = mysql_query("SELECT * FROM `forum_golos` WHERE `account`='$account[id]' and `ids`='1' and `topik`='$dat[id]' ");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto==0){
echo'<div class="text"><a href="forum.php?mod=post&id=1&topik='.$dat[id].'"><img src="pic/index/!.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> Событие: '.$row[tema].'</a></div>';
}}}
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `to`='".$account['id']."' AND `read`='0'"),0) && !isset($mail)){
echo'<div class="text"><a href="mails.php?act=new"><img src="pic/main/mail.png" alt="" style="border:1px solid #131313;border-radius:2px;height:16px;width:16px"/> У тебя есть новые сообщения</a></div>';
}
}else{
header ("Location: index.php"); exit;
}
?>