Files
better_guestbook/api/settings/appname.php
T

18 lines
365 B
PHP
Executable File

<?php
// Set internal to false so that the answer goes to the client
if (!isset($internal)) {
$internal = false;
define("API_DIR", "../");
}
// Load Main Library
require_once API_DIR . "api.php";
$api = new gbAPI(false, $internal);
// Get App Name
$result = $api->getSetting("application_name");
$api->answer(200, [
"application_name" => $result
]);