Файл: public_html/files/profile.php
Строк: 191
<?
$op = abs($op);
$exp=(100/$op)*abs($udata['exp']);
$_rating_udata_profile = "
<div class='rating' style='width: 100%;'>
<div class='in' style='width: $exp%'></div></div>";
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/";}
$_p_big = null;
$_img_profile = '<img src="'.$path.'/theme/i/icons/status/'. $_p_big .''. $udata['storona'] .'_'. $udata['pol'] .'.png" alt="" class="'. $_p_class .'" style=" width: 90%; ">';
$coin_redaction_prof = @mysql_fetch_assoc( @mysql_query("SELECT `id` FROM `coin_redaction` WHERE `usr`='$udata[id]' and `status`='1' and `time`>'$time' LIMIT 1"));
if(!empty($coin_redaction_prof['id'])){$_url_coin_redaction_prof = " <a href='/index.php?r=setting&mod=info_coin'>
<font color='red'>(?)</font></a>";}
$_url_udata_profile = "".us("us{".$udata['id']."}")."$_url_coin_redaction_prof";
$_lvl_udata_profile = "<font color='#$_p_font'> ур.$udata[lvl]</font>";
$_auth_udata_profile = "$imgauth<font color='#$_p_font'>". okr("$udata[auth]") ."</font>";
$_exp_udata_profile = "$imgexp<font color='#$_p_font'>". okr("$udata[exp]") ." / ". okr("$op") ."</font>";
//if($_light)
{
$_w_1 = '40';
$_w_2 = '60';
$_1_profile = "$_img_profile";
$_2_profile = "$_url_udata_profile";
$_3_profile = "$_lvl_udata_profile";
$_4_profile = "$_auth_udata_profile";
$_5_profile = "$_exp_udata_profile";
}
/*
else
{
$_w_1 = '20';
$_w_2 = '80';
$_1_profile = "$_img_profile";
$_2_profile = "<u>$_url_udata_profile</u>";
$_3_profile = "$_auth_udata_profile";
$_4_profile = "<span style='margin-left: 3px;'>$_lvl_udata_profile</span>";
$_5_profile = "$_rating_udata_profile";
}
/* */
echo"
<div class='b-profile'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>
<td rowspan='2' width='$_p_width'>$_1_profile</td>
<td>
<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>
<td align='left'>$_2_profile</td>
<td align='right'>$_3_profile</td>
</tr> </table>
</td> </tr>
<tr> <td>
<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>
<td align='left' width='$_w_1%'>$_4_profile</td>
<td align='right' width='$_w_2%'>$_5_profile</td>
</tr> </table>
</td>
</tr></table></div>";
if(isset($_GET['site'])){$_SESSION['site'] = ($_GET['site']); }
if(isset($_GET['close_site'])){$_SESSION['close_site'] = ($time+$_GET['close_site']); }
if(!empty($_SESSION['site']) and $_SESSION['close_site']<$time){
$rand_reklama_end=rand(1,1);
if($rand_reklama_end==1){
echo"
$balka
<div style='background: #C6F3FB; font-size: 11px; padding: 2px;' class='inner-content'>
<b> Pеклама:</b>
<br>
<a href='http://$_SESSION[site]'>$_SESSION[site]</a>";}
echo"</div>$balka";
$_no_balka=1;
}
//--------- free_monets ---------\
if($udata['lvl']>=15){
$bank_monets_you = @mysql_fetch_array( @mysql_query("SELECT * FROM `free_monets` WHERE `usr`='$udata[id]' LIMIT 1"));
if(!empty($bank_monets_you['id']) and $bank_monets_you['time']<=$time and $bank_monets_you['click']>=1000){
if(empty($_no_balka)) echo"n $balka";
echo"n <div style='background: #C6F3FB; font-size: 10px; padding: 1px;' class='inner-content'>";
if($agent=="PK" or !empty($_default)){
echo"n <marquee behavior='alternative' direction='right' scrollamount='7'>";
} else {
echo"n <div class='rightw'>";
}
echo"n <a href='?r=bank&mod=free_monets&id=$bank_monets_you[id]&us=$bank_monets_you[usr]&hash=$bank_monets_you[hash]'>$imgdoc</a>";
if($agent=="PK" or !empty($_default)){
echo"n </marquee>";
} else {
echo"n </div>";
}
echo"n </div>$balka";
$_no_balka=1;
}
}
##--------- free_monets ---------##
//--------- Скидка ---------\
$bank_setting = @mysql_fetch_array( @mysql_query("SELECT * FROM `bank_setting` LIMIT 1"));
$bank_setting_skidon = $bank_setting[''.date("D").''];
if(!empty($bank_setting_skidon) and $udata['lvl']>=8){
if(empty($_no_balka)) echo"n $balka";
$Name_Skidka = dater(date("D"));
$array_D = array('Mon','Tue','Wed','Thu','Fri','Sat','Sun');
echo"
<div style='background: #FFFAC7; font-size: 11px; color: #635B49; padding: 2px;'>
<b>".$Name_Skidka.":</b>
<center>
Скидка на рубины в <a href='/index.php?r=bank'>банке</a> - <b>(+$bank_setting_skidon%)</b>
</center>
</div>
$balka";
$_no_balka=1;
}
##--------- Скидка ---------##
//------------ Стартовый донат-------------\
if($udata['lvl']>=12 and $_GET['r']!='worldkassa'){
$bank_bonus_one = @mysql_fetch_array( @mysql_query("SELECT * FROM `bank_pay` WHERE `type`='bonus' ORDER BY `id` ASC LIMIT 1"));
$num_bonus_one = @mysql_num_rows( @mysql_query("SELECT * FROM `worldkassa` WHERE `summa` = '$bank_bonus_one[price]' and `time_oplata`!='0' and `id_user`='$udata[id]'"));
if(empty($num_bonus_one)){
$_world_bonus = @mysql_fetch_array( @mysql_query("SELECT * FROM `world_bonus` WHERE `usr`='$udata[id]'"));
if(empty($_world_bonus['id'])){ @mysql_query("INSERT INTO `world_bonus` SET `usr`='$udata[id]', `time`='".((3600*24) + time())."'"); }else{
$_world_bonus_sek = ( $_world_bonus['time'] - time() );
$_world_text_sek = date("".(abs(floor($_world_bonus_sek/3660))).":i:s","$_world_bonus_sek");
if($_world_bonus_sek>='0'){
if(empty($_no_balka)){echo"$balka";}
echo"
<div class='inner-content' style='background: #F2E386; font-size: 11px; padding: 2px;'>
<table width='100%' border='0' cellpadding='0' cellspacing='0' >
<tr>
<td>
<div class='pack-icon pack1'> <span class='c-realgreen'>50</span> </div></td>
<td><b>Стартовый</b> - <b>$_world_text_sek</b> <br/>
<b> $imgdoc<font color='green'>100 в подарок! <br>
$imgdamage+10 на 48 часов</b></font></a>
<a href='/index.php?r=worldkassa' class='bttn_green'>Подробнее...</a> (Цена <b>$bank_bonus_one[price]</b> руб.)</a></div>
</td></tr>
</table>
</div>
$balka";
}
}}
}
//------------ Стартовый донат-------------\
echo"n
<!----------------------- END PROFILE -----------------------> nn";
?>