query("SELECT `pwd_id`, `pwd_key` FROM `lylme_pwd` WHERE `pwd_key` LIKE '".$pass."';"); while ($pwd = $DB->fetch($pwds)) { array_push($show,$pwd[pwd_id]); } if(empty($show)){ //无数据 exit(''); } else{ //有数据 $_SESSION['list'] = $show; $_SESSION['pass'] = 1; } } } else { //已登录 if(!empty($pass)){ $show = array(); $pwds = $DB->query("SELECT `pwd_id`, `pwd_key` FROM `lylme_pwd` WHERE `pwd_key` LIKE '".$pass."';"); while ($pwd = $DB->fetch($pwds)) { array_push($show,$pwd['pwd_id']); } if(empty($show)){ $_SESSION['pass'] = 0; $_SESSION['list'] = array(); } } } if(basename($_SERVER['PHP_SELF']) != basename(__FILE__)) return; header("Location: ../"); ?>