from the site, where this extra is included! // -> use absolute path if you have it included in files with different directories! // (e.g. /home/www/htdocs/mysite.com/vwar/) // -> if included in your _header.php/_footer.php, it is normally: './' // -> if not, use: './../' $vwar_xroot = "./../"; // define how long a member will be shown after his last activity (in minutes) $onlinetime = 10; // include header- & footer-information (1=enabled / 0=disabled) $include = 0; // ###################################################################################### // ################################### display members ################################ // check, if we need to get some global vars or if we need to include them if( !defined ("VWAR_COMMON_INCLUDED") ) { $vwar_root = $vwar_xroot; require_once ( $vwar_root . "includes/functions_common.php" ); } if ( $include == 1 ) { include_once ( $vwar_root . "_header.php" ); } if(!defined("VWAR_LAST_ACTIVITY") && $whoisonline == 1 && !empty($GPC['vwarid'])) { define("VWAR_LAST_ACTIVITY", 1); $vwardb->query("UPDATE vwar".$n."_member SET lastactivity = '".time()."' WHERE memberid = '".$GPC['vwarid']."'"); } ?> query(" SELECT memberid, name, lastactivity FROM vwar".$n."_member WHERE lastactivity > ".(time() - $onlinetime * 60)." "); if ($vwardb->num_rows($query) == 0) { ?> fetch_array($query)) { dbSelect ($row); ?> free_result($query); ?>
Activities in the last minutes
Nobody online right now
»