summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-05-01 16:06:25 +0000
committersvncommit <devs@roundcube.net>2006-05-01 16:06:25 +0000
commitde8c61c4e3b834bfbbb43dbf03151b2a0a69a6e4 (patch)
tree8e45db8799150f48e4cd9d2fde1b2b72c370ab7f /program/include
parent4b3af37c354cb8f99f22396c4e55e1619dba3cb3 (diff)
Added OPTIONS -> Javascript code
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 67d596d87..f1102d7e1 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -76,17 +76,15 @@ function rcmail_startup($task='mail')
$DB->sqlite_initials = $INSTALL_PATH.'SQL/sqlite.initial.sql';
$DB->db_connect('w');
-
// we can use the database for storing session data
// session queries do not work with MDB2
if ($CONFIG['db_backend']!='mdb2' && !$DB->is_error())
include_once('include/session.inc');
-
// init session
session_start();
$sess_id = session_id();
-
+
// create session and set session vars
if (!$_SESSION['client_id'])
{
@@ -114,7 +112,6 @@ function rcmail_startup($task='mail')
// set current task to session
$_SESSION['task'] = $task;
-
// create IMAP object
if ($task=='mail')
rcmail_imap_init();
@@ -194,7 +191,6 @@ function rcmail_set_imap_prop()
if (!empty($_SESSION['mbox']))
$IMAP->set_mailbox($_SESSION['mbox']);
-
if (isset($_SESSION['page']))
$IMAP->set_page($_SESSION['page']);
}
@@ -317,6 +313,10 @@ function load_gui()
$javascript = "var $JS_OBJECT_NAME = new rcube_webmail();\n";
$javascript .= "$JS_OBJECT_NAME.set_env('comm_path', '$COMM_PATH');\n";
+ foreach ($CONFIG['javascript_config'] as $js_config_var){
+ $javascript .= "$JS_OBJECT_NAME.set_env('$js_config_var', '" . $CONFIG[$js_config_var] . "');\n";
+ }
+
if (!empty($GLOBALS['_framed']))
$javascript .= "$JS_OBJECT_NAME.set_env('framed', true);\n";