session_start();
ob_start();
require_once("mainfile.php");
$PHP_SELF = "index.php";
GETMODULE($_GET[name],$_GET[file]);
// ส่วน login ถาวร เพิ่มเติม พัฒนาโดย นายสมชาย เสงี่ยมศักดิ์ [www.xvlnw.com]
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
if (!isset($_SESSION[login_true] )) {
if (isset($_COOKIE[nrr_name]) && $_COOKIE[nrr_name] != "") {
$_SESSION[login_true] = $_COOKIE[nrr_name] ;
}
}
if (!isset($_SESSION['admin_user']) && !isset($_SESSION['admin_pwd'] ) ) {
if (isset($_COOKIE['admin_lock']) && $_COOKIE['admin_lock'] != "" ) {
$db_admin_array = mysql_fetch_array($db_admin = mysql_query("SELECT * FROM ".TB_ADMIN." WHERE username = '".$_COOKIE['admin_lock']."' "));
$_SESSION['admin_user'] = $db_admin_array[username];
$_SESSION['admin_pwd'] = $db_admin_array[password];
$_SESSION['CKFinder_UserRole'] ='webmaster';
$_SESSION['admin_ckfinder']="ADMIN";
}
}
$db->closedb ();
?>
=WEB_TITLE;?>
|
include "modules/ms1/index.php"; ?> |
|
|
|
|
|
|
|
|
|
|
LINK |
.
include "modules/ads/index.php"; ?>
|
|
|
|
จำนวนผู้เข้าชม |
|
|
|
|
|
|
if($_SESSION['admin_user']){
//Admin Login Show Icon
?>
}
?>
|
|
|
include "modules/ms2/index.php"; ?>
|
|
|
|
|
|
|
?>