From 4bfae911dba7871e8f737db4cd718078aa828532 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Sat, 4 Jan 2025 18:37:48 +0200 Subject: [PATCH] Reorganizes includes and helpers folders --- app/{helpers => includes}/database.php | 0 app/{helpers => includes}/errors.php | 0 app/includes/messages.php | 17 +++++++++++++++++ app/{helpers => includes}/sanitize.php | 0 public_html/index.php | 14 +++++++++++--- 5 files changed, 28 insertions(+), 3 deletions(-) rename app/{helpers => includes}/database.php (100%) rename app/{helpers => includes}/errors.php (100%) create mode 100644 app/includes/messages.php rename app/{helpers => includes}/sanitize.php (100%) diff --git a/app/helpers/database.php b/app/includes/database.php similarity index 100% rename from app/helpers/database.php rename to app/includes/database.php diff --git a/app/helpers/errors.php b/app/includes/errors.php similarity index 100% rename from app/helpers/errors.php rename to app/includes/errors.php diff --git a/app/includes/messages.php b/app/includes/messages.php new file mode 100644 index 0000000..58b95d5 --- /dev/null +++ b/app/includes/messages.php @@ -0,0 +1,17 @@ +getServerStatus($server_host, $server_port, $server_endpoint); if (!$server_status) { $error = 'The Jilo Server is not running. Some data may be old and incorrect.'; + Messages::get('SECURITY', 'RATE_LIMIT_INFO'); + Messages::render('SECURITY', 'RATE_LIMIT_INFO'); } }