.settings
*~
.#*
+imp/lib/base.local.php
}
// Need to load Util:: to give us access to Util::getPathInfo().
+$imp_dir = dirname(__FILE__);
if (!defined('HORDE_BASE')) {
- define('HORDE_BASE', dirname(__FILE__) . '/..');
+ /* Temporary fix - if horde does not live directly under the imp
+ * directory, the HORDE_BASE constant should be defined in
+ * imp/lib/base.local.php. */
+ if (file_exists($imp_dir . '/lib/base.local.php')) {
+ include $imp_dir . '/lib/base.local.php';
+ } else {
+ define('HORDE_BASE', $imp_dir . '/..');
+ }
}
require_once HORDE_BASE . '/lib/core.php';
$action = basename(Util::getPathInfo());
$dimp_logout = ($action == 'LogOut');
$session_timeout = 'json';
-require_once dirname(__FILE__) . '/lib/base.php';
+require_once $imp_dir . '/lib/base.php';
// Process common request variables.
$mbox = Util::getPost('view');
$expire_time = 525600;
/* Load IMP.php to access IMP::getPathInfo(). */
+$imp_dir = dirname(__FILE__);
if (!defined('HORDE_BASE')) {
- define('HORDE_BASE', dirname(__FILE__) . '/..');
+ /* Temporary fix - if horde does not live directly under the imp
+ * directory, the HORDE_BASE constant should be defined in
+ * imp/lib/base.local.php. */
+ if (file_exists($imp_dir . '/lib/base.local.php')) {
+ include $imp_dir . '/lib/base.local.php';
+ } else {
+ define('HORDE_BASE', $imp_dir . '/..');
+ }
}
require_once HORDE_BASE . '/lib/core.php';
$path_info = trim(Util::getPathInfo(), '/');
}
$session_control = 'readonly';
$session_timeout = 'none';
-require_once dirname(__FILE__) . '/lib/base.php';
+require_once $imp_dir . '/lib/base.php';
switch ($type) {
case 'css':
* @package IMP
*/
+$imp_dir = dirname(__FILE__);
+
// Check for a prior definition of HORDE_BASE.
if (!defined('HORDE_BASE')) {
- define('HORDE_BASE', dirname(__FILE__) . '/../..');
+ /* Temporary fix - if horde does not live directly under the imp
+ * directory, the HORDE_BASE constant should be defined in
+ * imp/lib/base.local.php. */
+ if (file_exists($imp_dir . '/base.local.php')) {
+ include $imp_dir . '/base.local.php';
+ } else {
+ define('HORDE_BASE', $imp_dir . '/../..');
+ }
}
// Find the base file path of IMP.
if (!defined('IMP_BASE')) {
- define('IMP_BASE', dirname(__FILE__) . '/..');
+ define('IMP_BASE', $imp_dir . '/..');
}
// Load the Horde Framework core, and set up inclusion paths.
require_once HORDE_BASE . '/lib/core.php';
-Horde_Autoloader::addClassPattern('/^IMP_/', dirname(__FILE__));
+Horde_Autoloader::addClassPattern('/^IMP_/', $imp_dir);
// Registry.
$s_ctrl = 0;