if (isset($_REQUEST['viewContent'])){ echo $title;} else{echo $title;} ?>
include("module/process_frame.php");?>
if(!session_id()) session_start(); ?>
require("config.php") ?> require("common_start.php") ?> require("module/module_func.php") ?> if(!isset($_SESSION['online'])){ mysql_query("INSERT INTO visitors (session_id, activity, ip_address, refurl, user_agent,user_host) VALUES ('".session_id()."', now(), '{$_SERVER['REMOTE_ADDR']}', '".$_SERVER['HTTP_REFERER']."', '{$_SERVER['HTTP_USER_AGENT']}', '{$_SERVER['REQUEST_URI']}')",$con); $_SESSION['online']=true; $v=GetConfig("visitors")+1; mysql_query("UPDATE config SET config_value='".$v."' WHERE config_name='visitors'",$con); } else { if(islogin()) mysql_query("UPDATE visitors SET activity=now(), member='y', user_host='{$_SERVER['REQUEST_URI']}' WHERE session_id='".session_id()."'",$con); else mysql_query("UPDATE visitors SET activity=now(), member='n', user_host='{$_SERVER['REQUEST_URI']}' WHERE session_id='".session_id()."'",$con); } $maxtime = $visitortimeout; // 5 Minute time out. 60 * 5 = 300 $sql = mysql_query("DELETE FROM visitors WHERE UNIX_TIMESTAMP(activity) < UNIX_TIMESTAMP(now())-$maxtime",$con); if($_REQUEST['lang']=='vn') { $_SESSION['lang']='vn'; } else if($_REQUEST['lang']=='en') { $_SESSION['lang']='en'; } else { if(($_SESSION['lang']!='vn')&&($_SESSION['lang']!='en')) { $_SESSION['lang']='vn'; } } ?> include("webConfig.php");?> include("module/process_title.php");?>