示例#1
0
文件: conf.php 项目: phpsmith/IS4C
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*********************************************************************************/
/** 
  @file 
  @brief This file specifies the LocalStorage implemenation

  Include this file to get a LocalStorage instance
  in the variable $CORE_LOCAL.
*/
$elog = realpath(dirname(__FILE__) . '/../../log/') . '/php-errors.log';
ini_set('error_log', $elog);
ini_set('display_errors', false);
$LOCAL_STORAGE_MECHANISM = 'SessionStorage';
if (!class_exists($LOCAL_STORAGE_MECHANISM)) {
    include realpath(dirname(__FILE__) . '/' . $LOCAL_STORAGE_MECHANISM . ".php");
}
if (!class_exists('CoreLocal')) {
    include dirname(__FILE__) . '/CoreLocal.php';
}
if (!class_exists('WrappedStorage')) {
    include dirname(__FILE__) . '/WrappedStorage.php';
}
CoreLocal::setHandler($LOCAL_STORAGE_MECHANISM);
$CORE_LOCAL = new WrappedStorage();
global $CORE_LOCAL;
// this includes ini.php
CoreLocal::refresh();
if (!defined('CONF_LOADED')) {
    define('CONF_LOADED', true);
}