<?php/*** Main file drives the gallery.** Do not include this file into another page; include external.php instead.** @package singapore* @author Tamlyn Rhodes <tam at zenology dot co dot uk>* @license http://opensource.org/licenses/gpl-license.php GNU General Public License* @copyright (c)2003, 2004 Tamlyn Rhodes* @version $Id: index.php,v 1.21 2006/08/05 19:56:32 thepavian Exp $*///include main classrequire_once "includes/singapore.class.php";//create a wrapper$sg = new Singapore();//set session arg separator to be xml compliantini_set("arg_separator.output", "&");//only start session if session is already registeredif(isset($_REQUEST[$sg->config->session_name])) {//start sessionsession_name($sg->config->session_name);@session_start();}//send content-type and character encoding header@header("Content-type: text/html; charset=".$sg->character_set);//pass control over to template@include $sg->config->base_path.$sg->config->pathto_current_template."index.tpl.php";?>