forked from dr4g0nsr/radius-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
31 lines (26 loc) · 1.03 KB
/
Copy pathinit.php
File metadata and controls
31 lines (26 loc) · 1.03 KB
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
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to [email protected] so we can mail you a copy immediately.
*
* @author Dragutin Cirkovic <[email protected]>
* @copyright 2021-2021 CirkoTech
* @license http://www.php.net/license/3_01.txt PHP License 3.01
*/
// Set base dir
const RADIUS_SERVER_BASE = __DIR__;
// Constants
define("RADIUS_OFF", 0);
define("RADIUS_BASIC", 1);
define("RADIUS_CONNECTION", 2);
define("RADIUS_INFO", 3);
define("RADIUS_DEBUG", 4);
require_once RADIUS_SERVER_BASE.DIRECTORY_SEPARATOR.'config.php';
// Autoloader
spl_autoload_register(function ($class_name) {
require_once RADIUS_SERVER_BASE . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . $class_name . '.php';
});