WHO IS ONLINE'; $result_guests = safe_query("SELECT * FROM ".PREFIX."whoisonline WHERE userID=''"); $guests = mysql_num_rows($result_guests); $result_user = safe_query("SELECT * FROM ".PREFIX."whoisonline WHERE ip=''"); $user = mysql_num_rows($result_user); $useronline = $guests + $user; if($user==1) $user_on='1 registered user'; else $user_on=''.$user.' registered users'; if($guests==1) $guests_on='1 guest'; else $guests_on= ''.$guests.' guests'; $online='Now online: '.$user_on.' and '.$guests_on; $sort = $_GET['sort']; $type = $_GET['type']; if(!isset($sort)) $sort = "time"; if(!isset($type)) $type = "DESC"; if($type=="ASC") $sorter='Sort: '; else $sorter='Sort: '; echo'
'.$sorter.' '.$online.'

'; $ergebnis = safe_query("SELECT * FROM ".PREFIX."whoisonline ORDER BY $sort $type"); eval ("\$whoisonline_head = \"".gettemplate("whoisonline_head")."\";"); echo $whoisonline_head; $n=1; while($ds=mysql_fetch_array($ergebnis)) { if($n%2) { $bg1=BG_1; $bg2=BG_2; } else { $bg1=BG_3; $bg2=BG_4; } if($ds[ip]=='') { $nickname=''.$ds[nickname].''; if(isclanmember($ds[userID])) $member=' Clanmember'; else $member=''; $email='e-mail'; $country='[flag]'.getcountry($ds[userID]).'[/flag]'; $country=flags($country); $sem = '^[http://]+[a-z0-9_\.-]+[a-z0-9_-]+$'; if(!(eregi($sem, $ds[clanhp]))) $homepage=''; else $homepage='homepage'; $pm=''; $buddy=''; if($loggedin && $ds[userID] != $userID) { $pm='messenger'; if(isignored($userID, $ds[userID])) $buddy='back to buddy-list'; elseif(isbuddy($userID, $ds[userID])) $buddy='ignore user'; elseif($userID==$ds[userID]) $buddy=''; else $buddy='add to buddylist'; } } else { $nickname="Guest"; $member=""; $email=""; $country=""; $homepage=""; $pm=""; $buddy=""; } if($ds[site]=="articles") $status='is reading articles'; elseif($ds[site]=="about") $status='is reading the about'; elseif($ds[site]=="awards") $status='is watching the awards'; elseif($ds[site]=="buddys") $status='is watching his buddys'; elseif($ds[site]=="calendar") $status='is watching the calendar'; elseif($ds[site]=="clans") $status='is watching the clanlist'; elseif($ds[site]=="clanwars") $status='is watching the clanwars'; elseif($ds[site]=="clanwars_details") $status='is watching the details of a clanwar'; elseif($ds[site]=="contact") $status='is reading the contact information'; elseif($ds[site]=="counter_stats") $status='is watching the counter statistics'; elseif($ds[site]=="demos") $status='is watching the demos'; elseif($ds[site]=="faq") $status='is reading the FAQ'; elseif($ds[site]=="files") $status='is watching the files'; elseif($ds[site]=="forum") $status='is watching the forum'; elseif($ds[site]=="forum_topic") $status='is reading the forum'; elseif($ds[site]=="gallery") $status='is watching the gallery'; elseif($ds[site]=="guestbook") $status='is reading the guestbook'; elseif($ds[site]=="history") $status='is reading the history'; elseif($ds[site]=="files") $status='is reading the imprint'; elseif($ds[site]=="links") $status='is watching the links'; elseif($ds[site]=="linkus") $status='is watching link us'; elseif($ds[site]=="loginoverview") $status='is watching the loginoverview'; elseif($ds[site]=="members") $status='is watching the members'; elseif($ds[site]=="messenger") $status='is watching his messenger'; elseif($ds[site]=="myprofile") $status='is editing his profile'; elseif($ds[site]=="news_comments") $status='is reading newscomments'; elseif($ds[site]=="polls") $status='is watching the polls'; elseif($ds[site]=="profile") $status='is watching a profile'; elseif($ds[site]=="registered_users") $status='is watching the registered users'; elseif($ds[site]=="server") $status='is watching the server'; elseif($ds[site]=="sponsors") $status='is watching the sponsors'; elseif($ds[site]=="squads") $status='is watching the squads'; elseif($ds[site]=="whoisonline") $status='is watching who is online'; else $status='is watching the news'; eval ("\$whoisonline_content = \"".gettemplate("whoisonline_content")."\";"); echo $whoisonline_content; $n++; } eval ("\$whoisonline_foot = \"".gettemplate("whoisonline_foot")."\";"); echo $whoisonline_foot; // WHO WAS ONLINE echo'

WHO WAS ONLINE (last 24H)

'; if(!isset($sort)) $sort = "time"; if(!isset($type)) $type = "DESC"; if($type=="ASC") $sorter='Sort: '; else $sorter='Sort: '; echo'
'.$sorter.'

'; $ergebnis = safe_query("SELECT * FROM ".PREFIX."whowasonline ORDER BY $sort $type"); eval ("\$whowasonline_head = \"".gettemplate("whowasonline_head")."\";"); echo $whowasonline_head; $n=1; while($ds=mysql_fetch_array($ergebnis)) { if($n%2) { $bg1=BG_1; $bg2=BG_2; } else { $bg1=BG_3; $bg2=BG_4; } $date=date("d.m.Y - H:i", $ds[time]); $nickname=''.$ds[nickname].''; if(isclanmember($ds[userID])) $member=' Clanmember'; else $member=''; $email='e-mail'; $country='[flag]'.getcountry($ds[userID]).'[/flag]'; $country=flags($country); $sem = '^[http://]+[a-z0-9_\.-]+[a-z0-9_-]+$'; if(!(eregi($sem, $ds[clanhp]))) $homepage=''; else $homepage='homepage'; $pm=''; $buddy=''; if($loggedin && $ds[userID] != $userID) { $pm='messenger'; if(isignored($userID, $ds[userID])) $buddy='back to buddy-list'; elseif(isbuddy($userID, $ds[userID])) $buddy='ignore user'; elseif($userID==$ds[userID]) $buddy=''; else $buddy='add to buddylist'; } if($ds[site]=="articles") $status='was reading articles'; elseif($ds[site]=="awards") $status='was watching the awards'; elseif($ds[site]=="buddys") $status='was watching his buddys'; elseif($ds[site]=="calendar") $status='was watching the calendar'; elseif($ds[site]=="clans") $status='was watching the clanlist'; elseif($ds[site]=="clanwars") $status='was watching the clanwars'; elseif($ds[site]=="clanwars_details") $status='was watching the details of a clanwar'; elseif($ds[site]=="demos") $status='was watching the demos'; elseif($ds[site]=="files") $status='was watching the files'; elseif($ds[site]=="forum") $status='was watching the forum'; elseif($ds[site]=="forum_search") $status='was searching the forum'; elseif($ds[site]=="forum_topic") $status='was reading the forum'; elseif($ds[site]=="gameservers") $status='was watching the gameservers'; elseif($ds[site]=="guestbook") $status='was reading the guestbook'; elseif($ds[site]=="history") $status='was reading the history'; elseif($ds[site]=="interviews") $status='was reading interviews'; elseif($ds[site]=="leagues") $status='was watching the leagues'; elseif($ds[site]=="links") $status='was watching the links'; elseif($ds[site]=="linkus") $status='was watching link us'; elseif($ds[site]=="members") $status='was watching the members'; elseif($ds[site]=="messenger") $status='was watching his messenger'; elseif($ds[site]=="myprofile") $status='was editing his profile'; elseif($ds[site]=="news_comments") $status='was reading newscomments'; elseif($ds[site]=="polls") $status='was watching the polls'; elseif($ds[site]=="profile") $status='was watching a profile'; elseif($ds[site]=="registered_users") $status='was watching the registered users'; elseif($ds[site]=="server") $status='was watching the server'; elseif($ds[site]=="sponsors") $status='was watching the sponsors'; elseif($ds[site]=="whoisonline") $status='was watching who is online'; else $status='was watching the news'; eval ("\$whowasonline_content = \"".gettemplate("whowasonline_content")."\";"); echo $whowasonline_content; $n++; } eval ("\$whoisonline_foot = \"".gettemplate("whoisonline_foot")."\";"); echo $whoisonline_foot; ?>