<?php
/*
* Copyright 2008 Blandware (http://www.blandware.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Just some code included in all files which are entry points to initialize
* stuff like error reporting and include path.
*
* @package AtleapLite
* @author Roman Puchkovskiy
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
*/
ini_set ('display_errors', 'On');
error_reporting (E_ALL ^ E_NOTICE);
if ($forceIncludePath) {
// is there a better way to identify a separator?
$separator = (DIRECTORY_SEPARATOR == '/' ? ':' : ';');
$includePath = ini_get('include_path');
ini_set('include_path', ".$separator$libPath/pear$separator$libPath/smarty");
}
if ($overrideMysqlTraceMode) {
ini_set('mysql.trace_mode', 'off');
}
ini_set('session.save_path', $sessionDir);
define('DB_DATAOBJECT_NO_OVERLOAD', true);
//require_once 'PEAR.php';
//PEAR::setErrorHandling(PEAR_ERROR_PRINT);
?>