Commit 954d8631 authored by mose's avatar mose

fixed the display of images in articles

parent 30e051de
<?php
// $Header: /cvsroot/tikiwiki/tiki/article_image.php,v 1.5 2003-11-23 22:48:58 mose Exp $
// $Header: /cvsroot/tikiwiki/tiki/article_image.php,v 1.6 2003-11-28 04:47:38 mose Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
# $Header: /cvsroot/tikiwiki/tiki/article_image.php,v 1.5 2003-11-23 22:48:58 mose Exp $
# $Header: /cvsroot/tikiwiki/tiki/article_image.php,v 1.6 2003-11-28 04:47:38 mose Exp $
// application to display an image from the database with
// option to resize the image dynamically creating a thumbnail on the fly.
......@@ -21,6 +21,7 @@ if (is_file($topiccachefile) and (!isset($_REQUEST["reload"]))) {
header ("Content-type: ".$size['mime']);
readfile($topiccachefile);
} else {
include_once ('lib/init/initlib.php');
include_once ('db/tiki-db.php');
include_once ('lib/tikilib.php');
$tikilib = new Tikilib($dbTiki);
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/topic_image.php,v 1.7 2003-11-11 20:48:14 dheltzel Exp $
// $Header: /cvsroot/tikiwiki/tiki/topic_image.php,v 1.8 2003-11-28 04:47:38 mose Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
# $Header: /cvsroot/tikiwiki/tiki/topic_image.php,v 1.7 2003-11-11 20:48:14 dheltzel Exp $
# $Header: /cvsroot/tikiwiki/tiki/topic_image.php,v 1.8 2003-11-28 04:47:38 mose Exp $
// application to display an image from the database with
// option to resize the image dynamically creating a thumbnail on the fly.
......@@ -21,6 +21,7 @@ if (is_file($topiccachefile) and (!isset($_REQUEST["reload"]))) {
header ("Content-type: ".$size['mime']);
readfile($topiccachefile);
} else {
include_once ('lib/init/initlib.php');
include_once ('db/tiki-db.php');
include_once ('lib/tikilib.php');
$tikilib = new Tikilib($dbTiki);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment