Ignore:
Timestamp:
04/27/10 16:58:10 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Corigindo problemas com o ordenamento referente aos javascripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/index.php

    r2603 r2642  
    1111\**************************************************************************/ 
    1212 
    13 $GLOBALS['phpgw_info']['flags'] = array( 
    14         //'noheader' => False, 
    15         //'nonavbar' => False, 
     13$GLOBALS['phpgw_info']['flags'] = array 
     14( 
    1615        'currentapp' => 'expressoMail1_2', 
    1716        'update_version'        => '1.235', 
     
    2019 
    2120require_once('../header.inc.php'); 
    22  
    23 //include_once("inc/load_lang.php"); 
    2421 
    2522$_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 
     
    120117$_SESSION['phpgw_info']['server']['expressomail']['expressoMail_command_for_spam'] = $current_config['expressoMail_command_for_spam']; 
    121118$_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>'; 
    123119// End Set Anti-Spam options. 
    124120 
     
    148144 
    149145//$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' ); 
    168164 
    169165if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'expressoMail' ][ 'use_shortcuts' ] ) 
     
    181177$script .= '<style type="text/css">@import url(' . $phpgwapi_url . '/js/jscalendar/calendar-win2k-1.css);</style>'; 
    182178$script .= '<script type="text/javascript">'; 
     179$script .= '    use_spam_filter = "' . $current_config['expressoMail_use_spam_filter'] . '";'; 
    183180$script .= '    special_folders["'.$_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultTrashFolder'].'"] = \'Trash\';'; 
    184181$script .= '    special_folders["'.$_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultDraftsFolder'].'"] = \'Drafts\';'; 
     
    192189$script .= '    var locale = "'.$GLOBALS['phpgw']->common->getPreferredLanguage().'";'; 
    193190$script .= '    var account_id = ' . $GLOBALS['phpgw_info']['user']['account_id'] . ';'; 
    194 $script .= '    expresso.connector.updateVersion = "'. $GLOBALS['phpgw_info']['flags']['update_version'] . '";'; 
    195191$script .= '    var cyrus_delimiter = "' . $_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'] . '";'; 
    196192$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.