Refactor API and database interactions: enhance token management, improve entry handling, and add application name retrieval
This commit is contained in:
1 parent
9316818753
commit
1a2ee0c176
10 files changed
+79
-19
No files matched your search
@@ -60,6 +60,12 @@ class HTMLLoader {
|
||||
$page = $json[$template];
|
||||
$html = file_get_contents(TEMPLATE_PATH . $page["dir_name"] . "/" . $page["html_file"]);
|
||||
|
||||
$app_name = file_get_contents("http://" . APP_DOMAIN . "/api/settings/appname.php");
|
||||
$app_name = json_decode($app_name, true);
|
||||
$app_name = $app_name["data"]["application_name"];
|
||||
|
||||
$html = str_replace("%appname%", $app_name, $html);
|
||||
|
||||
// Get CSS
|
||||
$css = "";
|
||||
|
||||
|
||||
Reference in new issue
Block a user