-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
35 lines (26 loc) · 898 Bytes
/
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
<?php
//this is an auto-generated page by SyntaxDesktop
error_reporting(E_ALL & ~(E_NOTICE | E_DEPRECATED | E_WARNING));
ini_set('display_errors', 1);
header('Content-type: text/html; charset=utf-8');
header('X-UA-Compatible: IE=edge,chrome=1');
if(ini_get('date.timezone')=='')
date_default_timezone_set('Europe/Rome');
if (file_exists(dirname(__FILE__).'/public/config/cfg.php')) {
require('public/config/cfg.php');
// start session
s_start();
} else {
die('Is it the first time you run Syntax Desktop? If yes, run <a href="admin/setup.php">setup</a>.');
}
// check if we must redirect the page
// checkRedirects();
// Main
$pageId = getPageId();
$smarty = new synSmarty();
$smarty->setPage($pageId);
// enable gzip compression
//ob_start( 'ob_gzhandler' );
$smarty->display($smarty->synTemplate);
//ob_flush();
// EOF index.php