X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-usr_online.php;h=97672830303fbd5bd93214ebe6f6253c24de9c89;hb=2272afc569a7b308e6c34a2d28457495e6b2483b;hp=6ec2f99a507802ae3f489a710fd4b86f47d65224;hpb=dbe56bb043ba16ca1ec1e9efa9effdc1f0612261;p=mailer.git diff --git a/inc/modules/admin/what-usr_online.php b/inc/modules/admin/what-usr_online.php index 6ec2f99a50..9767283030 100644 --- a/inc/modules/admin/what-usr_online.php +++ b/inc/modules/admin/what-usr_online.php @@ -1,7 +1,7 @@ 0) - { - // Load header template - LOAD_TEMPLATE("admin_online_header"); - + $result = SQL_QUERY("SELECT `id`, `ip`, `userid`, `refid`, `module`, `action`, `what`, `is_member`, `is_admin`, `timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC", + __FILE__, __LINE__); + if (!SQL_HASZERONUMS($result)) { // List all online users - $SW = 2; - while (list($id, $ip, $uid, $ref, $mod, $act, $wht, $mem, $admin, $time) = SQL_FETCHROW($result)) - { - if (empty($act)) $act = "---"; - if (empty($wht)) $wht = "---"; - - if ($admin == "Y") - { + $OUT = ''; + while ($row = SQL_FETCHARRAY($result)) { + if ($row['is_admin'] == 'Y') { // Is an administrator - $uid = _IS_ADMIN; - } - elseif (($mem == "N") && ($admin == "N")) - { + $row['userid'] = '{--_IS_ADMIN--}'; + } elseif (($row['is_member'] != 'Y') && ($row['is_admin'] != 'Y')) { // Is a guest - $uid = _IS_GUEST; - } - OUTPUT_HTML("