Changeset 7414 for trunk/expressoMail1_2/index.php
- Timestamp:
- 10/11/12 18:14:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/index.php
r7110 r7414 348 348 // End Set Imap Folder names options 349 349 //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>"; 351 388 352 389 $obj = createobject("expressoMail1_2.functions"); … … 376 413 $scripts .= "js/shortcut.js,"; 377 414 } 378 415 echo "<script> use_local_messages = ".$_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages']."</script>"; 379 416 if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages']) 380 417 $scripts .= "js/local_messages.js,";
Note: See TracChangeset
for help on using the changeset viewer.