initSetup(); } } function initSetup() { // Load and init the HTML Loader require "html_loader.php"; $html = new HTMLLoader(); // Set template to Setup an show it $html->setTemplate("standard"); $html->setPage("setup"); $html->show([], false); } } // Internal API Call Library class APICall { public $response; private $error; function __construct($path, $data = []) { // Set $internal to true so the api return does not go to the browser $internal = true; // Check Path if (!is_file(API_DIR . $path)) { $this->error("API Path invalid."); return false; } // Call API require API_DIR . $path; // Get return from the API Library $response = $api->getAnswer(); $this->response = $response; } }