if (!defined('HORDE_BASE')) {
@define('HORDE_BASE', dirname(__FILE__) . '/..');
}
-@define('IMP_BASE', dirname(__FILE__));
require_once HORDE_BASE . '/lib/core.php';
require_once 'VFS.php';
$mail_address_full = $mail_identity->getDefaultFromAddress(true);
NLS::setTimeZone();
NLS::setLanguageEnvironment();
- NLS::setTextdomain('imp', IMP_BASE . '/locale', NLS::getCharset());
+ NLS::setTextdomain('imp', dirname(__FILE__) . '/locale', NLS::getCharset());
String::setDefaultCharset(NLS::getCharset());
/* Set up the mail headers and read the log file. */
* did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
*/
-@define('IMP_BASE', dirname(__FILE__));
$authentication = 'horde';
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
/* Get the lists of address books through the API. */
$source_list = $registry->call('contacts/sources');
* @author Michael Slusarz <slusarz@horde.org>
*/
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
require_once 'Horde/Prefs/UI.php';
/* No fetchmail for POP3 accounts. */
* @author Michael Slusarz <slusarz@horde.org>
*/
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
/* Initialize Fetchmail libraries. */
$fm_account = new IMP_Fetchmail_Account();
* @author Michael Slusarz <slusarz@horde.org>
*/
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
require_once 'Horde/Help.php';
require_once 'Horde/Prefs/UI.php';
$result = Horde::loadConfiguration('prefs.php', array('prefGroups', '_prefs'), 'imp');
$authentication = 'none';
@define('AUTH_HANDLER', true);
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
$auth = &Auth::singleton($conf['auth']['driver']);
if ((!Auth::getAuth() || !IMP::checkAuthentication(true)) &&
* @author Michael Slusarz <slusarz@horde.org>
*/
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
$id = Util::getFormData('id');
$index = Util::getFormData('index');
* @author Michael Slusarz <slusarz@horde.org>
*/
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
require_once 'Horde/Help.php';
$actionID = Util::getFormData('actionID');
}
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
$imp_smime = &Horde_Crypt::singleton(array('imp', 'smime'));
$secure_check = $imp_smime->requireSecureConnection();
* @author Jan Schneider <jan@horde.org>
*/
-@define('IMP_BASE', dirname(__FILE__));
$authentication = 'horde';
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
require_once 'Horde/Prefs/UI.php';
$compose_url = Util::addParameter(Horde::url($registry->get('webroot', 'horde') . '/services/prefs.php', true), 'app', 'imp', false);
* @author Michael Slusarz <slusarz@horde.org>
*/
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
/* What mode are we in?
* DEFAULT/'thread' - Thread mode
}
$session_control = 'readonly';
-@define('IMP_BASE', dirname(__FILE__));
-require_once IMP_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
$actionID = Util::getFormData('actionID');
$ctype = Util::getFormData('ctype');