[ Index ] |
|
Code source de Horde 3.1.3 |
1 <?php 2 /** 3 * Horde base inclusion file. 4 * 5 * This file brings in all of the dependencies that Horde 6 * framework-level scripts will need, and sets up objects that all 7 * scripts use. 8 * 9 * Note: This base file does _not_ check authentication, so as to 10 * avoid an infinite loop on the Horde login page. You'll need to do 11 * it yourself in framework-level pages. 12 * 13 * $Horde: horde/lib/base.php,v 1.40.10.3 2006/01/01 21:29:05 jan Exp $ 14 * 15 * Copyright 1999-2006 Chuck Hagenbuch <chuck@horde.org> 16 * 17 * See the enclosed file COPYING for license information (LGPL). If you 18 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. 19 */ 20 21 // Check for a prior definition of HORDE_BASE (perhaps by an 22 // auto_prepend_file definition for site customization). 23 if (!defined('HORDE_BASE')) { 24 @define('HORDE_BASE', dirname(__FILE__) . '/..'); 25 } 26 27 // Load the Horde Framework core, and set up inclusion paths. 28 require_once HORDE_BASE . '/lib/core.php'; 29 30 // Registry. 31 $session_control = Util::nonInputVar('session_control'); 32 if ($session_control == 'none') { 33 $registry = &Registry::singleton(HORDE_SESSION_NONE); 34 } elseif ($session_control == 'readonly') { 35 $registry = &Registry::singleton(HORDE_SESSION_READONLY); 36 } else { 37 $registry = &Registry::singleton(); 38 } 39 if (is_a(($pushed = $registry->pushApp('horde', !defined('AUTH_HANDLER'))), 'PEAR_Error')) { 40 if ($pushed->getCode() == 'permission_denied') { 41 Horde::authenticationFailureRedirect(); 42 } 43 Horde::fatal($pushed, __FILE__, __LINE__, false); 44 } 45 $conf = &$GLOBALS['conf']; 46 @define('HORDE_TEMPLATES', $registry->get('templates')); 47 48 // Notification System. 49 $notification = &Notification::singleton(); 50 $notification->attach('status'); 51 52 /* Set up the menu. */ 53 require_once 'Horde/Menu.php'; 54 $menu = &new Menu(); 55 56 // Compress output 57 Horde::compressOutput();
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |