1<?php
2/**
3 * @package tikiwiki
4 */
5// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
6//
7// All Rights Reserved. See copyright.txt for details and a complete list of authors.
8// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
9// $Id$
10
11// application to display an image from the database with
12// option to resize the image dynamically creating a thumbnail on the fly.
13if (! isset($_REQUEST["id"])) {
14	die;
15}
16
17require_once('tiki-setup.php');
18$access->check_feature('feature_articles');
19
20include_once('lib/commcenter/commlib.php');
21$data = $commlib->get_received_article($_REQUEST["id"]);
22$type = $data["image_type"];
23$data = $data["image_data"];
24header("Content-type: $type");
25echo $data;
26