<?php
/****************************************************************************
This script was developed by Indigo Scripts
Title: Indigo Gallery
Version: 2.4
Homepage: www.indigoscripts.com
Copyright 2005 Indigo Scripts and its owners.
All rights reserved.
THIS COPYRIGHT INFORMATION MUST REMAIN INTACT AND MAY NOT BE MODIFIED IN ANY WAY
When you purchased this script you agreed to accept the terms
of this Agreement. This Agreement is a legal contract, which
specifies the terms of the license and warranty limitation between
you and 'Indigo Scripts'. You should carefully read the following
terms and conditions before installing or using this software.
Unless you have a different license agreement obtained from
'Indigo Scripts', installation or use of this
software indicates your acceptance of the license and warranty
limitation terms contained in this Agreement.
If you do not agree to the terms of this Agreement, promptly delete
and destroy all copies of the Software.
Versions of the Software
Only one licenced copy of this software may be used on one web site.
License to Redistribute
Distributing the software and/or documentation with other products
(commercial or otherwise) by any means without prior written
permission from 'Indigo Scripts' is forbidden.
All rights to the software and documentation not expressly
granted under this Agreement are reserved to 'Indigo Scripts'.
Disclaimer of Warranty
THIS SOFTWARE AND ACCOMPANYING DOCUMENTATION ARE PROVIDED "AS IS"
AND WITHOUT WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY
OTHER WARRANTIES WHETHER EXPRESSED OR IMPLIED. BECAUSE OF THE
VARIOUS HARDWARE AND SOFTWARE ENVIRONMENTS INTO WHICH THIS SOFTWARE
MAY BE USED, NO WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS
OFFERED. THE USER MUST ASSUME THE ENTIRE RISK OF USING THIS
PROGRAM. ANY LIABILITY OF 'INDIGO SCRIPTS' WILL BE LIMITED
EXCLUSIVELY TO PRODUCT REPLACEMENT OR REFUND OF PURCHASE PRICE.
IN NO CASE SHALL 'INDIGO SCRIPTS' OR IT'S OWNERS BE LIABLE FOR
ANY INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS, INCLUDING,
WITHOUT LIMITATION, LOST PROFITS OR THE INABILITY TO USE EQUIPMENT
OR ACCESS DATA, WHETHER SUCH DAMAGES ARE BASED UPON A BREACH OF
EXPRESS OR IMPLIED WARRANTIES, BREACH OF CONTRACT, NEGLIGENCE,
STRICT TORT, OR ANY OTHER LEGAL THEORY. THIS IS TRUE EVEN IF
'INDIGO SCRIPTS' OR IT'S OWNERS IS ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES. IN NO CASE WILL 'INDIGO SCRIPTS' OR IT'S OWNERS LIABILITY EXCEED
THE AMOUNT OF THE LICENSE FEE ACTUALLY PAID BY LICENSEE TO 'INDIGO SCRIPTS'
OR OWNERS.
Warning: This program is protected by copyright law and is registered with
the United States Copyright Office. Unauthorized reproduction or distribution
of this program, or any portion of it, may result in severe civil and criminal
penalties, and will be prosecuted to the maximum extent possible under the law.
For more information about this script or other scripts please visit
http://www.indigoscripts.com
Thank you for purchasing our script.
If you have any suggestions or ideas please direct them to info@indigoscripts.com
****************************************************************************/
include('include/version.inc.php');
require_once( 'include/Config.class.php');
$globalpath='';
$config='config.ini';
if (isset($_GET['configfile'])) $config=$_GET['configfile'];
if (!file_exists($config)) die ('Error reading config file');
$Config = new Config( $config,false,true);
$startheading=($Config->get('startheading','GALLERY'));
$bgcol=($Config->get('bgcol','GALLERY'));
if (isset($_GET['bgcol'])) $bgcol=$_GET['bgcol'];
if (!isset($bgcol)) $bgcol='FFFFFF';
$textcol=($Config->get('textcol','GALLERY'));
$vars=$Config->listKeys('GALLERY');
$varstr = '';
foreach ($vars as $var) {
$var=trim($var);
if(isset($_GET[$var]))
{
$vvar=$_GET[$var];
if (strlen ($varstr) > 1 and $vvar != '') $varstr .= '&';
$varstr .= $var . '=' . urlencode($vvar);
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?=$startheading;?></title>
<meta http-equiv="Content-Type" content="text/html">
<style type="text/css">
<!--
body {
background-color: #<?=$bgcol;?>;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<center>
<a href=""><img src="http://www.malcolminthemiddle.co.uk/mainbanner.jpg" alt="mainbanner.jpg" usemap="#mainbanner.jpg" style="border: 0;" /></a>
<map name="mainbanner.jpg">
<area shape="rect" coords="3,331,125,375" href="/forum" target="" alt="" />
<area shape="rect" coords="127,331,309,375" href="/episodes" target="" alt="" />
<area shape="rect" coords="311,331,459,375" href="/gallery" target="" alt="" />
<area shape="rect" coords="460,331,676,375" href="/?page_id=3" target="" alt="" />
<area shape="rect" coords="2,379,102,415" href="http://www.malcolminthemiddle.co.uk" target="" alt="" />
<area shape="rect" coords="104,379,170,415" href="/forum/faq.php" target="" alt="" />
<area shape="rect" coords="172,379,274,415" href="/?page_id=2" target="" alt="" />
<area shape="rect" coords="276,379,402,415" href="/?page_id=8" target="" alt="" />
</map>
</center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%" align="center">
<param name="menu" value="false">
<param name="movie" value="gallery.swf">
<param name="quality" value="High">
<param name="FLASHVARS" value="globalpath=<?=$globalpath;?>&textcol=<?=$textcol;?>&configfile=<?=$config;?>&<?php echo $varstr; ?>">
<embed src="gallery.swf" width="100%" height="100%" menu="false" quality="High" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#<?=$bgcol;?>" flashvars="globalpath=<?=$globalpath;?>&textcol=<?=$textcol;?>&configfile=<?=$config;?>&<?php echo $varstr; ?>"></embed></object>