//防止恶意调用 if(!defined('IN_QY')){ exit('Access denied!'); } //设置字符集编码 header('Content-Type:text/html; charset=utf-8'); //转换硬路径常量 define('QY_ROOT',substr(dirname(__FILE__),0,-7)); //拒绝PHP低版本 if(PHP_VERSION<'4.1.0'){ exit('Version is to Low!'); } require QY_ROOT.'include/global.func.php'; require QY_ROOT.'include/mysql.func.php'; //连接数据库 define('DB_HOST','localhost'); define('DB_USER','cbsweekly'); define('DB_PWD','1qaz4rfv7ujm');//115884 define('DB_NAME','cbsweekly'); date_default_timezone_set(PRC); qy_connect(); qy_select_db(); qy_set_names(); $query=mysql_query("SELECT * FROM qy_admin WHERE id=1"); if($row=mysql_fetch_array($query)){ $system = array(); global $system; $system['banquan'] = $row['banquan']; } //if(!empty($_SESSION['ipuser'])){ // $l_time=time(); // $i_sql="UPDATE qy_member SET last_time='$l_time' WHERE username='$_SESSION[ipuser]' LIMIT 1"; // mysql_query($i_sql); // // $i_sql="SELECT login FROM qy_member WHERE username='$_SESSION[ipuser]' LIMIT 1"; // $i_query=mysql_query($i_sql); // $i_row=mysql_fetch_array($i_query); //if($i_row['login']!=session_id()){ //$_SESSION = array(); //session_destroy(); //qy_alert_back('此账号已登录,登录失败!'); //qy_location('此账号已登录,登录失败!','index.php'); //} //} ?>
Warning: mysql_query() [function.mysql-query]: Access denied for user 'www'@'localhost' (using password: NO) in /www/web/cbsweekly_com/public_html/list.php on line 39

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /www/web/cbsweekly_com/public_html/list.php on line 39

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /www/web/cbsweekly_com/public_html/list.php on line 41