[Vtigercrm-commits] [vtiger-commits] r5038 - in /vtigercrm/trunk/modules/Webmails: dlAttachments.php tmp/

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat Apr 8 07:06:18 EDT 2006


Author: mmbrich
Date: Sat Apr  8 05:06:17 2006
New Revision: 5038

Log:
fixed attachment download code
still needs to have a cleanup mechanism built in to
delete attachments when done viewing.


Added:
    vtigercrm/trunk/modules/Webmails/tmp/
Modified:
    vtigercrm/trunk/modules/Webmails/dlAttachments.php

Modified: vtigercrm/trunk/modules/Webmails/dlAttachments.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/dlAttachments.php (original)
+++ vtigercrm/trunk/modules/Webmails/dlAttachments.php Sat Apr  8 05:06:17 2006
@@ -21,8 +21,8 @@
 $num=$_REQUEST["num"];
 $email = new Webmail($mbox,$mailid);
 $attachments=$email->downloadAttachments();
-
-$save_path='/usr/local/share/vtiger/modules/Webmails/tmp';
+global $root_directory;
+$save_path=$root_directory.'/modules/Webmails/tmp';
 $user_dir=$save_path."/".$_SESSION["authenticated_user_id"];
 if(!is_dir($user_dir))
 	mkdir($user_dir);





More information about the vtigercrm-commits mailing list