session_start(); if (isset($_SESSION["username"]) || ($_SESSION["time"] < time())) {$_SESSION["time"] = time() + 30;} else { header("location:logout.php"); } date_default_timezone_set("Asia/Bangkok"); include_once "include/config.php"; include_once "connect2.php"; get_header(); $user=$_SESSION["username"] ; ?>