| 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"); |
| 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") |
| 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") |