/[LeafOK_CVS]/fenglin/bbs/search_user.php
ViewVC logotype

Diff of /fenglin/bbs/search_user.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 by sysadm, Wed Dec 1 12:52:14 2004 UTC Revision 1.6 by sysadm, Fri Feb 25 11:59:16 2022 UTC
# Line 17  if ($page<1) Line 17  if ($page<1)
17  if (isset($_GET["type"]))  if (isset($_GET["type"]))
18          $type=intval($_GET["type"]);          $type=intval($_GET["type"]);
19  else  else
20          $type=1;          $type=2;
21    
22  if (isset($_GET["online"]))  if (isset($_GET["online"]))
23          $online=($_GET["online"]=="on");          $online=($_GET["online"]=="on");
# Line 37  $search_author=addslashes(stripslashes($ Line 37  $search_author=addslashes(stripslashes($
37    
38  $db_conn=include "./db_open.inc.php";  $db_conn=include "./db_open.inc.php";
39    
40  $rs=mysql_query("select user_online.UID from user_online".  $rs=mysql_query("select user_online.SID from user_online".
41          " where UID=0 and current_action not in".          " where UID=0 and current_action not in".
42          " ('max_user_limit','max_ip_limit','max_session_limit','exit')".          " ('max_user_limit','max_ip_limit','max_session_limit','exit')".
43          " group by SID")          " group by SID")
# Line 45  $rs=mysql_query("select user_online.UID Line 45  $rs=mysql_query("select user_online.UID
45  $guest_count=mysql_num_rows($rs);  $guest_count=mysql_num_rows($rs);
46  mysql_free_result($rs);  mysql_free_result($rs);
47    
48  $rs=mysql_query("select user_online.UID from user_online".  $rs=mysql_query("select user_online.SID from user_online".
49          " where UID<>0 and current_action not in".          " where UID<>0 and current_action not in".
50          " ('max_user_limit','max_ip_limit','max_session_limit','exit')".          " ('max_user_limit','max_ip_limit','max_session_limit','exit')".
51          " group by SID")          " group by SID")


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1