Changeset 1040
- Timestamp:
- 06/23/09 10:50:11 (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.ScriptS.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 11 12 //Inclui o arquivo contendo a classe SieveS; -
trunk/expressoMail1_2/inc/class.SieveS.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 11 12 //Conecta com o Servidor e o serviço Sieve; -
trunk/expressoMail1_2/inc/class.db_functions.inc.php
r1037 r1040 1 1 <?php 2 2 if(!isset($GLOBALS['phpgw_info'])){ 3 3 $GLOBALS['phpgw_info']['flags'] = array( 4 4 'currentapp' => 'expressoMail1_2', … … 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php'; 9 } 8 } 9 require_once '../header.inc.php'; 10 10 11 11 define('PHPGW_INCLUDE_ROOT','../'); -
trunk/expressoMail1_2/inc/class.exporteml.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 /***************************************************************************************\ 11 11 * Export EML Format Message Mail * … … 83 83 $file = $subject."_".$i.".eml"; 84 84 } else{ 85 $file = "email_". md5(microtime()).".eml";85 $file = "email_".$GLOBALS['phpgw']->session->sessionid.".eml"; 86 86 } 87 87 } … … 98 98 99 99 function createFileZip($files, $tempDir){ 100 $tmp_zip_filename = "email_".md5(microtime()).".zip";101 $command = "cd " . $tempDir . "; nice zip -m " . $tmp_zip_filename . " " . $files;100 $tmp_zip_filename = "email_".$GLOBALS['phpgw']->session->sessionid.".zip"; 101 $command = "cd " . escapeshellarg($tempDir) . " && nice zip -m9 " . escapeshellarg($tmp_zip_filename) . " " . escapeshellcmd($files); 102 102 if(!exec($command)) { 103 $command = 'cd ' . $tempDir . '; rm '.$files;103 $command = "cd " . escapeshellarg($tempDir) . " && rm ".escapeshellcmd($files)." ". escapeshellarg($tmp_zip_filename); 104 104 exec($command); 105 105 return null; … … 243 243 $body = $this-> getBody($id_number); 244 244 245 $file = "source_". md5(microtime()).".txt";245 $file = "source_".$GLOBALS['phpgw']->session->sessionid.".txt"; 246 246 $f = fopen($tempDir.'/'.$file,"w"); 247 247 fputs($f,$header ."\r\n\r\n". $body); … … 281 281 $body = $this-> getBody($id_msg); 282 282 283 $file = "source_". md5(microtime()).".php";283 $file = "source_".$GLOBALS['phpgw']->session->sessionid.".php"; 284 284 $f = fopen($tempDir.'/'.$file,"w"); 285 285 fputs($f,$phpheader.$header ."\r\n\r\n". $body); -
trunk/expressoMail1_2/inc/class.functions.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 11 class Functions{ -
trunk/expressoMail1_2/inc/class.imap_attachment.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 class imap_attachment 11 11 { -
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 include_once("class.functions.inc.php"); 11 12 include_once("class.ldap_functions.inc.php"); … … 1806 1807 } 1807 1808 $tempDir = ini_get("session.save_path"); 1808 $file = "cid _image_".base_convert(microtime(), 10, 36).".dat";1809 $file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat"; 1809 1810 $f = fopen($tempDir.'/'.$file,"w"); 1810 1811 fputs($f,$fileContent); … … 2318 2319 } 2319 2320 $tempDir = ini_get("session.save_path"); 2320 $file = "cid _image_".base_convert(microtime(), 10, 36).".dat";2321 $file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat"; 2321 2322 $f = fopen($tempDir.'/'.$file,"w"); 2322 2323 fputs($f,$fileContent); … … 2393 2394 imagecopyresampled($image_new, $image_big, 0, 0, 0, 0, $new_width, $new_height, $width, $height); 2394 2395 $tmpDir = ini_get("session.save_path"); 2395 $_file = "cid _image_".base_convert(microtime(), 10, 36).".dat";2396 $_file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat"; 2396 2397 imagejpeg($image_new,$tmpDir.$_file, 85); 2397 2398 $mail->AddAttachment($tmpDir.$_file, $attach['name'], "base64", $this->get_file_type($tmpDir.$_file)); … … 3266 3267 if($timestamp){ 3267 3268 $tempDir = ini_get("session.save_path"); 3268 $file = $tempDir."imap_". md5(microtime());3269 $file = $tempDir."imap_".$GLOBALS['phpgw']->session->sessionid; 3269 3270 $f = fopen($file,"w"); 3270 3271 fputs($f,base64_encode($source)); -
trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 include_once("class.imap_functions.inc.php"); 11 12 include_once("class.functions.inc.php"); -
trunk/expressoMail1_2/inc/class.message_components.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 class message_components { 11 12 -
trunk/expressoMail1_2/inc/class.phpmailer.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 //////////////////////////////////////////////////// 11 12 // PHPMailer - PHP email class -
trunk/expressoMail1_2/inc/class.smtp.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 //////////////////////////////////////////////////// 11 12 // SMTP - PHP SMTP class -
trunk/expressoMail1_2/inc/class.user.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 class user{ 11 12 -
trunk/expressoMail1_2/inc/fckeditor.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 /* 11 12 * FCKeditor - The text editor for internet -
trunk/expressoMail1_2/inc/gd_functions.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 10 *Author: 9 require_once '../header.inc.php'; 10 11 /*Author: 11 12 * JPEXS from http://www.hotscripts.com* ImageCreateFromBmp 12 13 */ -
trunk/expressoMail1_2/inc/gotodownload.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../../header.inc.php'; 10 10 11 11 12 $msg_number = $_GET['msg_number']; … … 153 154 154 155 header ("Content-Type: $ContentType"); 155 header("Cache-Control: must-revalidate, post-check=0, pre-check=0");156 header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); 156 157 header("Pragma: public"); 157 158 header("Expires: 0"); // set expiration time … … 166 167 } 167 168 else 168 if ( ( strpos( $strFileName, ini_get( 'session.save_path' ) ) === 0 ) && ( strpos( $strFileName, '../' ) === false ) ) 169 if (preg_match("#^".ini_get('session.save_path')."/[A-z]+_".$GLOBALS['phpgw']->session->sessionid."(\.[A-z]{3,4})?$#",$strFileName)) 170 { 169 171 readfile($strFileName); 172 exec("rm -f ".escapeshellcmd(escapeshellarg($strFileName))); 173 } 170 174 } 171 175 ?> -
trunk/expressoMail1_2/inc/hook_admin.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 11 12 /**************************************************************************\ -
trunk/expressoMail1_2/inc/hook_home.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 11 12 $current_app = 'expressoMail1_2'; -
trunk/expressoMail1_2/inc/hook_preferences.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 11 12 $title = $appname; -
trunk/expressoMail1_2/inc/hook_settings.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 $GLOBALS['phpgw_info']['flags'] = array(12 'currentapp' => 'expressoMail1_2',13 'nonavbar' => true,14 'noheader' => true15 );16 17 require_once '../../header.inc.php';18 11 /**************************************************************************\ 19 12 * eGroupWare - ExpressoMail Preferences * -
trunk/expressoMail1_2/inc/load_lang.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 // Load the lang of the module. 11 12 if(!$_SESSION['phpgw_info']['expressomail']['lang']) -
trunk/expressoMail1_2/inc/show_embedded_attach.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../../header.inc.php'; 10 10 11 $username = $_SESSION['phpgw_info']['expressomail']['user']['userid']; 11 12 $password = $_SESSION['phpgw_info']['expressomail']['user']['passwd']; -
trunk/expressoMail1_2/inc/show_img.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../../header.inc.php'; 10 10 11 header("Content-Type: image/jpeg"); 11 12 if($_GET['msg_num'] && $_GET['msg_part'] && $_GET['msg_folder']) { -
trunk/expressoMail1_2/inc/show_thumbs.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../../header.inc.php'; 10 10 11 $username = $_SESSION['phpgw_info']['expressomail']['user']['userid']; 11 12 $password = $_SESSION['phpgw_info']['expressomail']['user']['passwd']; -
trunk/expressoMail1_2/inc/show_user_photo.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 11 12 function ldapRebind($ldap_connection, $ldap_url) -
trunk/expressoMail1_2/preferences.php
r1036 r1040 10 10 11 11 12 require_once('../header. inc.php');12 require_once('../header.session.inc.php'); 13 13 include('inc/class.imap_functions.inc.php'); 14 14 include_once("inc/fckeditor.php");
Note: See TracChangeset
for help on using the changeset viewer.