include_once("_config_counter.php"); include_once("class/_class_mysql.php"); include_once("class/_class_counter.php"); if(!isset($vyear)) $vyear = ''; include_once("$language"); include_once("_functions.php"); if(!isset($_GET['view'])) $_GET['view'] = ''; if($_GET['view'] == "whosonline") { $whosonline = ''; $query = $vietphp->query("SELECT * FROM ".$vietphp->tbl['online']." WHERE time>='$timeout' ORDER BY online_id DESC"); while($result = $vietphp->fetch_array($query)) { $id = $result['online_id']; $location = $result['referer']; $lastactivetime = date("H:i:s", $result['time'] + 3600*$timezone - 3600*$timeoffset); eval ("\$whosonline .= \"".gettemplate("counter_whosonlinebit")."\";"); } $currenttime = date("H:i:s", $realtime); eval("dooutput(\"".gettemplate("counter_whosonline")."\");"); exit; } // Begin Counter $currentdate = "$currentday/$currentmonth/$currentyear"; $currenttime = date("H:i:s", $realtime); $total = $vietphp->query_first("SELECT SUM(mtotal) FROM ".$vietphp->tbl['counter'].""); $total = $total[0] + $counterstartnum; eval ("\$showcounter = \"".gettemplate("counter_showcounter1")."\";"); // End Counter ?>