-
Notifications
You must be signed in to change notification settings - Fork 1
/
boost_autoload.php
95 lines (95 loc) · 4.81 KB
/
boost_autoload.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
95
<?php session_start(); ?>
<?php
ini_set('session.bug_compat_warn', 0);
ini_set('session.bug_compat_42', 0);
?>
<?php
require_once "boost_config.php";
$_SESSION['ses_abs_path'] = __DIR__;
$delmiter = "/";
if ($_SERVER['REMOTE_ADDR'] == "127.0.0.1") {
$delmiter = "\\";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "dbs.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "dbs.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "login_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "login_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "base.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "base.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "students_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "students_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "session_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "session_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "courses_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "courses_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "email_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "email_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "notifications_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "notifications_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "settings_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "settings_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "activity_log_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "activity_log_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "global_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "global_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "reports_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "reports_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "cron_jobs_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "cron_jobs_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "custom_scorm_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "custom_scorm_class.php";
}
if (is_file($_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "encryption_service_class.php")) {
require_once $_SESSION['ses_abs_path'] . $delmiter . "custom_classes" . $delmiter . "encryption_service_class.php";
}
$dt = date("Y-m-d");
$tm = date("H:i:s");
$ts = time();
$dt_tm = $dt . " " . $tm;
$dbs = new myDB($uname, $pwd, $dbs);
$dbsInst = new BASE($dbs->getObj());
$crsInst = new COURSE($dbs->getObj());
$stdInst = new STUDENT($dbs->getObj());
$emailInst = new EMAIL($dbs->getObj());
$sesInst = new SESSION($dbs->getObj());
$setInst = new SETTINGS($dbs->getObj());
$logInst = new ACTIVITY_LOG($dbs->getObj());
$ntfInst = new NOTIFICATION($dbs->getObj());
$glbInst = new GLOBALCLS($dbs->getObj());
$rptInst = new REPORTS($dbs->getObj());
$cronInst = new CRON_JOBS($dbs->getObj());
$scormInst = new CUSTOM_SCORM($dbs->getObj());
$_SESSION['SES_ROOT'] = ROOT;
$_SESSION['SES_ROOT_ADMIN'] = ROOT_ADMIN;
if (isset($_SESSION['admin_id'])) {
$admin_id = $_SESSION['admin_id'];
}
/*
if( $setInst->getKeyVal('http_link')['dataSet']=="https" ){
define('MODULE_SYM_LINK', "course_modules/");
define('PACKAGE_PATH' , "course_modules/");
}else{
define('MODULE_SYM_LINK', "launch-auth/");
define('PACKAGE_PATH' , "launch-auth/");
//define('MODULE_SYM_LINK', "course_modules/");
//define('PACKAGE_PATH' , "course_modules/");
}
*/
//define('MODULE_SYM_LINK', "launch-auth/");
//define('PACKAGE_PATH' , "launch-auth/");
define('MODULE_SYM_LINK', "course_modules/");
define('PACKAGE_PATH', "course_modules/");
?>