-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
46 lines (39 loc) · 1.57 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
38
39
40
41
42
43
44
45
46
<?php
/**
* Theamus -- a modular content management system that makes websites easy.
*
* PHP Version 5.5.3
* Version 1.3.1
* @package Theamus
* @link http://www.theamus.com/
* @author MMT (helllomatt) <mmt@itsfake.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
$time_start = microtime(true);
// Define any ini_set variables
ini_set("session.gc_maxlifetime", 7*24*60*60);
session_start(); // Start the session!
define("ROOT", dirname(__FILE__)); // Define the root of the system
require 'system/Theamus.php';
try {
$cli = php_sapi_name() == "cli" ? true : false;
$Theamus = new Theamus($cli);
if ($cli) $Theamus->CLI->run($argv);
else $Theamus->Call->handle_call(isset($_GET['params']) ? $_GET['params'] : "");
} catch (Exception $e) {
echo '<h2 style="color: #555; font-family: sans-serif; font-weight: normal; margin: 0; padding: 0;">'.$e->getMessage().'</h2>';
}
// Show the page load information
$Theamus->Call->show_page_information();