[Vtigercrm-commits] [vtiger-commits] r10358 - /vtigercrm/branches/5.0.3/modules/Webmails/body.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 6 04:59:35 EST 2007
Author: richie
Date: Tue Mar 6 02:59:26 2007
New Revision: 10358
Log:
fixed the attachment issue
Modified:
vtigercrm/branches/5.0.3/modules/Webmails/body.php
Modified: vtigercrm/branches/5.0.3/modules/Webmails/body.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/body.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/body.php Tue Mar 6 02:59:26 2007
@@ -17,10 +17,16 @@
if(!isset($_SESSION["authenticated_user_id"]) || $_SESSION["authenticated_user_id"] != $current_user->id) {echo "ajax failed";flush();exit();}
$mailid=$_REQUEST["mailid"];
-if(isset($_REQUEST["mailbox"]) && $_REQUEST["mailbox"] != "") {$mailbox=$_REQUEST["mailbox"];} else {$mailbox="INBOX";}
+if(isset($_REQUEST["mailbox"]) && $_REQUEST["mailbox"] != "")
+{
+ $mailbox=$_REQUEST["mailbox"];
+}
+else
+{
+ $mailbox="INBOX";
+}
$MailBox = new MailBox($mailbox);
$email = new Webmails($MailBox->mbox,$mailid);
-
?>
<script type="text/javascript">
function show_inline(num) {
@@ -79,8 +85,12 @@
echo '</div>';
}
else
- echo "<br>".($i+1).") <a target='_BLANK' href='index.php?module=Webmails&action=dlAttachments&inline=true&num=".$i."&mailid=".$mailid."'>".$inline[$i]["filename"]."</a> <br>";
- }
+ {
+ echo "<br>".($i+1).") <a target='_BLANK' href='index.php?module=Webmails&action=dlAttachments&inline=true&num=".$i."&mailbox=".$mailbox."&mailid=".$mailid."'>".$inline[$i]["filename"]."</a>
+ <br>";
+// echo "<br>".($i+1).") <a target='_BLANK' href='index.php?module=Webmails&action=dlAttachments&inline=true&num=".$i."&mailid=".$mailid."'>".$inline[$i]["filename"]."</a> <br>";
+ }
+}
}
imap_close($MailBox->mbox);
More information about the vtigercrm-commits
mailing list