* $Id$
*/
+/* include the mime class before the session start ! otherwise we can't store
+ * messages with a session_register.
+ */
+
+require_once('../class/mime.class');
+
session_start();
require_once('../functions/i18n.php');
set_up_language(getPref($data_dir, $username, 'language'));
$timeZone = getPref($data_dir, $username, 'timezone');
-if ( $timeZone != SMPREF_NONE ) {
+if ( $timeZone != SMPREF_NONE && ($timeZone != "")
+ && !ini_get("safe_mode")) {
putenv("TZ=".$timeZone);
}
?>