Файл: world-faces.ru/world-faces.ru/arena/skill.php
Строк: 27
<?php
if($user['arena_work_skill']>=0 && $user['arena_work_skill']<=100)$level=0;
elseif($user['arena_work_skill']>=101 && $user['arena_work_skill']<=500)$level=1;
elseif($user['arena_work_skill']>=501 && $user['arena_work_skill']<=2500)$level=2;
elseif($user['arena_work_skill']>=2501 && $user['arena_work_skill']<=5000)$level=3;
elseif($user['arena_work_skill']>=5001 && $user['arena_work_skill']<=15000)$level=4;
elseif($user['arena_work_skill']>=15001 && $user['arena_work_skill']<=30000)$level=5;
elseif($user['arena_work_skill']>=30001 && $user['arena_work_skill']<=50000)$level=6;
elseif($user['arena_work_skill']>=50001 && $user['arena_work_skill']<=100000)$level=7;
elseif($user['arena_work_skill']>=100001 && $user['arena_work_skill']<=200000)$level=8;
elseif($user['arena_work_skill']>=200001 && $user['arena_work_skill']<=500000)$level=9;
elseif($user['arena_work_skill']>=500001 && $user['arena_work_skill']<=700000)$level=10;
elseif($user['arena_work_skill']>=700001 && $user['arena_work_skill']<=10000000)$level=11;
if($user['arena_work_level']!=$level)
mysql_query("UPDATE `user` SET `arena_work_level` = '".$level."' WHERE `id` = $user[id] LIMIT 1");
?>