Вход Регистрация
Файл: world-faces.ru/world-faces.ru/arena/level.php
Строк: 136
<?php
if($user['arena_exp']>=&& $user['arena_exp']<=10)$level=0;
elseif(
$user['arena_exp']>=11 && $user['arena_exp']<=50)$level=1;
elseif(
$user['arena_exp']>=51 && $user['arena_exp']<=100)$level=2;
elseif(
$user['arena_exp']>=101 && $user['arena_exp']<=150)$level=3;
elseif(
$user['arena_exp']>=151 && $user['arena_exp']<=200)$level=4;
elseif(
$user['arena_exp']>=201 && $user['arena_exp']<=300)$level=5;
elseif(
$user['arena_exp']>=301 && $user['arena_exp']<=400)$level=6;
elseif(
$user['arena_exp']>=401 && $user['arena_exp']<=600)$level=7;
elseif(
$user['arena_exp']>=601 && $user['arena_exp']<=900)$level=8;
elseif(
$user['arena_exp']>=901 && $user['arena_exp']<=1200)$level=9;
elseif(
$user['arena_exp']>=1201 && $user['arena_exp']<=1600)$level=10;
elseif(
$user['arena_exp']>=1601 && $user['arena_exp']<=2000)$level=11;
elseif(
$user['arena_exp']>=2001 && $user['arena_exp']<=2500)$level=12;
elseif(
$user['arena_exp']>=2501 && $user['arena_exp']<=3000)$level=13;
elseif(
$user['arena_exp']>=3001 && $user['arena_exp']<=3500)$level=14;
elseif(
$user['arena_exp']>=3501 && $user['arena_exp']<=4000)$level=15;
elseif(
$user['arena_exp']>=4001 && $user['arena_exp']<=5000)$level=16;
elseif(
$user['arena_exp']>=5001 && $user['arena_exp']<=6000)$level=17;
elseif(
$user['arena_exp']>=6001 && $user['arena_exp']<=7000)$level=18;
elseif(
$user['arena_exp']>=7001 && $user['arena_exp']<=8500)$level=19;
elseif(
$user['arena_exp']>=8501 && $user['arena_exp']<=9000)$level=20;
elseif(
$user['arena_exp']>=9001 && $user['arena_exp']<=10500)$level=21;
elseif(
$user['arena_exp']>=10501 && $user['arena_exp']<=11500)$level=22;
elseif(
$user['arena_exp']>=11501 && $user['arena_exp']<=13000)$level=23;
elseif(
$user['arena_exp']>=13001 && $user['arena_exp']<=15500)$level=24;
elseif(
$user['arena_exp']>=15501 && $user['arena_exp']<=17000)$level=25;
elseif(
$user['arena_exp']>=17001 && $user['arena_exp']<=19000)$level=26;
elseif(
$user['arena_exp']>=19001 && $user['arena_exp']<=21000)$level=27;
elseif(
$user['arena_exp']>=21001 && $user['arena_exp']<=23000)$level=28;
elseif(
$user['arena_exp']>=23001 && $user['arena_exp']<=25000)$level=29;
elseif(
$user['arena_exp']>=25001 && $user['arena_exp']<=27000)$level=30;
elseif(
$user['arena_exp']>=27001 && $user['arena_exp']<=29000)$level=31;
elseif(
$user['arena_exp']>=29001 && $user['arena_exp']<=32000)$level=32;
elseif(
$user['arena_exp']>=32001 && $user['arena_exp']<=34000)$level=33;
elseif(
$user['arena_exp']>=34001 && $user['arena_exp']<=36000)$level=34;
elseif(
$user['arena_exp']>=36001 && $user['arena_exp']<=40000)$level=35;
elseif(
$user['arena_exp']>=40001 && $user['arena_exp']<=45000)$level=36;
elseif(
$user['arena_exp']>=45001 && $user['arena_exp']<=50000)$level=37;
elseif(
$user['arena_exp']>=50001 && $user['arena_exp']<=55000)$level=38;
elseif(
$user['arena_exp']>=55001 && $user['arena_exp']<=60000)$level=39;
elseif(
$user['arena_exp']>=60001 && $user['arena_exp']<=65000)$level=40;
elseif(
$user['arena_exp']>=65001 && $user['arena_exp']<=70000)$level=41;
elseif(
$user['arena_exp']>=70001 && $user['arena_exp']<=75000)$level=42;
elseif(
$user['arena_exp']>=75001 && $user['arena_exp']<=80000)$level=43;
elseif(
$user['arena_exp']>=80001 && $user['arena_exp']<=85000)$level=44;
elseif(
$user['arena_exp']>=85001 && $user['arena_exp']<=90000)$level=45;
elseif(
$user['arena_exp']>=90001 && $user['arena_exp']<=100000)$level=46;
elseif(
$user['arena_exp']>=100001 && $user['arena_exp']<=110000)$level=47;
elseif(
$user['arena_exp']>=110001 && $user['arena_exp']<=120000)$level=48;
elseif(
$user['arena_exp']>=120001 && $user['arena_exp']<=130000)$level=49;
elseif(
$user['arena_exp']>=130001 && $user['arena_exp']<=150000)$level=50;
elseif(
$user['arena_exp']>=150001 && $user['arena_exp']<=200000)$level=51;
elseif(
$user['arena_exp']>=200001 && $user['arena_exp']<=500000)$level=52;
elseif(
$user['arena_exp']>=500001 && $user['arena_exp']<=750000)$level=53;
elseif(
$user['arena_exp']>=750001 && $user['arena_exp']<=1000000)$level=54;
elseif(
$user['arena_exp']>=1000001 && $user['arena_exp']<=1300000)$level=55;
elseif(
$user['arena_exp']>=1300001 && $user['arena_exp']<=2000000)$level=56;
elseif(
$user['arena_exp']>=2000001 && $user['arena_exp']<=5000000)$level=57;
elseif(
$user['arena_exp']>=5000001 && $user['arena_exp']<=10000000)$level=58;
elseif(
$user['arena_exp']>=10000001 && $user['arena_exp']<=20000000)$level=59;
elseif(
$user['arena_exp']>=20000001 && $user['arena_exp']<=40000000)$level=60;
elseif(
$user['arena_exp']>=40000001 && $user['arena_exp']<=50000000)$level=61;
elseif(
$user['arena_exp']>=50000001 && $user['arena_exp']<=70000000)$level=62;
elseif(
$user['arena_exp']>=70000001 && $user['arena_exp']<=100000000)$level=63;
elseif(
$user['arena_exp']>=100000001 && $user['arena_exp']<=200000000)$level=64;
elseif(
$user['arena_exp']>=300000001)$level=65;

if(
$user['arena_level']!=$level){
if(
$level>=&& $level <= 10){$gold=1;}
if(
$level>=11 && $level <= 20){$gold=2;}
if(
$level>=21 && $level <= 30){$gold=3;}
if(
$level>=31 && $level <= 40){$gold=5;}
if(
$level>=41 && $level <= 100){$gold=10;}
mysql_query("UPDATE `user` SET `arena_level` = '".$level."', `arena_gold`=`arena_gold`+ '".$gold."' WHERE `id` = $user[id] LIMIT 1");
echo
'<div class="prof">Вы перешли на новый уровень! Вы получаете <b>+'.$gold.'</b> золота!</div>';
}



?>
Онлайн: 1
Реклама