Changeset 2642 for trunk/expressoMail1_2/index.php
- Timestamp:
- 04/27/10 16:58:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/index.php
r2603 r2642 11 11 \**************************************************************************/ 12 12 13 $GLOBALS['phpgw_info']['flags'] = array( 14 //'noheader' => False, 15 //'nonavbar' => False, 13 $GLOBALS['phpgw_info']['flags'] = array 14 ( 16 15 'currentapp' => 'expressoMail1_2', 17 16 'update_version' => '1.235', … … 20 19 21 20 require_once('../header.inc.php'); 22 23 //include_once("inc/load_lang.php");24 21 25 22 $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; … … 120 117 $_SESSION['phpgw_info']['server']['expressomail']['expressoMail_command_for_spam'] = $current_config['expressoMail_command_for_spam']; 121 118 $_SESSION['phpgw_info']['server']['expressomail']['expressoMail_use_spam_filter'] = $current_config['expressoMail_use_spam_filter']; 122 echo '<script> var use_spam_filter = "' . $current_config['expressoMail_use_spam_filter'] . '"</script>';123 119 // End Set Anti-Spam options. 124 120 … … 148 144 149 145 //$GLOBALS['phpgw']->js->validate_file( 'modal', 'modal', 'expressoMail1_2' ); 150 $GLOBALS[ 'phpgw']->js->validate_file( 'jscalendar', 'calendar', 'expressoMail1_2' );151 $GLOBALS[ 'phpgw']->js->validate_file( 'jscalendar', 'calendar-setup', 'expressoMail1_2' );152 $GLOBALS[ 'phpgw']->js->validate_file( 'jscalendar', 'lang/calendar-br', 'expressoMail1_2' );153 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'globals', 'expressoMail1_2' );154 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'sniff_browser', 'expressoMail1_2' );155 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'common_functions', 'expressoMail1_2' );156 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'abas', 'expressoMail1_2' );157 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'doiMenuData', 'expressoMail1_2' );158 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'drag_area', 'expressoMail1_2' );159 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'draw_api_messages', 'expressoMail1_2' );160 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'draw_api_folders', 'expressoMail1_2' );161 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'DropDownContacts', 'expressoMail1_2' );162 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'InfoContact', 'expressoMail1_2' );163 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'local_messages', 'expressoMail1_2' );164 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'messages_controller', 'expressoMail1_2' );165 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'rich_text_editor', 'expressoMail1_2' );166 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'wfolders', 'expressoMail1_2' );167 $GLOBALS[ 'phpgw']->js->validate_file( 'jscode', 'main', 'expressoMail1_2' );146 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscalendar', 'calendar', 'expressoMail1_2' ); 147 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscalendar', 'calendar-setup', 'expressoMail1_2' ); 148 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscalendar', 'lang/calendar-br', 'expressoMail1_2' ); 149 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'globals', 'expressoMail1_2' ); 150 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'sniff_browser', 'expressoMail1_2' ); 151 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'common_functions', 'expressoMail1_2' ); 152 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'abas', 'expressoMail1_2' ); 153 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'doiMenuData', 'expressoMail1_2' ); 154 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'drag_area', 'expressoMail1_2' ); 155 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'draw_api_messages', 'expressoMail1_2' ); 156 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'draw_api_folders', 'expressoMail1_2' ); 157 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'DropDownContacts', 'expressoMail1_2' ); 158 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'InfoContact', 'expressoMail1_2' ); 159 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'local_messages', 'expressoMail1_2' ); 160 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'messages_controller', 'expressoMail1_2' ); 161 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'rich_text_editor', 'expressoMail1_2' ); 162 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'wfolders', 'expressoMail1_2' ); 163 $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'main', 'expressoMail1_2' ); 168 164 169 165 if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'expressoMail' ][ 'use_shortcuts' ] ) … … 181 177 $script .= '<style type="text/css">@import url(' . $phpgwapi_url . '/js/jscalendar/calendar-win2k-1.css);</style>'; 182 178 $script .= '<script type="text/javascript">'; 179 $script .= ' use_spam_filter = "' . $current_config['expressoMail_use_spam_filter'] . '";'; 183 180 $script .= ' special_folders["'.$_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultTrashFolder'].'"] = \'Trash\';'; 184 181 $script .= ' special_folders["'.$_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultDraftsFolder'].'"] = \'Drafts\';'; … … 192 189 $script .= ' var locale = "'.$GLOBALS['phpgw']->common->getPreferredLanguage().'";'; 193 190 $script .= ' var account_id = ' . $GLOBALS['phpgw_info']['user']['account_id'] . ';'; 194 $script .= ' expresso.connector.updateVersion = "'. $GLOBALS['phpgw_info']['flags']['update_version'] . '";';195 191 $script .= ' var cyrus_delimiter = "' . $_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'] . '";'; 196 192 $script .= ( ( array_key_exists( 'HTTP_BACKGROUNDREQUEST', $_SERVER ) || array_key_exists( 'BackgroundRequest', $_GET ) ) ? 'init( );' : 'XEvents.add( window, "onload", init)' );
Note: See TracChangeset
for help on using the changeset viewer.