-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex1.php
41 lines (29 loc) · 1.15 KB
/
index1.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
38
39
40
41
<?php
ob_start();
session_start();
include_once("functions.inc.php");
$functions = new functions();
$stime = $functions->getmicrotime();
include_once("config.inc.php");
$config = new config();
if(!$config->installed) { header("location:start"); exit; }
//
if(function_exists("date_default_timezone_set")) date_default_timezone_set($config->site_timezone);
include_once("libs/mi.adodb.php");
$db = dbconn($config->db_host, $config->db_username, $config->db_password, $config->db_database, $config->db_type);
// $db->debug=1;
include_once("libs/mi.smarty.php");
$smarty = new MySmarty("libs/smarty");
$smarty->setTemplate($config->dir_template);
$smarty->setCache("caches");
$smarty->setPlugin("../../plugins");
include_once("template.inc.php");
$segment = array();
$uri = "";
$template = new template();
$template->content = preg_replace("/(\.\.\/)+/i", $config->site_url, $template->content);
$template->content = preg_replace("/\<\?PHP(.*)exit;(.*)\?\>\r\n/i", "", $template->content);
echo $template->content;
// echo "<p align='center'>System Execute ". round(($functions->getmicrotime()-$stime), 4). " Seconds.</p>";
ob_end_flush();
?>