<?php
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//																										//
//	iStrip web comic publishing system																	//
//	Standalone randim image displayer																	//																	//
//																										//
//	Copyright © 2002 Gordon McVey. Released under the GNU General Public License V2.0					//
//	http://www.gnu.org/licenses/gpl.html																//																										//
//																										//																										//
//////////////////////////////////////////////////////////////////////////////////////////////////////////

// This file is part of iStrip.
//
// iStrip is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// iStrip is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with iStrip; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

define ("VER_SHOWBANNER",'1.6.3');

include ('include/istrip_ver.php');
include ('include/istrip_constants.php');
include (CFG_DIR_FILES.CFG_FILE_CONFIG);
include ('include/lib_utils.php');

if (!ignore_user_abort ())
	ignore_user_abort (true);

if (CFG_DIR_BANNER != '')
{
	$filename = randomfile (CFG_DIR_BANNER);
	
	if ((file_exists (CFG_DIR_BANNER.$filename)) && (is_file (CFG_DIR_BANNER.$filename)))
	{
		ob_implicit_flush ();
		killcache ();
		header ('Content-type: '.imagemimetype (CFG_DIR_BANNER.$filename)); 
		readfile (CFG_DIR_BANNER.$filename);
	}
}
?>
