Revision 5509,
1.3 KB
checked in by gustavo, 13 years ago
(diff) |
Ticket #2488 - Adicionar cabecalho de licenca em arquivos que nao o possuem
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2] | 1 | <?php |
---|
[5509] | 2 | /*************************************************************************** |
---|
| 3 | * Expresso Livre * |
---|
| 4 | * http://www.expressolivre.org * |
---|
| 5 | * -------------------------------------------- * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | \**************************************************************************/ |
---|
| 11 | |
---|
[4416] | 12 | /* |
---|
| 13 | * Requieres |
---|
| 14 | */ |
---|
| 15 | require_once '../../header.session.inc.php'; |
---|
[5316] | 16 | require_once dirname(__FILE__).'/class.attachment.inc.php'; |
---|
[4416] | 17 | //------------------------// |
---|
[1040] | 18 | |
---|
[4416] | 19 | /* |
---|
| 20 | * Get variables |
---|
| 21 | */ |
---|
| 22 | $msgFolder = $_GET['msg_folder']; |
---|
| 23 | $msgNumber = $_GET['msg_num']; |
---|
| 24 | $embeddedPart = $_GET['msg_part']; |
---|
| 25 | //-------------------------------------// |
---|
[3018] | 26 | |
---|
[4416] | 27 | |
---|
| 28 | /* |
---|
| 29 | * Main |
---|
| 30 | */ |
---|
| 31 | $attachmentObj = new attachment(); |
---|
| 32 | $attachmentObj->setStructureFromMail($msgFolder, $msgNumber); |
---|
| 33 | $fileContent = $attachmentObj->getAttachment($embeddedPart); |
---|
| 34 | |
---|
| 35 | header("Content-Type: image/jpeg"); |
---|
| 36 | header("Content-Disposition: inline"); |
---|
| 37 | |
---|
| 38 | echo $fileContent; |
---|
| 39 | //------------------------------------------// |
---|
| 40 | |
---|
[1037] | 41 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.