<?php
/**
* Basic directory config
*
* This is the only OFFL file required to be in the global PHP include path. All other OFFL
* files are included with absolute paths via the defined variables here. $_SERVER variables
* are not used as they aren't populated when PHP is invoked from the command line for
* maintenance operations.
*
* @author Stephen Rochelle <hide@address.com>
* @version OFFL v0.2
* @copyright Copyright (c) 2004 Stephen Rochelle. Some rights reserved.
* @package offl-ui
*/
if (strtr(__FILE__, "\\", "/") == @$_SERVER["SCRIPT_FILENAME"])
{ die ("Cannot access file directly!"); }
/*
*
* USER EDITED SECTION STARTS HERE
*
*/
$WEB_ROOT = "/web/path/to/offl";
$DOC_ROOT = "/apache/htdocs/path";
/*
*
* USER EDITED SECTION ENDS HERE
*
*/
$DOC_ROOT .= $WEB_ROOT;
//used for Stephen's local testing (override week detection)
$localtest = FALSE;
if (!$localtest)
{
// disable error notices
ini_set("error_reporting", E_ALL ^ (E_NOTICE | E_WARNING));
}
require_once($DOC_ROOT . "/lib/functions.php");
?>