Файл: public_html/light_start.php
Строк: 145
<?
define('PROTECTOR', 1);
defined('index') or die('Error: restricted access');
$head = 'start';
$textl='Обучение';
@include_once('files/db.php');
@include_once('files/auth.php');
@include_once('include.php');
@include_once('files/vip.php');
@include_once('files/online.php');
@include_once('files/sql.php');
@include_once('files/lvl.php');
@include_once('files/func.php');
@include_once('files/regeneration.php');
$close_mysql = @mysql_fetch_assoc( @mysql_query_new("SELECT `$head` FROM `close` LIMIT 1"));
if($close_mysql["$head"]==1){
@include_once('files/head.php');
@include_once('files/zag.php');
location_exit("$textl");
@include_once('files/down.php'); exit;}
$user_start = @mysql_fetch_array( @mysql_query_new("SELECT * FROM `user_start` WHERE `usr`='$udata[id]' LIMIT 1"));
if(empty($user_start['id'])){ @mysql_query_new("INSERT INTO `user_start` SET `id`='$udata[id]',`usr`='$udata[id]'"); }
if($_GET['mod']<$user_start['start']){
$_SESSION['msg']="$baloon<center> Вы уже прошли это обучение! </center></div>";
@header("Location: /index.php?$_get_r&mod=$user_start[start]"); }
if($_GET['mod']>$user_start['start']){
@header("Location: /index.php?$_get_r&mod=$user_start[start]"); }
function down_start(){
global $udata,$imgauth,$imgexp,$op,$start_game,$_light,$_default;
if($_light)
{$_p_font="e8cd96"; $_p_width = 55; $_p_class="img-border"; $_p_big = null;}else
{$_p_font="653f27"; $_p_width = 65; $_p_class="img-b"; $_p_big="big/";}
echo "
<div class='b-profile'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>
<td rowspan='2' width='$_p_width'>
<img src='/theme/i/icons/status/0_$udata[pol].png' alt='' class='img-border' style='width: 90%;'></td>
<td>
<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>
<td align='left'>".us("usr{".$udata['id']."}")."</td>
<td align='right'><font color='#$_p_font'> ур.$udata[lvl]</font></td>
</tr> </table>
</td> </tr>
<tr> <td>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td align='left' width='$_w_1%'>$imgauth<font color='#$_p_font'>". okr("$udata[auth]") ."</font></td>
<td align='right' width='$_w_2%'>$imgexp<font color='#$_p_font'>". okr("$udata[exp]") ." / ". okr("$op") ."</font></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class='index'><center>
". mb_substr((microtime(true)-$start_game), 0, 5) ." сек.
<br>
<img src='/theme/i/icons/vk.png' width='19'> <a href='http://vk.com' style='color: #8E9AA1;'>Мы Вконтакте </a>
<br> © ".date("Y")." «ZEBEST Inc.» 16+ </center>
</div>
</body>
</html>
";
}
function start_start($text){
global $balka,$udata,$baloon;
echo"
$baloon
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='70' valign='top'>
<img src='theme/i/icons/status/big/".$udata['storona']."_m.png' class='img-border' style='width:60px;'>
</td>
<td valign='top' style='padding:2px;'>
<b>Крестный Отец:</b><br>
$text
</td>
</tr>
</table>
</div>
";
}
switch($_GET['mod']){
default:
@header("Location: /index.php?$_get_r&mod=$user_start[start]");
break;
case'0':
@include_once('files/head.php');
@include_once('files/zag.php');
echo start_start("Тут текст обучения...");
if($_default){$_58_50="width='60' height='53'"; }else{$_58_50="width='55' height='50'"; }
if($_default){echo"$div";}
echo"
<center>
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>
<center>
<a href='?r=index&mod=crop&id=28742'>
<img src='/theme/i/icons/toch/0.png' alt='*' title='*' style='background: #EBE3B3; border-radius: 6px; border: 1px solid #856531;' $_58_50>
</a>
</center>
</td>
<td>
<img src='/theme/i/icons/toch/0.png' alt='*' title='*' style='background: #EBE3B3; border-radius: 6px; border: 1px solid #856531;' $_58_50>
</td>
<td>
<img src='/theme/i/icons/toch/0.png' alt='*' title='*' style='background: #EBE3B3; border-radius: 6px; border: 1px solid #856531;' $_58_50>
</td>
<td>
<img src='/theme/i/icons/toch/0.png' alt='*' title='*' style='background: #EBE3B3; border-radius: 6px; border: 1px solid #856531;' $_58_50>
</td>
</tr>
<tr>
<td>
<a href='index.php?r=index&mod=new_toch'><img src='/theme/i/icons/toch/dot-for-sale.png' style='background: #EF9384; border-radius: 6px; border: 1px solid #856531;' $_58_50/></a>
</td>
<td><img alt='' src='/theme/i/icons/toch/dot-no-sale.png' style='background: #EF9384; border-radius: 6px; border: 1px solid #856531;' $_58_50/></td>
<td><img alt='' src='/theme/i/icons/toch/dot-no-sale.png' style='background: #EF9384; border-radius: 6px; border: 1px solid #856531;' $_58_50/></td>
<td><img alt='' src='/theme/i/icons/toch/dot-no-sale.png' style='background: #EF9384; border-radius: 6px; border: 1px solid #856531;' $_58_50/></td>
</tr>
</table>
</center>
</div>
<div class='border-top'></div>
<div class='inner-content'>
<div class='font13 mt5'>
Склад: <img alt='*' src='theme/i/icons/toch/box.png'> <b>$udata[crop]</b>
</div>
</div>
$balka
<!----------------------- end index.php ----------------------->
";
down_start();
break;
}
?>