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 *
Line 
1<?php
2/*
3 * Requieres
4 */
5 require_once '../../header.session.inc.php';
6 require_once dirname(__FILE__).'/class.attachment.inc.php';
7 //------------------------//
8
9 /*
10  * Get variables
11  */
12$msgFolder = $_GET['msg_folder'];
13$msgNumber = $_GET['msg_num'];
14$embeddedPart = $_GET['msg_part'];
15//-------------------------------------//
16
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
31?>
Note: See TracBrowser for help on using the repository browser.