error_reporting(E_ALL ^ E_NOTICE); // Start output buffering // Set variable $NO_OB = true if output buffering is not needed in a file /* if(!isset($NO_OB) && LOCAL_MODE==false) { ob_start("ob_gzhandler"); } */ if ($_SERVER['HTTP_HOST'] == "localhost" || $_SERVER['HTTP_HOST'] == "phpserver") { define('LOCAL_MODE', true); } else { define('LOCAL_MODE', false); } // File system path $tmp = dirname(__FILE__); $tmp = str_replace('\\' ,'/',$tmp); $tmp = substr($tmp, 0, strrpos($tmp, '/')); define('SITE_FS_PATH', $tmp); // include all the library files needed here require_once(SITE_FS_PATH."/includes/config.inc.php"); require_once(SITE_FS_PATH."/includes/funcs_lib.inc.php"); require_once(SITE_FS_PATH."/includes/funcs_cur.inc.php"); require_once(SITE_FS_PATH."/includes/arrays.inc.php"); if(strtolower($_SERVER['HTTPS'])=='on') { define('IN_SSL', true); define('HTTP_OR_HTTPS_PATH', SITE_SSL_PATH); } else { define('IN_SSL', false); define('HTTP_OR_HTTPS_PATH', SITE_WS_PATH); } ?>
|