}
require_once dirname(__FILE__) . '/lib/Application.php';
-new IMP_Application(array('init' => true));
+new IMP_Application(array('init' => true, 'tz' => true));
/* Determine if compose mode is disabled. */
$compose_disable = !IMP::canCompose();
}
}
-/* Set the current time zone. */
-Horde_Nls::setTimeZone();
-
/* Initialize the IMP_Compose:: object. */
$imp_compose = IMP_Compose::singleton(Horde_Util::getFormData('composeCache'));
}
require_once dirname(__FILE__) . '/lib/Application.php';
-new IMP_Application(array('init' => true));
+new IMP_Application(array('init' => true, 'tz' => true));
/* The message text and headers. */
$msg = '';
/* Determine if compose mode is disabled. */
$compose_disable = !IMP::canCompose();
-/* Set the current time zone. */
-Horde_Nls::setTimeZone();
-
/* Initialize the IMP_Compose:: object. */
$imp_compose = IMP_Compose::singleton(Horde_Util::getFormData('composeCache'));
require_once dirname(__FILE__) . '/lib/Application.php';
-new IMP_Application(array('init' => array('session_control' => 'netscape')));
+new IMP_Application(array('init' => array('session_control' => 'netscape'), 'tz' => true));
/* The message headers and text. */
$header = array();
}
}
-/* Set the current time zone. */
-Horde_Nls::setTimeZone();
-
/* Determine if compose mode is disabled. */
$compose_disable = !IMP::canCompose();
* <pre>
* 'init' - (boolean|array) If true, perform application init. If an
* array, perform application init and pass the array to init().
+ * 'tz' - (boolean) If true, sets the current time zone on the server.
* </pre>
*/
public function __construct($args = array())
$this->init(is_array($args['init']) ? $args['init'] : array());
}
+ if (!empty($args['tz'])) {
+ Horde_Nls::setTimeZone();
+ }
+
/* Only available if admin config is set for this server/login. */
$this->disabled = array('init');
if (empty($_SESSION['imp']['admin'])) {
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-new IMP_Application(array('init' => true));
+new IMP_Application(array('init' => true, 'tz' => true));
/* Determine if mailbox is readonly. */
$readonly = $imp_imap->isReadOnly($imp_mbox['mailbox']);
-/* Set the current time zone. */
-Horde_Nls::setTimeZone();
-
/* Need Horde_Mobile init here for autoloading purposes. */
$mimp_render = new Horde_Mobile();
require_once dirname(__FILE__) . '/lib/Application.php';
-new IMP_Application(array('init' => true));
+new IMP_Application(array('init' => true, 'tz' => true));
/* Call the mailbox redirection hook, if requested. */
try {
$indices = array($indices);
}
-/* Set the current time zone. */
-Horde_Nls::setTimeZone();
-
$do_filter = false;
$imp_flags = IMP_Imap_Flags::singleton();
$open_compose_window = null;
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-new IMP_Application(array('init' => true));
+new IMP_Application(array('init' => true, 'tz' => true));
/* Make sure we have a valid index. */
$imp_mailbox = IMP_Mailbox::singleton($imp_mbox['mailbox'], $imp_mbox['uid']);
/* Determine if mailbox is readonly. */
$readonly = $imp_imap->isReadOnly($imp_mbox['mailbox']);
-/* Set the current time zone. */
-Horde_Nls::setTimeZone();
-
/* Run through action handlers */
$actionID = Horde_Util::getFormData('a');
$msg_delete = false;
}
require_once dirname(__FILE__) . '/lib/Application.php';
-new IMP_Application(array('init' => true));
+new IMP_Application(array('init' => true, 'tz' => true));
/* We know we are going to be exclusively dealing with this mailbox, so
* select it on the IMAP server (saves some STATUS calls). Open R/W to clear
/* Initialize IMP_Message object. */
$imp_message = IMP_Message::singleton();
-/* Set the current time zone. */
-Horde_Nls::setTimeZone();
-
/* Initialize the user's identities. */
$user_identity = Horde_Prefs_Identity::singleton(array('imp', 'imp'));
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-new IMP_Application(array('init' => true));
+new IMP_Application(array('init' => true, 'tz' => true));
/* What mode are we in?
* DEFAULT/'thread' - Thread mode
exit;
}
-/* Set the current time zone. */
-Horde_Nls::setTimeZone();
-
/* Run through action handlers. */
$actionID = Horde_Util::getFormData('actionID');
switch ($actionID) {