Файл: guild/skills.php
Строк: 6
<?php
require ($_SERVER['DOCUMENT_ROOT'].'/lib/core.php');
$title="$log: Гильдия";
require ($_SERVER['DOCUMENT_ROOT'].'/theme/header.php');
require ($_SERVER['DOCUMENT_ROOT'].'/lib/zag.php');
if($user['profa']==''){$profa=$user['spec'];}else{$profa=$user['profa'];}
if($user['profa']=='' and $user['spec']=='war'){$profa='warrior';}
switch($sd){
default:
$q = mysql_query("SELECT * FROM `l2_skills` WHERE `profa`='$profa' and `level`<='$user[level]'");
if(mysql_num_rows($q)=='0'){
echo "Нет доступных умений";
}else{
While($w=mysql_fetch_assoc($q)){
$us_s=mysql_fetch_assoc(mysql_query("SELECT * FROM `l2_user_skills` WHERE `user`='$uid' and `id_skill`!='$w[id]'"));
}
}
break;
}
require ($_SERVER['DOCUMENT_ROOT'].'/lib/down.php');
require ($_SERVER['DOCUMENT_ROOT'].'/theme/foot.php');
?>