Changeset 5316 for trunk/expressoMail1_2
- Timestamp:
- 01/06/12 08:52:37 (12 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.ScriptS.inc.php
r5294 r5316 50 50 $this->EmailExpresso = trim($_SESSION['phpgw_info']['expressomail']['user']['email']); 51 51 52 include_once $_SESSION['rootPath'] . '/header.inc.php';53 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';52 include_once dirname(__FILE__).'/../../header.inc.php'; 53 require_once dirname(__FILE__).'/../../API/class.servicelocator.php'; 54 54 $alternativeMailService = ServiceLocator::getService('ldap'); 55 55 $this->AlternateEmailExpresso = $alternativeMailService->getMailAlternateByUidNumber($_SESSION['phpgw_info']['expressomail']['user']['account_id']); -
trunk/expressoMail1_2/inc/class.attachment.inc.php
r5172 r5316 37 37 * Requires 38 38 */ 39 require_once $_SESSION['rootPath'].'/library/mime/mimePart.php';40 require_once $_SESSION['rootPath'].'/library/mime/mimeDecode.php';39 require_once dirname(__FILE__).'/../../library/mime/mimePart.php'; 40 require_once dirname(__FILE__).'/../../library/mime/mimeDecode.php'; 41 41 //----------------------------------------------------------// 42 42 -
trunk/expressoMail1_2/inc/class.db_functions.inc.php
r5134 r5316 369 369 if($msg_number != null && $msg_part != null && $msg_folder != null && (intval($idx_file == '0' ? '1' : $idx_file))) 370 370 { 371 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';371 require_once dirname(__FILE__).'/class.attachment.inc.php'; 372 372 $attachmentObj = new attachment(); 373 373 $attachmentObj->setStructureFromMail($msg_folder,$msg_number); -
trunk/expressoMail1_2/inc/class.exporteml.inc.php
r5181 r5316 664 664 function download_all_attachments($params) { 665 665 666 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';666 require_once dirname(__FILE__).'/class.attachment.inc.php'; 667 667 $atObj = new attachment(); 668 668 $atObj->setStructureFromMail($params['folder'],$params['num_msg']); -
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5309 r5316 274 274 $to = $header->to; 275 275 $head_array['to'] = array(); 276 if(isset($to[1]) && $to[1]->host == ".SYNTAX-ERROR.") { //E-mails que não possuem o campo "para", vêm com o recipiente preenchido, porém com um recipiente a mais alegando erro de sintaxe.276 if(isset($to[1]) && isset($to[1]->host) && $to[1]->host == ".SYNTAX-ERROR.") { //E-mails que não possuem o campo "para", vêm com o recipiente preenchido, porém com um recipiente a mais alegando erro de sintaxe. 277 277 $head_array['to']['name'] = $head_array['to']['email'] = NULL; 278 278 } … … 935 935 { 936 936 $return = array(); 937 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';937 require_once dirname(__FILE__).'/class.attachment.inc.php'; 938 938 939 939 $atObj = new attachment(); … … 1322 1322 * Requires of librarys 1323 1323 */ 1324 require_once $_SESSION['rootPath'].'/library/mime/mimePart.php';1325 require_once $_SESSION['rootPath'].'/library/mime/mimeDecode.php';1326 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';1324 require_once dirname(__FILE__).'/../../library/mime/mimePart.php'; 1325 require_once dirname(__FILE__).'/../../library/mime/mimeDecode.php'; 1326 require_once dirname(__FILE__).'/class.attachment.inc.php'; 1327 1327 //include_once("class.message_components.inc.php"); 1328 1328 //--------------------------------------------------------------------// … … 1533 1533 1534 1534 case 'REPLY': 1535 include_once( $_SESSION['rootPath'].'/header.inc.php');1536 include_once( $_SESSION['rootPath'].'/calendar/inc/class.boicalendar.inc.php');1535 include_once(dirname(__FILE__).'/../../header.inc.php'); 1536 include_once(dirname(__FILE__).'/../../calendar/inc/class.boicalendar.inc.php'); 1537 1537 $boicalendar = new boicalendar(); 1538 1538 … … 2064 2064 if (!count($images)) return ''; 2065 2065 2066 foreach ($images as $key => $value) { 2066 foreach ($images as $key => $value) { 2067 2067 $images[$key]['width'] = 160; 2068 2068 $images[$key]['height'] = 120; 2069 $images[$key]['url'] = "inc/get_archive.php?msgFolder=".$msg_folder."&msgNumber=".$msg_number."&indexPart=".$ image['pid']."&image=true";2069 $images[$key]['url'] = "inc/get_archive.php?msgFolder=".$msg_folder."&msgNumber=".$msg_number."&indexPart=".$value['pid']."&image=true"; 2070 2070 } 2071 2071 … … 2570 2570 function send_mail($params) 2571 2571 { 2572 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';2572 require_once dirname(__FILE__) . '/../../API/class.servicelocator.php'; 2573 2573 $mailService = ServiceLocator::getService('mail'); 2574 2574 … … 3299 3299 function get_forwarding_attachment($msg_folder, $msg_number, $msg_part, $encoding) 3300 3300 { 3301 include_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';3301 include_once dirname(__FILE__).'/class.attachment.inc.php'; 3302 3302 $attachment = new attachment(); 3303 3303 $attachment->decodeConf['rfc_822bodies'] = true; //Forçar a não decodificação de mensagens em anexo. … … 3308 3308 function get_forwarding_attachment2($msg_folder, $msg_number, $msg_part, $encoding) 3309 3309 { 3310 include_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';3310 include_once dirname(__FILE__).'/class.attachment.inc.php'; 3311 3311 $attachment = new attachment(); 3312 3312 $attachment->setStructureFromMail($msg_folder, $msg_number); … … 3663 3663 { 3664 3664 3665 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';3665 require_oncedirname(__FILE__) . '/../../API/class.servicelocator.php'; 3666 3666 $mailService = ServiceLocator::getService('mail'); 3667 3667 … … 4959 4959 fputs($f,base64_encode($source)); 4960 4960 fclose($f); 4961 $command = "python ". $_SESSION['rootPath']."/expressoMail1_2/imap.py \"$imap_server\" \"$imap_port\" \"$username\" \"$password\" \"$timestamp\" \"$folder\" \"$file\"";4961 $command = "python ".dirname(__FILE__)."/../imap.py \"$imap_server\" \"$imap_port\" \"$username\" \"$password\" \"$timestamp\" \"$folder\" \"$file\""; 4962 4962 $return['command']= exec($command); 4963 4963 }else{ … … 5129 5129 "$msg_user</body><br><br><hr>"; 5130 5130 5131 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';5131 require_once dirname(__FILE__) . '/../../API/class.servicelocator.php'; 5132 5132 $mailService = ServiceLocator::getService('mail'); 5133 5133 $mailService->addStringAttachment($mail_content, 'report.eml', 'application/text'); -
trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
r5245 r5316 1 1 <?php 2 2 3 require_once( ($_SESSION['rootPath'] ? $_SESSION['rootPath'] : PHPGW_INCLUDE_ROOT).'/API/class.servicelocator.php');3 require_once(dirname(__FILE__).'/../../API/class.servicelocator.php'); 4 4 include_once("class.imap_functions.inc.php"); 5 5 include_once("class.functions.inc.php"); … … 277 277 $modal = true; 278 278 279 include_once $_SESSION['rootPath']. '/header.inc.php';279 include_once dirname(__FILE__). '/../../header.inc.php'; 280 280 281 281 if($modal) … … 387 387 function quickSearchGlobal($params, $all=false) 388 388 { 389 include_once $_SESSION['rootPath']. '/header.inc.php';389 include_once dirname(__FILE__). '/../../header.inc.php'; 390 390 $c = CreateObject('phpgwapi.config','contactcenter'); 391 391 $all_data = $c->read_repository(); -
trunk/expressoMail1_2/inc/get_archive.php
r5272 r5316 92 92 if($msgNumber != 'null' && $indexPart !== null && $msgFolder) 93 93 { 94 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';94 require_once dirname(__FILE__).'/class.attachment.inc.php'; 95 95 96 96 $attachment = new attachment(); -
trunk/expressoMail1_2/inc/show_embedded_attach.php
r4416 r5316 4 4 */ 5 5 require_once '../../header.session.inc.php'; 6 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';6 require_once dirname(__FILE__).'/class.attachment.inc.php'; 7 7 //------------------------// 8 8 -
trunk/expressoMail1_2/inc/show_img.php
r4416 r5316 4 4 */ 5 5 require_once '../../header.session.inc.php'; 6 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';6 require_oncedirname(__FILE__).'/class.attachment.inc.php'; 7 7 //------------------------// 8 8 -
trunk/expressoMail1_2/inc/show_thumbs.php
r4416 r5316 4 4 */ 5 5 require_once '../../header.session.inc.php'; 6 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';6 require_once dirname(__FILE__).'/class.attachment.inc.php'; 7 7 //------------------------// 8 8 -
trunk/expressoMail1_2/index.php
r5295 r5316 169 169 $template->set_var("msg_number",$_GET['msgball']['msgnum'] ? $_GET['msgball']['msgnum'] : $_GET['to']); 170 170 $template->set_var("user_email",$_SESSION['phpgw_info']['expressomail']['user']['email']); 171 include_once $_SESSION['rootPath'] . '/header.inc.php';172 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';171 include_once dirname(__FILE__) . '/../header.inc.php'; 172 require_once dirname(__FILE__) . '/../API/class.servicelocator.php'; 173 173 $alternativeMailService = ServiceLocator::getService('ldap'); 174 174 $AlternateEmailExpresso = Array();
Note: See TracChangeset
for help on using the changeset viewer.