Source for file image.php

Documentation is available at image.php

  1. <?php
  2. /**
  3. * image.php
  4. *
  5. * This file shows an attached image
  6. *
  7. * @copyright 1999-2020 The SquirrelMail Project Team
  8. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  9. * @version $Id: image.php 14845 2020年01月07日 08:09:34Z pdontthink $
  10. * @package squirrelmail
  11. */
  12. /** This is the image page */
  13. define ('PAGE_NAME', 'image');
  14. /**
  15. * Include the SquirrelMail initialization file.
  16. */
  17. require('../include/init.php');
  18. /* globals */
  19. sqgetGlobalVar ('passed_id', $passed_id, SQ_GET , NULL, SQ_TYPE_BIGINT );
  20. sqgetGlobalVar ('mailbox', $mailbox, SQ_GET );
  21. sqgetGlobalVar ('ent_id', $ent_id, SQ_GET );
  22. sqgetGlobalVar ('QUERY_STRING', $QUERY_STRING, SQ_SERVER );
  23. /* end globals */
  24. echo '<br />' .
  25. '<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">' .
  26. "\n" .
  27. '<tr><td bgcolor="' . $color[0] . '">' .
  28. '<div style="text-align: center;"><b>' .
  29. _ ("Viewing an image attachment") . " - ";
  30. $msg_url = 'read_body.php?' . $QUERY_STRING;
  31. $msg_url = set_url_var ($msg_url, 'ent_id', 0);
  32. echo '<a href="'.$msg_url.'">'. _ ("View message") . '</a>';
  33. $DownloadLink = '../src/download.php?passed_id=' . $passed_id .
  34. '&amp;mailbox=' . urlencode ($mailbox) .
  35. '&amp;ent_id=' . urlencode ($ent_id) . '&amp;absolute_dl=true';
  36. ?>
  37. </b></div></td></tr>
  38. <tr><td align="center">
  39. <a href="<?php echo $DownloadLink; ?>"><?php echo _ ("Download this as a file"); ?></a>
  40. <br />&nbsp;</td></tr></table>
  41. <table border="0" cellspacing="0" cellpadding="2" align="center">
  42. <tr><td bgcolor="<?php echo $color[4]; ?>">
  43. <img src="<?php echo $DownloadLink; ?>" />
  44. </td></tr></table>
  45. <?php
  46. $oTemplate->display('footer.tpl');

Documentation generated on 2020年1月13日 04:22:42 +0100 by phpDocumentor 1.4.3

AltStyle によって変換されたページ (->オリジナル) /