| 使用了个虚拟在线插件。出问题了,本地测试好好的。所以没备份。急啊!!!!!!!!
 
 以下是代码
 本地测试一切正常。。现在网站无法注册!!!!
 
 这是网页错误。。网站,www.sjzus.com/home
 
   
   
 
 
 
 
 
 include_once( "./common.php" );
 $cp = $_REQUEST['cp'];
 $minid = $_REQUEST['minid'];
 $maxid = $_REQUEST['maxid'];
 $total = $_REQUEST['total'];
 $onlinetime = $_REQUEST['onlinetime'];
 if ($cp == 'rand')
 {
 $i = 0;
 for ( ; $i < $total;$i++)
 {
 $seedarray =microtime();
 $seedstr =split(" ",$seedarray,5);
 $seed =$seedstr[0]*10000;
 srand($seed);
 $random = rand($minid,$maxid);
 $time = time();
 $time = $time + $onlinetime*60;
 //检索当前用户
 $query = $_SGLOBAL['db']->query("SELECT password,username FROM ".tname('member')." WHERE uid='$random'");
 if($value = $_SGLOBAL['db']->fetch_array($query))
 {
 $password = addslashes($value['password']);
 $username = addslashes($value['username']);
 $str = $_SGLOBAL['db']->query("SELECT uid FROM ".tname('session')." WHERE uid='$random'");
 if($value = $_SGLOBAL['db']->fetch_array($str))
 {
 echo '会员:'.$username.'已在线!<br/>';
 }
 else
 {
 $rand = $_SGLOBAL['db']->query("INSERT INTO ".tname('session')."(`uid`,`username`,`password`,`lastactivity`,`ip`,`magichidden`) VALUES ('$random','$username','$password','$time','58062116','0');");
 echo '会员:'.$username.'虚拟在线成功!<br/>';
 }
 }
 }
 }
 else
 {
 include( template( "randonline" ) );
 }
 ?>
 
 
 |