forked from tamlyn/singapore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (29 loc) · 1.01 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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 class
require_once "includes/singapore.class.php";
//create a wrapper
$sg = new Singapore();
//set session arg separator to be xml compliant
ini_set("arg_separator.output", "&");
//only start session if session is already registered
if(isset($_REQUEST[$sg->config->session_name])) {
//start session
session_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";
?>