<?
/* This file is for use by any page which is a container for other pages and is not contained within
   any other page. It is necessary to force a default timezone, to include all library files and to
   set public variables for the current session */

/* General settings *********************************************************************************** */

/* timezone: */
date_default_timezone_set("Asia/Kuala_Lumpur");
//error_reporting(0);

/* includes: */
include_once('includes.php');

/* Session and public vars: */
if ($_SESSION['Xuserpkey']!=NULL){
  $pubuserpkey=$_SESSION['Xuserpkey'];
  $pubusergrouppkey=$_SESSION['Xusergrouppkey'];
  $pubusername=$_SESSION['Xusername'];
  $pubuserrole=$_SESSION['Xuserrole'];
  $pubuserfullname=$_SESSION['Xstaffname'];
  $pubuseraccess=$_SESSION['Xuseraccess'];
  $publogintime=unix2fullnormal($_SESSION['Xlogintime']);
  $pubgroupname=$_SESSION['Xgroupname'];
  $pubprojectpkey=$_SESSION['Xprojectpkey'];
  $pubprojectid=$_SESSION['Xprojectid'];
  $pubprojectname=$_SESSION['Xprojectname'];
  $pubprojectdesc=$_SESSION['Xprojectdesc'];
} else {
  $pubuserpkey="";
  $pubusergrouppkey="";
  $pubusername="";
  $pubuserfullname="";
  $pubuserrole=0;
  $pubuseraccess=array();
  $publogintime="";
  $pubgroupname="";
  $pubprojectpkey="";
  $pubprojectid="";
  $pubprojectname="";
  $pubprojectdesc="";
}

//include_once('lib/lib_access.php');
/* **************************************************************************************************** */
include_once ('lib/lib_mylib.php'); # myapit add new lib for ext function
?>