2007-10-26 22:44:33 +00:00
|
|
|
<?php
|
|
|
|
|
2007-10-30 13:05:36 +00:00
|
|
|
//Note: this file is not used any more
|
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
// Set the include path
|
|
|
|
$APP_ROOT = dirname(__FILE__);
|
|
|
|
// Switch : to ; on Windows
|
|
|
|
ini_set('include_path', ini_get('include_path') . ":$APP_ROOT:$APP_ROOT/lib");
|
|
|
|
|
|
|
|
// The settings below display error on the screen, instead of giving blank pages.
|
|
|
|
error_reporting(E_ALL ^ E_NOTICE);
|
|
|
|
ini_set('display_errors', true);
|
|
|
|
|
|
|
|
require_once("lib/config.php");
|
|
|
|
|
|
|
|
// define global variables
|
|
|
|
$XCATROOT = getenv("XCATROOT") ? getenv("XCATROOT").'/bin' : '/opt/xcat/bin';
|
|
|
|
$SYSTEMROOT = '/bin';
|
|
|
|
$TOPDIR = '.';
|
2007-10-30 13:05:36 +00:00
|
|
|
$CURRDIR = '/opt/xcat/web';
|
2007-10-26 22:44:33 +00:00
|
|
|
$IMAGEDIR = "$TOPDIR/images";
|
|
|
|
|
|
|
|
// Put any configuration global variables here
|
|
|
|
// e.g. $config = &Config::getInstance();
|
|
|
|
// $config->setValue("settingName", "settingValue");
|
|
|
|
|
|
|
|
$config = &Config::getInstance();
|
|
|
|
$config->setValue("XCATROOT", $XCATROOT);
|
|
|
|
$config->setValue("TOPDIR", $TOPDIR);
|
|
|
|
$config->setValue("CURRDIR", $CURRDIR);
|
|
|
|
$config->setValue("IMAGEDIR", $IMAGEDIR);
|
|
|
|
?>
|