getTable("SELECT ip, browser FROM online WHERE type = 'log' AND status = 'guest' ORDER BY date DESC LIMIT 5"); if(!isset($guestslog)) $guestslog = NULL; if($guests != FALSE) { foreach($guests as $idx=>$guest) { //----------------------------------------------------------------- // Make Layout //----------------------------------------------------------------- $guestslog .= " {$guest['ip']} {$guest['browser']} "; } } else { //----------------------------------------------------------------- // Make Layout //----------------------------------------------------------------- $guestslog .= " {$language['Guests online desc3']} \n"; } //----------------------------------------------------------------- // Code for Last 5 online members //----------------------------------------------------------------- $members = $db->getTable("SELECT o.user_id, o.user, o.user_flag, o.user_location, o.user_authorization, u.id FROM online AS o LEFT JOIN users AS u ON o.user_id=u.id WHERE o.type = 'log' AND o.status = 'member' ORDER BY date DESC LIMIT 5"); if(!isset($memberslog)) $memberslog = NULL; if($members != FALSE) { foreach($members as $idx=>$member) { //----------------------------------------------------------------- // See if user exists //----------------------------------------------------------------- if(isset($member['id'])) { $profile_link = "onclick=window.location.href='$PHP_SELF?n=modules/users&a=1&d={$member['user_id']}'"; $user_link = "{$member['user']}"; } else { $profile_link = NULL; $user_link = $member['user']; } //----------------------------------------------------------------- // Make Layout //----------------------------------------------------------------- $memberslog .= " ".find_flag($member['user_flag'],$member['user_location'])." $user_link ".find_authorization($member['user_authorization'])." "; } } else { //----------------------------------------------------------------- // Make Layout //----------------------------------------------------------------- $memberslog .= " {$language['Members online desc2']} \n"; } //----------------------------------------------------------------- // Code for Last 10 loged admin actions //----------------------------------------------------------------- $logs = $db->getTable("SELECT user_id, user_user, log, date FROM log ORDER BY id DESC LIMIT 10"); if(!isset($logslog)) $logslog = NULL; if($logs != FALSE) { foreach($logs as $idx=>$log) { //----------------------------------------------------------------- // Check if log user is auto protection //----------------------------------------------------------------- if($log['user_user'] == "Auto Protection") { $log_user_user = $log['user_user']; $log_onclick = NULL; } else { $log_user_user = "{$log['user_user']}"; $log_onclick = "onclick=window.location.href='$PHP_SELF?n=modules/users&a=1&d={$log['user_id']}'"; } //----------------------------------------------------------------- // Make Layout //----------------------------------------------------------------- $logslog .= " ".today_yesterday($log['date'])." $log_user_user {$log['log']} "; } } else { //----------------------------------------------------------------- // Make Layout //----------------------------------------------------------------- $logslog .= " {$language['Admin log desc4']} \n"; } //----------------------------------------------------------------- // Start Display //----------------------------------------------------------------- ?>
?n=modules/system"> » ?n=modules/misc&a=1"> »
?n=modules/blocks"> » ?n=modules/layout"> »
?n=modules/mass-email"> » ?n=modules/ban"> »
?n=modules/main-nav"> » ?n=modules/poll"> »
?n=modules/emoticons"> » ?n=modules/badwords"> »
?n=modules/online&a=4"> » ?n=modules/online&a=3"> »
?n=modules/forum-admin&a=1"> » ?n=modules/forum-admin&a=2"> »
?n=modules/forum-admin&a=3"> » ?n=modules/forum-admin&a=4"> »