日期:2014-05-17 浏览次数:20445 次
<?php
include('config.php');
$sql="select * from admin where name ='$_SESSION[ui]'";
$query=mysql_query("$sql");
$row=mysql_fetch_array($query);
$uus= is_array($row);
$pps= $uus ? $_SESSION['shell']==$row['password'] : FALSE;
if($pps){
echo $_SESSION['ui'];
}else{
echo "无权限访问";
exit();
}
?>