PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.18
VikAppointments Services Booking Calendar v1.2.18
trunk 1.2.17 1.2.18 1.2.19
vikappointments / autoload.php
vikappointments Last commit date
admin 4 months ago languages 4 months ago libraries 4 months ago media 4 months ago modules 4 months ago site 4 months ago sql 4 months ago LICENSE 4 months ago autoload.php 4 months ago changelog.md 4 months ago defines.php 4 months ago readme.txt 4 months ago vikappointments.php 4 months ago
autoload.php
80 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage core
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 // include defines
15 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'defines.php';
16
17 // it is possible to inject debug=on in query string to force the error reporting to MAXIMUM
18 if (VIKAPPOINTMENTS_DEBUG || (isset($_GET['debug']) && $_GET['debug'] == 'on'))
19 {
20 error_reporting(E_ALL);
21 ini_set('display_errors', true);
22 }
23
24 // include internal loader if not exists
25 if (!class_exists('JLoader'))
26 {
27 require_once implode(DIRECTORY_SEPARATOR, [dirname(__FILE__), 'libraries', 'adapter', 'loader', 'loader.php']);
28
29 // setup auto-loader
30 JLoader::setup();
31
32 // setup base path
33 JLoader::$base = VIKAPPOINTMENTS_LIBRARIES;
34 }
35
36 // load framework dependencies
37 JLoader::import('adapter.acl.access');
38 JLoader::import('adapter.loader.utils');
39 JLoader::import('adapter.mvc.view');
40 JLoader::import('adapter.mvc.controller');
41 JLoader::import('adapter.factory.factory');
42 JLoader::import('adapter.html.html');
43 JLoader::import('adapter.input.input');
44 JLoader::import('adapter.output.filter');
45 JLoader::import('adapter.language.text');
46 JLoader::import('adapter.layout.helper');
47 JLoader::import('adapter.session.handler');
48 JLoader::import('adapter.application.route');
49 JLoader::import('adapter.application.version');
50 JLoader::import('adapter.uri.uri');
51 JLoader::import('adapter.toolbar.helper');
52 JLoader::import('adapter.editor.editor');
53 JLoader::import('adapter.date.date');
54 JLoader::import('adapter.component.helper');
55 JLoader::import('adapter.event.pluginhelper');
56 JLoader::import('adapter.event.dispatcher');
57 JLoader::import('adapter.database.table');
58 JLoader::import('adapter.session.session');
59 JLoader::import('adapter.http.http');
60 JLoader::import('adapter.cipher.crypto');
61 JLoader::import('adapter.usergroups.helper');
62
63 // import internal loader
64 JLoader::import('loader.loader', VIKAPPOINTMENTS_LIBRARIES);
65
66 // load plugin dependencies
67 VikAppointmentsLoader::import('layout.helper');
68 VikAppointmentsLoader::import('lite.manager');
69 VikAppointmentsLoader::import('system.body');
70 VikAppointmentsLoader::import('system.builder');
71 VikAppointmentsLoader::import('system.cron');
72 VikAppointmentsLoader::import('system.install');
73 VikAppointmentsLoader::import('system.screen');
74 VikAppointmentsLoader::import('system.feedback');
75 VikAppointmentsLoader::import('system.rssfeeds');
76 VikAppointmentsLoader::import('system.assets');
77
78 // invoke component auto-loader
79 VikAppointmentsLoader::import('site.helpers.libraries.autoload', VIKAPPOINTMENTS_BASE);
80