$result->error = _("Invalid passphrase entered.");
}
- /* TODO - This code will eventually be moved to the API. But this function
- * may be called by IMP so explicitly include DIMP.php. */
if ($_SESSION['imp']['view'] != 'dimp') {
- require_once IMP_BASE . '/lib/DIMP.php';
$notify = false;
}
$result->success = 1;
}
- /* TODO - This code will eventually be moved to the API. But this function
- * may be called by IMP so explicitly include DIMP.php. */
- require_once IMP_BASE . '/lib/DIMP.php';
-
/* Don't send dimp notifications via this response since the listener
* on the browser (dialog.js) doesn't know what to do with them. Instead,
* notifications will be picked up via the PollFolders() call that is
case 'FetchmailDialog':
$result = IMP_Fetchmail::fetchmailDialogForm();
-
- /* TODO - This code will eventually be moved to the API. But this function
- * may be called by IMP so explicitly include DIMP.php. */
- require_once IMP_BASE . '/lib/DIMP.php';
$notify = false;
-
break;
}
*/
// Make sure that constants are defined.
-require_once dirname(__FILE__) . '/../lib/IMP.php';
-require_once dirname(__FILE__) . '/../lib/IMAP.php';
-require_once 'Horde/Imap/Client.php';
$is_pop3 = isset($_SESSION['imp']['protocol']) && ($_SESSION['imp']['protocol'] == 'pop');
$prefGroups['identities'] = array(
// Load the Horde Framework core, and set up inclusion paths.
require_once HORDE_BASE . '/lib/core.php';
+Horde_Autoloader::addClassPath($imp_dir);
Horde_Autoloader::addClassPattern('/^IMP_/', $imp_dir);
// Registry.
}
$registry = &Registry::singleton($s_ctrl);
-// Need to explicitly load IMP.php
-require_once IMP_BASE . '/lib/IMP.php';
-
// We explicitly do not check application permissions for the compose
// and login pages, since those are handled below and need to fall through
// to IMP-specific code.
: new IMP_Search();
if ($viewmode == 'mimp') {
- // Need to explicitly load MIMP.php
- require_once IMP_BASE . '/lib/MIMP.php';
-
// Mobile markup renderer.
$debug = Util::nonInputVar('mimp_debug');
$GLOBALS['mimp_render'] = new Horde_Mobile(null, $debug);
$GLOBALS['mimp_render']->set('debug', !empty($debug));
-} elseif ($viewmode == 'dimp') {
- // Need to explicitly load DIMP.php
- require_once IMP_BASE . '/lib/DIMP.php';
}