Files
WrenchBoradWeb/www/backend.php
T
2021-11-04 21:56:17 -04:00

13 lines
357 B
PHP

<?
if (!array_key_exists('wrenchboard', $GLOBALS)) {
$USER = $_SERVER['SCRIPT_FILENAME'];
$USER = str_replace('/home', '', $USER);
$USER = strtok($USER, '/');
if ($USER=='opt') $USER = 'root';
// Load API class
$USER = 'oameye';
$wrenchboard_class = 'wrenchboard_api_' . $USER . '\\WrenchBoard';
$wrenchboard = new $wrenchboard_class();
}
?>