-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlib.php
47 lines (37 loc) · 853 Bytes
/
lib.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
<?php
/*
Name: Lib.php
URI: http://ezrpgproject.net/
Author: UAKTags
Package: ezRPG-Core
*/
//This file cannot be viewed, it must be included
defined('IN_EZRPG') or exit;
//Functions
$func = array(
'log',
'rand',
'text',
'player',
'validate',
'security',
'modules'
);
foreach ($func as $item) {
$filename = LIB_DIR . '/functions/func.' . $item . '.php';
if (is_readable($filename)) {
require_once($filename);
}
}
function ezrpg_Autoloader($pClassName)
{
$class = str_replace("ezRPG\\lib\\", "", $pClassName);
if (file_exists(__DIR__ . "/lib/" . $class . ".php")) {
include(__DIR__ . "/lib/" . $class . ".php");
}
}
spl_autoload_register("ezrpg_Autoloader");
require_once(CUR_DIR . '/lib/Application.php');
//Constants
require_once(LIB_DIR . '/const.errors.php');
?>