X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fimage.php;h=23d0a01dc1bc2c9387ab9234f3441a271daa5abf;hb=eceb3fe56e7ef548f83797639e9d6d993254695b;hp=704fd381b3e0e5733aa15a46c4c4010827714090;hpb=4b4abf93a9624311afef0c385023724ee46a2b60;p=squirrelmail.git diff --git a/src/image.php b/src/image.php index 704fd381..23d0a01d 100644 --- a/src/image.php +++ b/src/image.php @@ -5,32 +5,24 @@ * * This file shows an attached image * - * @copyright © 1999-2005 The SquirrelMail Project Team + * @copyright © 1999-2009 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail */ +/** This is the image page */ +define('PAGE_NAME', 'image'); + /** - * Path for SquirrelMail required files. - * @ignore + * Include the SquirrelMail initialization file. */ -define('SM_PATH','../'); - -/* SquirrelMail required files. */ -require_once(SM_PATH . 'include/validate.php'); -require_once(SM_PATH . 'functions/global.php'); -require_once(SM_PATH . 'functions/date.php'); -require_once(SM_PATH . 'functions/page_header.php'); -require_once(SM_PATH . 'functions/html.php'); -require_once(SM_PATH . 'include/load_prefs.php'); +require('../include/init.php'); -displayPageHeader($color, 'None'); +displayPageHeader($color); /* globals */ -if ( sqgetGlobalVar('passed_id', $temp, SQ_GET) ) { - $passed_id = (int) $temp; -} +sqgetGlobalVar('passed_id', $passed_id, SQ_GET, NULL, SQ_TYPE_BIGINT); sqgetGlobalVar('mailbox', $mailbox, SQ_GET); sqgetGlobalVar('ent_id', $ent_id, SQ_GET); sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER); @@ -40,7 +32,7 @@ echo '
' . '' . "\n" . ' +
' . - '
' . + '
' . _("Viewing an image attachment") . " - "; $msg_url = 'read_body.php?' . $QUERY_STRING; @@ -53,7 +45,7 @@ $DownloadLink = '../src/download.php?passed_id=' . $passed_id . '&ent_id=' . urlencode($ent_id) . '&absolute_dl=true'; ?> -

 
@@ -63,4 +55,5 @@ $DownloadLink = '../src/download.php?passed_id=' . $passed_id . - \ No newline at end of file +display('footer.tpl');