function slog() { global $config; $this->statusdata = array(); $this->ip = getip(); $this->sid = ''; $this->cookies = FALSE; $this->cookiedata = array(0, ''); $this->cookielastvisit = 0; $this->defineGID(); $this->bots = cache_spiders(); $this->bi = BotDetection($this->bots, $_SERVER['HTTP_USER_AGENT'], TRUE); $this->gFields = array('downloadfiles', 'forum', 'posttopics', 'postreplies', 'addvotes', 'attachments', 'edit', 'voting', 'admin', 'gmod', 'guest', 'members', 'profile', 'pdf', 'pm', 'wwo', 'search', 'team', 'usepic', 'useabout', 'usesignature', 'docs'); $this->fFields = array('f_downloadfiles', 'f_forum', 'f_posttopics', 'f_postreplies', 'f_addvotes', 'f_attachments', 'f_edit', 'f_voting'); $this->minFields = array('flood'); $this->maxFields = array(); $this->groups = array(); $this->permissions = array(); $this->querysid = TRUE; $this->positive = array(); $this->negative = array(); $this->boards = array(); }
$memberdata = cache_memberdata(); } $wwo = array(); $wwo['i'] = 0; $wwo['r'] = 0; $wwo['g'] = 0; $wwo['b'] = 0; $wwo['list'] = array(); $result = $db->query('SELECT mid, remoteaddr FROM ' . $db->pre . 'session', __LINE__, __FILE__); $count = $db->num_rows($result); $sep = $lang->phrase('listspacer'); while ($row = $db->fetch_assoc($result)) { $wwo['i']++; $row['remoteaddr'] = $gpc->prepare($row['remoteaddr']); if ($row['mid'] > 0 && isset($memberdata[$row['mid']])) { $wwo['r']++; $row['name'] = $memberdata[$row['mid']]; $row['sep'] = $sep; $wwo['list'][] = $row; } elseif (BotDetection($slog->bots, $row['remoteaddr']) != false) { $wwo['b']++; } else { $wwo['g']++; } } if ($wwo['r'] > 0) { $wwo['list'][$wwo['r'] - 1]['sep'] = ''; } $tpl->globalvars(compact("wwo")); $lang->assign('wwo', $wwo); echo $tpl->parse($dir . "wwo");
case 'error': $loc = $lang->phrase('wwo_misc_error'); break; default: $loc = $lang->phrase('wwo_misc'); break; } break; default: $loc = $lang->phrase('wwo_default'); } $mymodules->load('misc_wwo_bit'); if ($row->mid >= 1) { $wwo['r']++; $inner['wwo_bit_member'] .= $tpl->parse("misc/wwo_bit"); } elseif (($botdetect = BotDetection($slog->bots, $row->remoteaddr)) != false) { $wwo['b']++; $bot = 1; $inner['wwo_bit_bot'] .= $tpl->parse("misc/wwo_bit"); } else { $wwo['g']++; $inner['wwo_bit_guest'] .= $tpl->parse("misc/wwo_bit"); } } echo $tpl->parse("misc/wwo"); $mymodules->load('misc_wwo_bottom'); } elseif ($_GET['action'] == "vote") { $allow = TRUE; $result = $db->query("SELECT v.id FROM {$db->pre}vote AS v LEFT JOIN {$db->pre}votes AS r ON v.id=r.aid WHERE v.tid = '{$_GET['id']}' AND r.mid = '" . $my->id . "' LIMIT 1", __LINE__, __FILE__); if ($db->num_rows() > 0) { $allow = FALSE;