-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoload.php
More file actions
23 lines (20 loc) · 802 Bytes
/
autoload.php
File metadata and controls
23 lines (20 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* JavaHost OpenSID Module.
*
* @since 0.0.1
* @author Rizal Fauzie <rizal@fauzie.my.id>
* @copyright PT. Java Digital Nusantara © 2018
*/
setlocale(LC_ALL, 'id_ID');
// Base constant
define('JAVAPATH', __DIR__);
define('JAVADIR', 'vendor/java');
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
define('JAVAUPLOAD', FCPATH.'desa'.DS.'upload'.DS.'theme'.DS);
// Include everything on this module.
if(function_exists('get_instance')) get_instance()->load->add_package_path(JAVAPATH);
// Java Event listener required to load first.
if(!class_exists('Java_events')) include_once(JAVAPATH.'/libraries/Java_events.php');
// Java common function helper, need to load first for theme.
if(!function_exists('java_config')) include_once(JAVAPATH.'/helpers/java_helper.php');