-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.php
94 lines (72 loc) · 3.44 KB
/
init.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
// *************************************************************************
// * *
// * DEPRIXA - Integrated Web system *
// * Copyright (c) JAOMWEB. All Rights Reserved *
// * *
// *************************************************************************
// * *
// * Email: [email protected] *
// * Website: http://www.jaom.info *
// * *
// *************************************************************************
// * *
// * This software is furnished under a license and may be used and copied *
// * only in accordance with the terms of such license and with the *
// * inclusion of the above copyright notice. *
// * If you Purchased from Codecanyon, Please read the full License from *
// * here- http://codecanyon.net/licenses/standard *
// * *
// *************************************************************************
if (!defined("_VALID_PHP"))
die('Direct access to this location is not allowed.');
session_start();
?>
<?php error_reporting(false);
$BASEPATH = str_replace("init.php", "", realpath(__FILE__));
define("BASEPATH", $BASEPATH);
$configFile = BASEPATH . "lib/config.ini.php";
if (file_exists($configFile)) {
require_once($configFile);
} else {
header("Location: setup/");
}
require_once(BASEPATH . "lib/class_db.php");
require_once(BASEPATH . "lib/NexmoMessage.php");
require_once(BASEPATH . "lib/Dbconexion.php");
require_once(BASEPATH . "lib/class_registry.php");
Registry::set('Database',new Database(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE));
$db = Registry::get("Database");
$db->connect();
//Include Functions
require_once(BASEPATH . "lib/functions.php");
require_once(BASEPATH . "lib/config.lang.php");
require_once(BASEPATH . "lib/class_filter.php");
$request = new Filter();
//Start Core Class
require_once(BASEPATH . "lib/class_core.php");
Registry::set('Core',new Core());
$core = Registry::get("Core");
//Start Paginator Class
require_once(BASEPATH . "lib/class_paginate.php");
$pager = Paginator::instance();
//StartUser Class
require_once(BASEPATH . "lib/class_user.php");
Registry::set('Users',new Users());
$user = Registry::get("Users");
//StartUser Class
require_once(BASEPATH . "lib/class_services.php");
Registry::set('Services',new Services());
$services = Registry::get("Services");
require_once(BASEPATH . "lib/business/class_packages.php");
Registry::set('Business_packages',new Packages());
$business_packages = Registry::get("Business_packages");
//StartUser Class
require_once(BASEPATH . "lib/class_courier.php");
Registry::set('Courier',new Courier());
$courier = Registry::get("Courier");
define("SITEURL", $core->site_url);
define("ADMINURL", $core->site_url."/dashboard");
define("UPLOADS", BASEPATH."uploads/");
define("UPLOADURL", SITEURL."/uploads/");
?>