//$ebits = ini_get('error_reporting'); //error_reporting($ebits ^ E_NOTICE); //ob_start(); //session_start(); //$ebits = ini_get('error_reporting'); //รายงาน error ของ php //error_reporting($ebits ^ E_NOTICE); //รายงาน error ของ php if ( !file_exists( 'includes/config.in.php' ) || filesize( 'includes/config.in.php' ) < 9.00 ) { header( 'Location: install/index.php' ); exit(); } /* Installation sub folder check, removed for work with CVS*/ if (file_exists( 'install/index.php' )) { include ('offline.php'); exit(); } /**/ require_once("mainfile.php"); $_SERVER['PHP_SELF'] = "index.php"; empty($_GET['name'])?$name="":$name=$_GET['name']; empty($_GET['file'])?$file="":$file=$_GET['file']; GETMODULE($name,$file); // Make sure you're using correct paths here empty($_GET['name'])?$name="":$name=$_GET['name']; empty($_GET['file'])?$file="":$file=$_GET['file']; empty($_SESSION['admin_user'])?$admin_user="":$admin_user=$_SESSION['admin_user']; empty($_SESSION['admin_pwd'])?$admin_pwd="":$admin_pwd=$_SESSION['admin_pwd']; empty($_SESSION['login_true'])?$login_true="":$login_true=$_SESSION['login_true']; empty($_GET['op'])?$op="":$op=$_GET['op']; empty($_GET['action'])?$action="":$action=$_GET['action']; empty($_GET['page'])?$page="":$page=$_GET['page']; empty($_GET['category'])?$category="":$category=$_GET['category']; ?>
require_once( 'templates/'.WEB_TEMPLATES.'/index.php' ); ?>