This commit is contained in:
2019-10-02 10:48:28 -04:00
parent 6ecba2879c
commit c0b489a98d
21 changed files with 643 additions and 100 deletions
+11
View File
@@ -0,0 +1,11 @@
<?
if (!array_key_exists('jubabox', $GLOBALS)) {
$USER = $_SERVER['SCRIPT_FILENAME'];
$USER = str_replace('/home', '', $USER);
$USER = strtok($USER, '/');
if ($USER=='opt') $USER = 'root';
// Load API class
$jubabox_class = 'jubabox_api_' . $USER . '\\jubabox';
$jubabox = new $jubabox_class();
}
?>