Ignore:
Timestamp:
09/03/12 15:16:00 (12 years ago)
Author:
fernando
Message:

Ticket #3037 - Codificar DFD0095 (fernando) - listagem de mensagens locais

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.0-expresso1/expressoMail1_2/index.php

    r7110 r7146  
    348348    // End Set Imap Folder names options 
    349349        //User info 
    350         echo "<script language='javascript'> var account_id = ".$GLOBALS['phpgw_info']['user']['account_id'].";var expresso_offline = false;</script>"; 
     350    echo "<script language='javascript'> var account_id = ".$GLOBALS['phpgw_info']['user']['account_id'].";var expresso_offline = false; var mail_archive_host = '127.0.0.1';</script>\n"; 
     351         
     352    //MAILARCHIVER-02 
     353    //todo: remover a linha abaixo e implementar a configuração 
     354    //$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'] = true; 
     355        if ( $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'] == true ) { 
     356        $mail_archiver_host = '127.0.0.1'; 
     357        //Check protocol in use (https or http) 
     358        if($_SERVER['HTTPS'] != 'on'){ 
     359            $mail_archiver_protocol = "http"; 
     360            $mail_archiver_port = "4333"; 
     361        } 
     362        else{ 
     363            $mail_archiver_protocol = "https"; 
     364            $mail_archiver_port = "4334"; 
     365        } 
     366     
     367        //JS Variables (to add on jscripts variables, needed by dependence scripts following) 
     368        echo '<script type="text/javascript">var mail_archive_protocol="'.$mail_archiver_protocol.'"; var mail_archive_port="'.$mail_archiver_port.'";</script>'; 
     369     
     370        //CXF custom js files, from MailArchiver ArcServUtil JS files repository, intended to be running already: CORS support and custom TRANSPORT object 
     371        echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-xdr-adapter.js"></script>'; 
     372        echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-cors-request-object.js"></script>'; 
     373        echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-cors-utils.js"></script>'; 
     374 
     375        //CXF UTILS MAIN FILE 
     376        echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcserv/ArchiveServices?js&nojsutils"></script>'; 
     377     
     378        //QueryConfig add on 
     379        echo '<script src="js/MAQueryConfig.js?'.$update_version.'"></script>';         
     380        //Expresso serialized format add on 
     381        echo '<script src="js/MAExpressoPattern.js?'.$update_version.'"></script>';         
     382     
     383        //echo $obj -> getFilesJs("js/mail_archiver.js," . $GLOBALS['phpgw_info']['flags']['update_version']); 
     384        echo '<script src="js/mail_archiver.js?'.$update_version.'"></script>'; 
     385     
     386    } 
     387        //echo "<script language='javascript'> var account_id = ".$GLOBALS['phpgw_info']['user']['account_id'].";var expresso_offline = false;</script>"; 
    351388 
    352389        $obj = createobject("expressoMail1_2.functions"); 
Note: See TracChangeset for help on using the changeset viewer.