mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:07 +01:00
232252475f
Patch is mostly created by script in egroupware/doc/fix_depricated.php in separate commit. I do NOT advice to apply this patch to a production system (it's commited to trunk!), as the automatic modified regular expressions have a good change to break something ...
55 lines
1.7 KiB
PHP
55 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Horde base inclusion file.
|
|
*
|
|
* This file brings in all of the dependencies that Horde
|
|
* framework-level scripts will need, and sets up objects that all
|
|
* scripts use.
|
|
*
|
|
* Note: This base file does _not_ check authentication, so as to
|
|
* avoid an infinite loop on the Horde login page. You'll need to do
|
|
* it yourself in framework-level pages.
|
|
*
|
|
* $Horde: horde/lib/base.php,v 1.41 2005/01/03 14:35:14 jan Exp $
|
|
*
|
|
* Copyright 1999-2005 Chuck Hagenbuch <chuck@horde.org>
|
|
*
|
|
* See the enclosed file COPYING for license information (LGPL). If you
|
|
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
|
|
*/
|
|
|
|
// Check for a prior definition of HORDE_BASE (perhaps by an
|
|
// auto_prepend_file definition for site customization).
|
|
#if (!defined('HORDE_BASE')) {
|
|
# @define('HORDE_BASE', dirname(__FILE__) . '/..');
|
|
#}
|
|
|
|
// Load the Horde Framework core, and set up inclusion paths.
|
|
#require_once HORDE_BASE . '/lib/core.php';
|
|
|
|
// Registry.
|
|
if (Util::nonInputVar('session_control') == 'none') {
|
|
$registry = &Registry::singleton(HORDE_SESSION_NONE);
|
|
} else {
|
|
$registry = &Registry::singleton();
|
|
}
|
|
#if (is_a(($pushed = $registry->pushApp('horde', !defined('AUTH_HANDLER'))), 'PEAR_Error')) {
|
|
# if ($pushed->getCode() == 'permission_denied') {
|
|
# Horde::authenticationFailureRedirect();
|
|
# }
|
|
# Horde::fatal($pushed, __FILE__, __LINE__, false);
|
|
#}
|
|
$conf = &$GLOBALS['conf'];
|
|
#@define('HORDE_TEMPLATES', $registry->get('templates'));
|
|
|
|
// Notification System.
|
|
#$notification = &Notification::singleton();
|
|
#$notification->attach('status');
|
|
|
|
/* Set up the menu. */
|
|
#require_once 'Horde/Menu.php';
|
|
#$menu = new Menu();
|
|
|
|
// Compress output
|
|
#Horde::compressOutput();
|