source: trunk/expressoMail1_2/inc/show_embedded_attach.php @ 5316

Revision 5316, 655 bytes checked in by cristiano, 12 years ago (diff)

Ticket #2423 - Trocar chamada da variável rootPath

  • Property svn:eol-style set to native
  • Property svn:executable set to *
RevLine 
[2]1<?php
[4416]2/*
3 * Requieres
4 */
5 require_once '../../header.session.inc.php';
[5316]6 require_once dirname(__FILE__).'/class.attachment.inc.php';
[4416]7 //------------------------//
[1040]8
[4416]9 /*
10  * Get variables
11  */
12$msgFolder = $_GET['msg_folder'];
13$msgNumber = $_GET['msg_num'];
14$embeddedPart = $_GET['msg_part'];
15//-------------------------------------//
[3018]16
[4416]17
18/*
19 * Main
20 */
21$attachmentObj = new attachment();
22$attachmentObj->setStructureFromMail($msgFolder, $msgNumber);
23$fileContent = $attachmentObj->getAttachment($embeddedPart);
24
25header("Content-Type: image/jpeg");
26header("Content-Disposition: inline");
27
28echo $fileContent;
29//------------------------------------------//
30
[1037]31?>
Note: See TracBrowser for help on using the repository browser.