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("setup"); $html->show(); } } // Internal API Call Library class APICall { private $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_PATH . $path)) { $this->error("API Path invalid."); return false; } // Call API require API_PATH . $path; // Get return from the API Library $response = $api->getAnswer(); $this->response = $response; } }