Ejemplo n.º 1
0
 * Include path detection code
 */
require_once 'path_defines_base.php';
/** Include custom exceptions.  Note that the custom exception handler is in classes/MainUI.php */
require_once 'classes/Exceptions/SecurityException.php';
/**
 * Load required classes
 */
require_once 'classes/AbstractDb.php';
AbstractDb::getObject();
//This is here so we get reliable SQL vs PHP profiling
require_once 'classes/Locale.php';
require_once 'classes/Dependency.php';
if (EVENT_LOGGING == true) {
    require_once 'classes/EventLogging.php';
    EventLogging::SetupErrorHandling("strict~/var:\\sDeprecated/(off)", array('print' => new PrintChannel(new HTMLFormatter(), 'warning,notice', null, true), 'debug' => new PrintChannel(new HTMLCommentsFormatter(), '=debug', null, false)));
}
/**
 * Filter super globals
 */
undo_magic_quotes();
/**
 * Set default timezone
 */
dateFix();
/**
 * Set the URL paths, but only if we are NOT called from the command line
 */
if (defined('SYSTEM_PATH')) {
    require_once 'path_defines_url_content.php';
}