-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.php
More file actions
executable file
·65 lines (53 loc) · 1.46 KB
/
init.php
File metadata and controls
executable file
·65 lines (53 loc) · 1.46 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Pandora v1
* @license GPLv3 - http://www.opensource.org/licenses/GPL-3.0
* @copyright (c) 2012 KDE. All rights reserved.
*/
if (!defined('IN_PANDORA')) exit;
// Turn off error reporting
error_reporting(0);
// Set default timezone to UTC
date_default_timezone_set('UTC');
// Include classes
include_once('classes/class_gsod.php');
include_once('classes/class_config.php');
include_once('classes/class_core.php');
include_once('classes/class_db.php');
include_once('classes/class_user.php');
include_once('classes/class_lang.php');
include_once('classes/class_email.php');
include_once('classes/class_cache.php');
include_once('classes/class_skin.php');
include_once('classes/class_module.php');
include_once('classes/class_donut.php');
// We need to instantiate the GSoD class first, just in case!
$gsod = new gsod();
// Instantiate general classes
$config = new config();
$core = new core();
$db = new db();
$user = new user();
$lang = new lang();
$email = new email();
$cache = new cache();
$skin = new skin();
$module = new module();
$donut = new donut();
// Always use https
if ($core->get_protocol() == 'http://')
{
$core->redirect('https://' . $core->base_uri(false));
}
// Set up the db connection
$db->connect();
// Assign defaut variables
$skin->assign(array(
'root_path' => $core->path(),
'msg_visibility' => 'hidden',
));
// Perform cron tasks
include_once('cron.php');
// Verify user authentication
$user->verify();
?>