Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
fix: undefined array key warnings for subscriptions with no seeded stats bucket (closes #1182)
Miguel Ribeiro41494ef54d2b
diff --git a/admin.php b/admin.phpindex 4724f9b..3ace79f 100644--- a/admin.php+++ b/admin.php@@ -362,11 +362,6 @@ $loginDisabledAllowed = $userCount == 1 && $settings['registrations_open'] == 0;placeholder="e.g., 192.168.1.5:8123, homeassistant.local" value="<?= htmlspecialchars($ssrfConfiguration['raw'], ENT_QUOTES, 'UTF-8') ?>" <?= oidc_input_attrs('allowlist', $ssrfManagedFields) ?> /></div>- <div class="buttons">- <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"- id="saveSecuritySettingsButton" onClick="saveSecuritySettingsButton()" />- </div>-<div class="settings-notes"><p><i class="fa-solid fa-circle-info"></i>@@ -383,6 +378,24 @@ $loginDisabledAllowed = $userCount == 1 && $settings['registrations_open'] == 0;</p><?php endif; ?></div>++ <div class="form-group-inline">+ <input type="checkbox" id="allow_standard_users_local_webhooks" name="allow_standard_users_local_webhooks"+ <?= $ssrfConfiguration['allow_standard_users'] ? 'checked' : '' ?> />+ <label for="allow_standard_users_local_webhooks"><?= translate('allow_standard_users_local_webhooks', $i18n) ?></label>+ </div>++ <div class="settings-notes">+ <p>+ <i class="fa-solid fa-triangle-exclamation" aria-hidden="true"></i>+ <?= translate('allow_standard_users_local_webhooks_info', $i18n) ?>+ </p>+ </div>++ <div class="buttons">+ <input type="submit" class="thin mobile-grow" value="<?= translate('save', $i18n) ?>"+ id="saveSecuritySettingsButton" onClick="saveSecuritySettingsButton()" />+ </div></div></section>diff --git a/api/admin/get_admin_settings.php b/api/admin/get_admin_settings.phpindex eb6f40b..8f6ff06 100644--- a/api/admin/get_admin_settings.php+++ b/api/admin/get_admin_settings.php@@ -29,7 +29,8 @@ Example response:"latest_version": "v1.0.0","update_notification": 1,"oidc_oauth_enabled": 0,- "local_webhook_notifications_allowlist": "localhost,127.0.0.1"+ "local_webhook_notifications_allowlist": "localhost,127.0.0.1",+ "allow_standard_users_local_webhooks": 0},"notes": []}diff --git a/api/admin/set_admin_settings.php b/api/admin/set_admin_settings.phpindex d4cf165..94a069a 100644--- a/api/admin/set_admin_settings.php+++ b/api/admin/set_admin_settings.php@@ -17,6 +17,7 @@ It receives the following parameters:- update_notification: (optional) '1' or '0' (check for wallos updates).- oidc_oauth_enabled: (optional) '1' or '0' (enable OIDC login).- local_webhook_notifications_allowlist: (optional) comma-separated IP/hosts allowlist.+- allow_standard_users_local_webhooks: (optional) '1' or '0' (let standard users target allowlisted internal addresses).It returns a JSON object with the following properties:- success: whether the request was successful (boolean).@@ -179,7 +180,8 @@ $columnsMap = ['login_disabled' => SQLITE3_INTEGER,'update_notification' => SQLITE3_INTEGER,'oidc_oauth_enabled' => SQLITE3_INTEGER,- 'local_webhook_notifications_allowlist' => SQLITE3_TEXT+ 'local_webhook_notifications_allowlist' => SQLITE3_TEXT,+ 'allow_standard_users_local_webhooks' => SQLITE3_INTEGER];if (wallos_get_effective_ssrf_allowlist($db)['is_managed']) {diff --git a/api/payment_methods/set_payment_methods.php b/api/payment_methods/set_payment_methods.phpindex 9f029e4..d4f3379 100644--- a/api/payment_methods/set_payment_methods.php+++ b/api/payment_methods/set_payment_methods.php@@ -369,6 +369,25 @@ switch ($action) {$enabled = ($_POST['enabled'] === '0' || $_POST['enabled'] === 0) ? 0 : 1;}+ if ($enabled == 0 && $paymentMethod['enabled'] == 1) {+ $checkUseSql = "SELECT COUNT(*) FROM subscriptions WHERE payment_method_id = :paymentId AND user_id = :userId";+ $checkUseStmt = $db->prepare($checkUseSql);+ $checkUseStmt->bindParam(':paymentId', $paymentId, SQLITE3_INTEGER);+ $checkUseStmt->bindParam(':userId', $userId, SQLITE3_INTEGER);+ $checkUseResult = $checkUseStmt->execute();+ $row = $checkUseResult->fetchArray();+ $count = $row[0] ?? 0;++ if ($count > 0) {+ echo json_encode([+ 'success' => false,+ 'title' => 'Payment method in use',+ 'message' => 'This payment method cannot be disabled because it is in use by one or more subscriptions.'+ ]);+ exit;+ }+ }+$icon = $paymentMethod['icon'];$iconUrl = $_POST['icon_url'] ?? $_POST['icon-url'] ?? '';diff --git a/endpoints/admin/savesecuritysettings.php b/endpoints/admin/savesecuritysettings.phpindex 22cf751..5b72a21 100644--- a/endpoints/admin/savesecuritysettings.php+++ b/endpoints/admin/savesecuritysettings.php@@ -25,11 +25,13 @@ if (wallos_get_effective_ssrf_allowlist($db)['is_managed']) {// Basic cleanup: trim whitespace and strip any accidental HTML tags$allowlist = trim(strip_tags($data['local_webhook_notifications_allowlist']));+$allowStandardUsers = !empty($data['allow_standard_users_local_webhooks']) ? 1 : 0;// Update the admin table (assuming id 1 is the primary settings row, as in your reference)-$sql = "UPDATE admin SET local_webhook_notifications_allowlist = :allowlist WHERE id = 1";+$sql = "UPDATE admin SET local_webhook_notifications_allowlist = :allowlist, allow_standard_users_local_webhooks = :allowStandardUsers WHERE id = 1";$stmt = $db->prepare($sql);$stmt->bindParam(':allowlist', $allowlist, SQLITE3_TEXT);+$stmt->bindParam(':allowStandardUsers', $allowStandardUsers, SQLITE3_INTEGER);$result = $stmt->execute();if ($result) {diff --git a/endpoints/payments/delete.php b/endpoints/payments/delete.phpindex 17ea67f..498aa35 100644--- a/endpoints/payments/delete.php+++ b/endpoints/payments/delete.php@@ -7,6 +7,21 @@ $input = file_get_contents('php://input');$data = json_decode($input, true);$paymentMethodId = $data["id"];++$checkStmt = $db->prepare('SELECT COUNT(*) as count FROM subscriptions WHERE payment_method_id = :paymentMethodId and user_id = :userId');+$checkStmt->bindParam(':paymentMethodId', $paymentMethodId, SQLITE3_INTEGER);+$checkStmt->bindParam(':userId', $userId, SQLITE3_INTEGER);+$checkResult = $checkStmt->execute();+$row = $checkResult->fetchArray();+$inUse = $row['count'] > 0;++if ($inUse) {+ header('Content-Type: application/json');+ echo json_encode(array("success" => false, "message" => translate('payment_in_use', $i18n)));+ $db->close();+ exit;+}+$deleteQuery = "DELETE FROM payment_methods WHERE id = :paymentMethodId and user_id = :userId";$deleteStmt = $db->prepare($deleteQuery);$deleteStmt->bindParam(':paymentMethodId', $paymentMethodId, SQLITE3_INTEGER);diff --git a/endpoints/payments/toggle.php b/endpoints/payments/toggle.phpindex b2a1dad..2e87365 100644--- a/endpoints/payments/toggle.php+++ b/endpoints/payments/toggle.php@@ -16,7 +16,7 @@ $stmt->bindValue(':paymentId', $paymentId, SQLITE3_INTEGER);$stmt->bindValue(':userId', $userId, SQLITE3_INTEGER);$result = $stmt->execute();$row = $result->fetchArray();-$inUse = $row['count'] === 1;+$inUse = $row['count'] > 0;if ($inUse) {die(json_encode([diff --git a/includes/getsettings.php b/includes/getsettings.phpindex d73e42e..5dfea3c 100644--- a/includes/getsettings.php+++ b/includes/getsettings.php@@ -1,5 +1,7 @@<?php+require_once __DIR__ . '/theme_helpers.php';+$query = "SELECT * FROM settings WHERE user_id = :userId";$stmt = $db->prepare($query);$stmt->bindValue(':userId', $userId, SQLITE3_INTEGER);@@ -12,7 +14,7 @@ if ($settings !== false) {$themeValue = $themeMapping[$themeKey];$settings['update_theme_setttings'] = false;if (isset($_COOKIE['inUseTheme']) && $settings['dark_theme'] == 2) {- $inUseTheme = $_COOKIE['inUseTheme'];+ $inUseTheme = sanitize_resolved_theme($_COOKIE['inUseTheme']);$settings['theme'] = $inUseTheme;} else {$settings['theme'] = $themeValue;diff --git a/includes/header.php b/includes/header.phpindex 4a28bc6..942efec 100644--- a/includes/header.php+++ b/includes/header.php@@ -105,10 +105,10 @@ $mobileNavigation = $settings['mobile_nav'] ? "mobile-navigation" : "";<script type="text/javascript" src="scripts/all.js?<?= $version ?>"></script><script type="text/javascript" src="scripts/common.js?<?= $version ?>"></script><script type="text/javascript">- window.theme = "<?= $theme ?>";+ window.theme = <?= json_encode($theme, JSON_HEX_TAG | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_HEX_APOS) ?>;window.update_theme_settings = "<?= $updateThemeSettings ?>";window.lang = "<?= $lang ?>";- window.colorTheme = "<?= $colorTheme ?>";+ window.colorTheme = <?= json_encode($colorTheme, JSON_HEX_TAG | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_HEX_APOS) ?>;window.mobileNavigation = "<?= $settings['mobileNavigation'] == "true" ?>";window.csrfToken = "<?= htmlspecialchars(generate_csrf_token()) ?>";</script>diff --git a/includes/i18n/ar.php b/includes/i18n/ar.phpindex 65dfdd0..48079a7 100644--- a/includes/i18n/ar.php+++ b/includes/i18n/ar.php@@ -448,6 +448,8 @@ $i18n = ["ssrf_protection_info" => "للوقاية من هجمات تزوير الطلبات من جانب الخادم (SSRF)، يحظر Wallos افتراضيًا إشعارات Webhook المرسلة إلى عناوين الشبكات الخاصة أو الداخلية.","local_webhook_info" => "إذا احتجت إلى إرسال Webhooks إلى خدمات محلية (مثل Home Assistant أو Gotify أو Node-RED)، فأدخل عناوين IP أو أسماء المضيفين أعلاه في قائمة مفصولة بفواصل (مثل: <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "يتم التحكم به عبر متغير البيئة SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "السماح للمستخدمين العاديين باستخدام القائمة البيضاء للـ Webhook",+ "allow_standard_users_local_webhooks_info" => "تحذير أمني: تفعيل هذا الخيار يسمح لكل مستخدم عادي (غير المسؤول) بإرسال إشعارات إلى العناوين الموجودة في القائمة البيضاء للـ Webhook أعلاه، بما في ذلك الخدمات الداخلية على شبكتك. لا تُفعّل هذا الخيار إلا إذا كنت تثق بكل مستخدم في هذا التطبيق.","maintenance_tasks" => "مهام الصيانة","orphaned_logos" => "الشعارات غير المرتبطة","update" => "تحديث",diff --git a/includes/i18n/ca.php b/includes/i18n/ca.phpindex 7ac392d..c5851d8 100644--- a/includes/i18n/ca.php+++ b/includes/i18n/ca.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "Per evitar atacs de Server-Side Request Forgery (SSRF), Wallos bloqueja per defecte les notificacions webhook a adreces de xarxa privades o internes.","local_webhook_info" => "Si necessiteu enviar webhooks a serveis locals (com Home Assistant, Gotify o Node-RED), introduïu les seves adreces IP o noms d'amfitrió anteriorment com una llista separada per comes (p. ex., <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Gestionat per la variable d'entorn SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Permet als usuaris estàndard utilitzar la llista blanca de Webhooks",+ "allow_standard_users_local_webhooks_info" => "Risc de seguretat: en activar-ho, qualsevol usuari estàndard (no administrador) podrà enviar notificacions a les adreces de la llista blanca de Webhooks anterior, incloent serveis interns de la vostra xarxa. Activeu-ho només si confieu en tots els usuaris d\'aquesta instància de Wallos.","maintenance_tasks" => "Tasques de Manteniment","orphaned_logos" => "Logotips orfes","update" => "Actualitzar",diff --git a/includes/i18n/cs.php b/includes/i18n/cs.phpindex 9074975..3b87cf6 100644--- a/includes/i18n/cs.php+++ b/includes/i18n/cs.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "Aby se předešlo útokům Server-Side Request Forgery (SSRF), Wallos ve výchozím nastavení blokuje webhook notifikace směrem na soukromé nebo interní síťové adresy.","local_webhook_info" => "Pokud potřebujete posílat webhooks na lokální služby (např. Home Assistant, Gotify nebo Node-RED), zadejte jejich IP adresy nebo názvy hostitelů výše jako seznam oddělený čárkami (např. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Řízeno proměnnou prostředí SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Povolit standardním uživatelům používat seznam povolených webhooků",+ "allow_standard_users_local_webhooks_info" => "Bezpečnostní riziko: povolením tohoto nastavení umožníte každému standardnímu (neadministrátorskému) uživateli odesílat oznámení na adresy uvedené výše v seznamu povolených webhooků, včetně interních služeb ve vaší síti. Povolte to pouze v případě, že důvěřujete všem uživatelům této instance Wallos.","maintenance_tasks" => "Úkoly údržby","orphaned_logos" => "Osiřelá loga","update" => "Aktualizace",diff --git a/includes/i18n/da.php b/includes/i18n/da.phpindex 6e0b121..b5beda6 100644--- a/includes/i18n/da.php+++ b/includes/i18n/da.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "For at forhindre Server-Side Request Forgery (SSRF) angreb blokerer Wallos som standard webhook-notifikationer til private eller interne netværksadresser.","local_webhook_info" => "Hvis du skal sende webhooks til lokale tjenester (som Home Assistant, Gotify eller Node-RED), indtast deres IP-adresser eller værtsnavne ovenfor som en kommasepareret liste (fx <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Administreres af miljøvariablen SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Tillad standardbrugere at bruge webhook-tilladelseslisten",+ "allow_standard_users_local_webhooks_info" => "Sikkerhedsrisiko: hvis dette aktiveres, kan alle standardbrugere (ikke-administratorer) sende notifikationer til adresserne på webhook-tilladelseslisten ovenfor, herunder interne tjenester på dit netværk. Aktiver kun dette, hvis du stoler på alle brugere på denne Wallos-instans.","smtp_usage_info" => "Vil blive brugt til adgangskodenulstilling og andre systemmails.",// Maintenance Tasks"maintenance_tasks" => "Vedligeholdelsesopgaver",diff --git a/includes/i18n/de.php b/includes/i18n/de.phpindex ef64fb8..07524bd 100644--- a/includes/i18n/de.php+++ b/includes/i18n/de.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Um Server-Side Request Forgery (SSRF)-Angriffe zu verhindern, blockiert Wallos standardmäßig Webhook-Benachrichtigungen an private oder interne Netzwerkadressen.","local_webhook_info" => "Wenn Sie Webhooks an lokale Dienste (z. B. Home Assistant, Gotify oder Node-RED) senden müssen, geben Sie deren IP-Adressen oder Hostnamen oben als durch Kommas getrennte Liste ein (z. B. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Wird durch die Umgebungsvariable SSRF_ALLOWLIST verwaltet.",+ "allow_standard_users_local_webhooks" => "Standardbenutzern erlauben, die Webhook-Zulassungsliste zu verwenden",+ "allow_standard_users_local_webhooks_info" => "Sicherheitsrisiko: Wenn Sie dies aktivieren, kann jeder Standardbenutzer (kein Administrator) Benachrichtigungen an die oben in der Webhook-Zulassungsliste angegebenen Adressen senden, einschließlich interner Dienste in Ihrem Netzwerk. Aktivieren Sie dies nur, wenn Sie jedem Benutzer dieser Wallos-Instanz vertrauen.","maintenance_tasks" => "Wartungsaufgaben","orphaned_logos" => "Verwaiste Logos","update" => "Update",diff --git a/includes/i18n/el.php b/includes/i18n/el.phpindex 2f5c7bf..eade49f 100644--- a/includes/i18n/el.php+++ b/includes/i18n/el.php@@ -417,6 +417,8 @@ $i18n = ["ssrf_protection_info" => "Για να αποτρέψετε επιθέσεις Server-Side Request Forgery (SSRF), το Wallos αποκλείει από προεπιλογή τις ειδοποιήσεις webhook σε ιδιωτικές ή εσωτερικές διευθύνσεις δικτύου.","local_webhook_info" => "Εάν πρέπει να στείλετε webhooks σε τοπικές υπηρεσίες (όπως Home Assistant, Gotify ή Node-RED), εισάγετε τις διευθύνσεις IP ή τα ονόματα κεντρικού υπολογιστή τους παραπάνω ως λίστα χωρισμένη με κόμματα (π.χ. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Διαχειρίζεται από τη μεταβλητή περιβάλλοντος SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Να επιτρέπεται στους απλούς χρήστες η χρήση της λίστας επιτρεπόμενων Webhook",+ "allow_standard_users_local_webhooks_info" => "Κίνδυνος ασφαλείας: η ενεργοποίηση αυτού επιτρέπει σε κάθε απλό χρήστη (μη διαχειριστή) να στέλνει ειδοποιήσεις στις διευθύνσεις της παραπάνω λίστας επιτρεπόμενων Webhook, συμπεριλαμβανομένων εσωτερικών υπηρεσιών στο δίκτυό σας. Ενεργοποιήστε το μόνο αν εμπιστεύεστε κάθε χρήστη αυτής της εγκατάστασης Wallos.","smtp_usage_info" => "Θα χρησιμοποιηθεί για ανάκτηση κωδικού πρόσβασης και άλλα μηνύματα ηλεκτρονικού ταχυδρομείου συστήματος.","maintenance_tasks" => "Εργασίες συντήρησης","orphaned_logos" => "Ορφανά λογότυπα",diff --git a/includes/i18n/en.php b/includes/i18n/en.phpindex 89c1206..44d92bb 100644--- a/includes/i18n/en.php+++ b/includes/i18n/en.php@@ -450,6 +450,8 @@ $i18n = ["ssrf_protection_info" => "To prevent Server-Side Request Forgery (SSRF) attacks, Wallos blocks webhook notifications to private or internal network addresses by default.","local_webhook_info" => "If you need to send webhooks to local services (like Home Assistant, Gotify, or Node-RED), enter their IP addresses or hostnames above as a comma-separated list (e.g., <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Managed by the SSRF_ALLOWLIST environment variable.",+ "allow_standard_users_local_webhooks" => "Allow standard users to use the Webhook Allowlist",+ "allow_standard_users_local_webhooks_info" => "Security risk: enabling this lets every standard (non-admin) user send notifications to the addresses in the Webhook Allowlist above, including internal services on your network. Only enable this if you trust every user on this Wallos instance.","maintenance_tasks" => "Maintenance Tasks","orphaned_logos" => "Orphaned Logos","update" => "Update",diff --git a/includes/i18n/es.php b/includes/i18n/es.phpindex 94d51dd..5f2e39c 100644--- a/includes/i18n/es.php+++ b/includes/i18n/es.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Para evitar ataques de falsificación de solicitudes del lado del servidor (SSRF), Wallos bloquea por defecto las notificaciones webhook a direcciones de red privadas o internas.","local_webhook_info" => "Si necesita enviar webhooks a servicios locales (como Home Assistant, Gotify o Node-RED), introduzca sus direcciones IP o nombres de host arriba como una lista separada por comas (p. ej., <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Gestionado por la variable de entorno SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Permitir que los usuarios estándar usen la lista blanca de Webhooks",+ "allow_standard_users_local_webhooks_info" => "Riesgo de seguridad: al activar esto, cualquier usuario estándar (no administrador) podrá enviar notificaciones a las direcciones de la lista blanca de Webhooks anterior, incluidos los servicios internos de su red. Actívelo solo si confía en todos los usuarios de esta instancia de Wallos.","maintenance_tasks" => "Tareas de Mantenimiento","orphaned_logos" => "Logotipos huérfanos","update" => "Actualizar",diff --git a/includes/i18n/fr.php b/includes/i18n/fr.phpindex bc9768f..077964a 100644--- a/includes/i18n/fr.php+++ b/includes/i18n/fr.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Pour prévenir les attaques Server-Side Request Forgery (SSRF), Wallos bloque par défaut les notifications webhook vers des adresses réseau privées ou internes.","local_webhook_info" => "Si vous devez envoyer des webhooks vers des services locaux (comme Home Assistant, Gotify ou Node-RED), saisissez leurs adresses IP ou noms d'hôte ci-dessus sous forme d'une liste séparée par des virgules (par ex. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Géré par la variable d'environnement SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Autoriser les utilisateurs standard à utiliser la liste blanche des Webhooks",+ "allow_standard_users_local_webhooks_info" => "Risque de sécurité : activer cette option permet à tout utilisateur standard (non administrateur) d\'envoyer des notifications aux adresses de la liste blanche des Webhooks ci-dessus, y compris les services internes de votre réseau. N\'activez ceci que si vous faites confiance à tous les utilisateurs de cette instance Wallos.","maintenance_tasks" => "Tâches de maintenance","orphaned_logos" => "Logos orphelins","update" => "Mise à jour",diff --git a/includes/i18n/hu.php b/includes/i18n/hu.phpindex 68bb7dc..73ba82a 100644--- a/includes/i18n/hu.php+++ b/includes/i18n/hu.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "A Server-Side Request Forgery (SSRF) támadások megelőzése érdekében a Wallos alapértelmezés szerint blokkolja a privát vagy belső hálózati címekre küldött webhook értesítéseket.","local_webhook_info" => "Ha webhookokat kell küldenie helyi szolgáltatásoknak (mint a Home Assistant, Gotify vagy Node-RED), adja meg IP-címeiket vagy gazdagépneveiket fentebb vesszővel elválasztva (pl. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Az SSRF_ALLOWLIST környezeti változó kezeli.",+ "allow_standard_users_local_webhooks" => "Normál felhasználók számára engedélyezze a Webhook engedélyezési lista használatát",+ "allow_standard_users_local_webhooks_info" => "Biztonsági kockázat: ennek engedélyezésével minden normál (nem admin) felhasználó értesítéseket küldhet a fenti Webhook engedélyezési listán szereplő címekre, beleértve a hálózaton belüli szolgáltatásokat is. Csak akkor engedélyezze, ha megbízik a Wallos-példány összes felhasználójában.","maintenance_tasks" => "Karbantartási feladatok","orphaned_logos" => "Árva logók","update" => "Frissítés",diff --git a/includes/i18n/id.php b/includes/i18n/id.phpindex 091cd1a..eba61e5 100644--- a/includes/i18n/id.php+++ b/includes/i18n/id.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "Untuk mencegah serangan Server-Side Request Forgery (SSRF), Wallos secara default memblokir notifikasi webhook ke alamat jaringan pribadi atau internal.","local_webhook_info" => "Jika Anda perlu mengirim webhook ke layanan lokal (seperti Home Assistant, Gotify, atau Node-RED), masukkan alamat IP atau nama host mereka di atas sebagai daftar yang dipisahkan koma (mis., <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Dikelola oleh variabel lingkungan SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Izinkan pengguna standar menggunakan Daftar Izin Webhook",+ "allow_standard_users_local_webhooks_info" => "Risiko keamanan: mengaktifkan ini memungkinkan setiap pengguna standar (bukan admin) mengirim notifikasi ke alamat dalam Daftar Izin Webhook di atas, termasuk layanan internal di jaringan Anda. Aktifkan ini hanya jika Anda memercayai setiap pengguna di instance Wallos ini.","maintenance_tasks" => "Tugas Pemeliharaan","orphaned_logos" => "Logo Yatim Piatu","update" => "Perbarui",diff --git a/includes/i18n/it.php b/includes/i18n/it.phpindex bc54ce9..6988ae7 100644--- a/includes/i18n/it.php+++ b/includes/i18n/it.php@@ -437,6 +437,8 @@ $i18n = ["ssrf_protection_info" => "Per prevenire attacchi Server-Side Request Forgery (SSRF), Wallos blocca per impostazione predefinita le notifiche webhook verso indirizzi di rete privati o interni.","local_webhook_info" => "Se è necessario inviare webhook a servizi locali (come Home Assistant, Gotify o Node-RED), inserisci i loro indirizzi IP o nomi host sopra come elenco separato da virgole (ad es. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Gestito dalla variabile d'ambiente SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Consenti agli utenti standard di usare la Whitelist dei Webhook",+ "allow_standard_users_local_webhooks_info" => "Rischio per la sicurezza: abilitando questa opzione, ogni utente standard (non amministratore) potrà inviare notifiche agli indirizzi presenti nella Whitelist dei Webhook sopra, inclusi i servizi interni della tua rete. Abilita questa opzione solo se ti fidi di tutti gli utenti di questa istanza di Wallos.","maintenance_tasks" => "Compiti di manutenzione","orphaned_logos" => "Loghi orfani","update" => "Aggiorna",diff --git a/includes/i18n/ja.php b/includes/i18n/ja.phpindex f41aabb..8e14aeb 100644--- a/includes/i18n/ja.php+++ b/includes/i18n/ja.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "Server-Side Request Forgery(SSRF)攻撃を防ぐために、Wallosはデフォルトでプライベートまたは内部ネットワークアドレスへのWebhook通知をブロックします。","local_webhook_info" => "Home Assistant、Gotify、Node-REDなどのローカルサービスにWebhookを送信する必要がある場合は、それらのIPアドレスまたはホスト名を上記にカンマ区切りで入力してください(例:<code>192.168.1.100,192.168.1.101</code>)。","ssrf_allowlist_env_managed" => "SSRF_ALLOWLIST 環境変数によって管理されています。",+ "allow_standard_users_local_webhooks" => "標準ユーザーによる Webhook 許可リストの使用を許可する",+ "allow_standard_users_local_webhooks_info" => "セキュリティリスク: これを有効にすると、すべての標準ユーザー(管理者以外)が上記の Webhook 許可リストに記載されたアドレス(ネットワーク内の内部サービスを含む)に通知を送信できるようになります。この Wallos インスタンスのすべてのユーザーを信頼できる場合にのみ有効にしてください。","maintenance_tasks" => "メンテナンスタスク","orphaned_logos" => "孤立したロゴ","update" => "更新",diff --git a/includes/i18n/ko.php b/includes/i18n/ko.phpindex 31358ed..f723f79 100644--- a/includes/i18n/ko.php+++ b/includes/i18n/ko.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "서버 측 요청 위조(SSRF) 공격을 방지하기 위해 Wallos는 기본적으로 개인 또는 내부 네트워크 주소로의 webhook 알림을 차단합니다.","local_webhook_info" => "Home Assistant, Gotify 또는 Node-RED와 같은 로컬 서비스로 webhook을 보내야 하는 경우 해당 IP 주소 또는 호스트 이름을 위에 쉼표로 구분된 목록으로 입력하세요(예: <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "SSRF_ALLOWLIST 환경 변수로 관리됩니다.",+ "allow_standard_users_local_webhooks" => "일반 사용자가 웹훅 허용 목록을 사용할 수 있도록 허용",+ "allow_standard_users_local_webhooks_info" => "보안 위험: 이 옵션을 활성화하면 모든 일반(비관리자) 사용자가 위의 웹훅 허용 목록에 있는 주소(네트워크 내부 서비스 포함)로 알림을 보낼 수 있습니다. 이 Wallos 인스턴스의 모든 사용자를 신뢰하는 경우에만 활성화하세요.","maintenance_tasks" => "유지보수 작업","orphaned_logos" => "고아 로고","update" => "업데이트",diff --git a/includes/i18n/nl.php b/includes/i18n/nl.phpindex 8607137..35569b2 100644--- a/includes/i18n/nl.php+++ b/includes/i18n/nl.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "Om Server-Side Request Forgery (SSRF) aanvallen te voorkomen, blokkeert Wallos standaard webhookmeldingen naar privé- of interne netwerkadressen.","local_webhook_info" => "Als u webhooks naar lokale services moet sturen (zoals Home Assistant, Gotify of Node-RED), voer dan hun IP-adressen of hostnamen hierboven in als een door komma's gescheiden lijst (bijv. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Wordt beheerd door de omgevingsvariabele SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Sta standaardgebruikers toe de Webhook-toegangslijst te gebruiken",+ "allow_standard_users_local_webhooks_info" => "Beveiligingsrisico: als u dit inschakelt, kan elke standaardgebruiker (geen beheerder) meldingen sturen naar de adressen in de bovenstaande Webhook-toegangslijst, inclusief interne diensten op uw netwerk. Schakel dit alleen in als u alle gebruikers van deze Wallos-instantie vertrouwt.","maintenance_tasks" => "Onderhoudstaken","orphaned_logos" => "Ongebruikte logo's","update" => "Bijwerken",diff --git a/includes/i18n/pl.php b/includes/i18n/pl.phpindex 26dac60..7e01422 100644--- a/includes/i18n/pl.php+++ b/includes/i18n/pl.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Aby zapobiec atakom Server-Side Request Forgery (SSRF), Wallos domyślnie blokuje powiadomienia webhook wysyłane na prywatne lub wewnętrzne adresy sieciowe.","local_webhook_info" => "Jeśli musisz wysyłać webhooki do lokalnych usług (np. Home Assistant, Gotify lub Node-RED), wprowadź ich adresy IP lub nazwy hostów powyżej jako listę oddzieloną przecinkami (np. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Zarządzane przez zmienną środowiskową SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Zezwól standardowym użytkownikom na korzystanie z listy dozwolonych Webhooków",+ "allow_standard_users_local_webhooks_info" => "Ryzyko bezpieczeństwa: włączenie tej opcji pozwoli każdemu standardowemu (nie administratorowi) użytkownikowi wysyłać powiadomienia na adresy znajdujące się na powyższej liście dozwolonych Webhooków, w tym do wewnętrznych usług w Twojej sieci. Włącz to tylko wtedy, gdy ufasz każdemu użytkownikowi tej instancji Wallos.","maintenance_tasks" => "Zadania konserwacyjne","orphaned_logos" => "Osierocone logo","update" => "Aktualizacja",diff --git a/includes/i18n/pt.php b/includes/i18n/pt.phpindex 0a212fd..a1a788f 100644--- a/includes/i18n/pt.php+++ b/includes/i18n/pt.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Para evitar ataques Server-Side Request Forgery (SSRF), o Wallos bloqueia por padrão notificações webhook para endereços de rede privados ou internos.","local_webhook_info" => "Se precisar enviar webhooks para serviços locais (como Home Assistant, Gotify ou Node-RED), insira seus endereços IP ou nomes de host acima como uma lista separada por vírgulas (por exemplo <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Gerido pela variável de ambiente SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Permitir que utilizadores padrão usem a Lista de Permissões de Webhook",+ "allow_standard_users_local_webhooks_info" => "Risco de segurança: ativar esta opção permite que qualquer utilizador padrão (não administrador) envie notificações para os endereços na Lista de Permissões de Webhook acima, incluindo serviços internos da sua rede. Ative apenas se confiar em todos os utilizadores desta instância do Wallos.","maintenance_tasks" => "Tarefas de Manutenção","orphaned_logos" => "Logos Órfãos","update" => "Actualizar",diff --git a/includes/i18n/pt_br.php b/includes/i18n/pt_br.phpindex bfa296a..4fb7bfb 100644--- a/includes/i18n/pt_br.php+++ b/includes/i18n/pt_br.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Para evitar ataques Server-Side Request Forgery (SSRF), o Wallos bloqueia por padrão notificações webhook para endereços de rede privados ou internos.","local_webhook_info" => "Se precisar enviar webhooks para serviços locais (como Home Assistant, Gotify ou Node-RED), insira seus endereços IP ou nomes de host acima como uma lista separada por vírgulas (por exemplo <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Gerenciado pela variável de ambiente SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Permitir que usuários padrão usem a Lista de Permissões de Webhook",+ "allow_standard_users_local_webhooks_info" => "Risco de segurança: ativar esta opção permite que qualquer usuário padrão (não administrador) envie notificações para os endereços na Lista de Permissões de Webhook acima, incluindo serviços internos da sua rede. Ative isso apenas se você confia em todos os usuários desta instância do Wallos.","maintenance_tasks" => "Tarefas de manutenção","orphaned_logos" => "Logos órfãos","update" => "Atualizar",diff --git a/includes/i18n/ro.php b/includes/i18n/ro.phpindex e8efd99..ce75934 100644--- a/includes/i18n/ro.php+++ b/includes/i18n/ro.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "Pentru a preveni atacurile de tip Server-Side Request Forgery (SSRF), Wallos blochează în mod implicit notificările webhook către adrese de rețea private sau interne.","local_webhook_info" => "Dacă trebuie să trimți webhook-uri către servicii locale (cum ar fi Home Assistant, Gotify sau Node-RED), introdu adresele IP sau numele de gazdă ale acestora mai sus, sub forma unei liste separate prin virgule (de exemplu, <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Gestionat de variabila de mediu SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Permite utilizatorilor standard să folosească lista albă de Webhook-uri",+ "allow_standard_users_local_webhooks_info" => "Risc de securitate: activarea acestei opțiuni permite oricărui utilizator standard (neadministrator) să trimită notificări către adresele din lista albă de Webhook-uri de mai sus, inclusiv servicii interne din rețeaua dumneavoastră. Activați acest lucru doar dacă aveți încredere în toți utilizatorii acestei instanțe Wallos.","maintenance_tasks" => "Sarcini întreținere","orphaned_logos" => "Logo-uri fără uz","update" => "Actualizare",diff --git a/includes/i18n/ru.php b/includes/i18n/ru.phpindex e0fc37b..641ca08 100644--- a/includes/i18n/ru.php+++ b/includes/i18n/ru.php@@ -419,6 +419,8 @@ $i18n = ["ssrf_protection_info" => "Чтобы предотвратить атаки Server-Side Request Forgery (SSRF), Wallos по умолчанию блокирует уведомления webhook на приватные или внутренние сетевые адреса.","local_webhook_info" => "Если вам нужно отправлять вебхуки на локальные сервисы (например, Home Assistant, Gotify или Node-RED), введите их IP-адреса или имена хостов выше через запятую (например <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Управляется переменной окружения SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Разрешить обычным пользователям использовать список разрешённых адресов для вебхуков",+ "allow_standard_users_local_webhooks_info" => "Риск безопасности: включение этой опции позволит любому обычному (не администратору) пользователю отправлять уведомления на адреса из списка разрешённых адресов для вебхуков выше, включая внутренние службы вашей сети. Включайте это только если вы доверяете всем пользователям этого экземпляра Wallos.","smtp_usage_info" => "Будет использоваться для восстановления пароля и других системных писем.","maintenance_tasks" => "Задачи обслуживания","orphaned_logos" => "Потерянные логотипы",diff --git a/includes/i18n/sl.php b/includes/i18n/sl.phpindex a2274f4..3cfe169 100644--- a/includes/i18n/sl.php+++ b/includes/i18n/sl.php@@ -413,6 +413,8 @@ $i18n = ["ssrf_protection_info" => "Za preprečevanje napadov Server-Side Request Forgery (SSRF) Wallos privzeto blokira webhook obvestila na zasebne ali notranje omrežne naslove.","local_webhook_info" => "Če morate pošiljati webhooke na lokalne storitve (npr. Home Assistant, Gotify ali Node-RED), vnesite njihove IP naslove ali imena gostiteljev zgoraj kot seznam, ločen z vejico (npr. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Upravljano s spremenljivko okolja SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Dovoli standardnim uporabnikom uporabo seznama dovoljenih naslovov za Webhook",+ "allow_standard_users_local_webhooks_info" => "Varnostno tveganje: če to omogočite, bo lahko vsak standardni (neadministratorski) uporabnik pošiljal obvestila na naslove s seznama dovoljenih naslovov za Webhook zgoraj, vključno z notranjimi storitvami v vašem omrežju. To omogočite samo, če zaupate vsem uporabnikom tega primerka Wallosa.","maintenance_tasks" => "Vzdrževalne naloge","orphaned_logos" => "Osamljeni logotipi","update" => "Posodobi",diff --git a/includes/i18n/sr.php b/includes/i18n/sr.phpindex 426bc36..c2cec47 100644--- a/includes/i18n/sr.php+++ b/includes/i18n/sr.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Како би се спречили напади Server-Side Request Forgery (SSRF), Wallos подразумевано блокира webhook обавештења ка приватним или унутрашњим мрежним адресама.","local_webhook_info" => "Ако треба да шаљете вебхуке ка локалним сервисима (нпр. Home Assistant, Gotify или Node-RED), унесите њихове IP адресе или имена хостова горе, одвојене зарезима (нпр. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Управља се преко променљиве окружења SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Дозволи стандардним корисницима да користе листу дозвољених Webhook адреса",+ "allow_standard_users_local_webhooks_info" => "Безбедносни ризик: укључивањем овога, сваки стандардни (не-администраторски) корисник ће моћи да шаље обавештења на адресе са горње листе дозвољених Webhook адреса, укључујући интерне сервисе у вашој мрежи. Укључите ово само ако верујете свим корисницима ове Wallos инстанце.","maintenance_tasks" => "Одржавање","orphaned_logos" => "Породични логотипови","update" => "Ажурирај",diff --git a/includes/i18n/sr_lat.php b/includes/i18n/sr_lat.phpindex 83c8be2..ee1609a 100644--- a/includes/i18n/sr_lat.php+++ b/includes/i18n/sr_lat.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Kako bi se sprečile Server-Side Request Forgery (SSRF) napadi, Wallos podrazumevano blokira webhook obaveštenja ka privatnim ili internim mrežnim adresama.","local_webhook_info" => "Ako treba da šaljete webhooks ka lokalnim servisima (npr. Home Assistant, Gotify ili Node-RED), unesite njihove IP adrese ili imena hostova gore, odvojene zarezima (npr. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Upravlja se preko promenljive okruženja SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Dozvoli standardnim korisnicima da koriste listu dozvoljenih Webhook adresa",+ "allow_standard_users_local_webhooks_info" => "Bezbednosni rizik: uključivanjem ovoga, svaki standardni (ne-administratorski) korisnik će moći da šalje obaveštenja na adrese sa gornje liste dozvoljenih Webhook adresa, uključujući interne servise u vašoj mreži. Uključite ovo samo ako verujete svim korisnicima ove Wallos instance.","maintenance_tasks" => "Održavanje","orphaned_logos" => "Nepovezani logotipi","update" => "Ažuriraj",diff --git a/includes/i18n/tr.php b/includes/i18n/tr.phpindex 840a9ce..da5ca40 100644--- a/includes/i18n/tr.php+++ b/includes/i18n/tr.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Sunucu tarafı istek sahteciliği (SSRF) saldırılarını önlemek için Wallos, varsayılan olarak webhook bildirimlerini özel veya dahili ağ adreslerine engeller.","local_webhook_info" => "Webhooks'u yerel hizmetlere (ör. Home Assistant, Gotify veya Node-RED) göndermeniz gerekiyorsa, IP adreslerini veya ana bilgisayar adlarını yukarıya virgülle ayrılmış bir liste olarak girin (ör. <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "SSRF_ALLOWLIST ortam değişkeni tarafından yönetilir.",+ "allow_standard_users_local_webhooks" => "Standart kullanıcıların Webhook İzin Listesini kullanmasına izin ver",+ "allow_standard_users_local_webhooks_info" => "Güvenlik riski: bunu etkinleştirmek, her standart (yönetici olmayan) kullanıcının ağınızdaki dahili hizmetler dahil olmak üzere yukarıdaki Webhook İzin Listesindeki adreslere bildirim göndermesine izin verir. Bunu yalnızca bu Wallos örneğindeki her kullanıcıya güveniyorsanız etkinleştirin.","maintenance_tasks" => "Bakım Görevleri","orphaned_logos" => "Yetim Logolar","update" => "Güncelle",diff --git a/includes/i18n/uk.php b/includes/i18n/uk.phpindex 92fc896..0628cca 100644--- a/includes/i18n/uk.php+++ b/includes/i18n/uk.php@@ -420,6 +420,8 @@ $i18n = ["ssrf_protection_info" => "Щоб запобігти атакам Server-Side Request Forgery (SSRF), Wallos за замовчуванням блокує вебхуки до приватних або внутрішніх мережевих адрес.","local_webhook_info" => "Якщо вам потрібно надсилати вебхуки до локальних сервісів (наприклад, Home Assistant, Gotify або Node-RED), введіть їх IP-адреси або імена хостів вище як список, розділений комами (наприклад <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Керується змінною середовища SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Дозволити звичайним користувачам використовувати список дозволених адрес для вебхуків",+ "allow_standard_users_local_webhooks_info" => "Ризик безпеки: увімкнення цього дозволить будь-якому звичайному (не адміністратору) користувачеві надсилати сповіщення на адреси зі списку дозволених адрес для вебхуків вище, включно з внутрішніми службами у вашій мережі. Вмикайте це лише якщо довіряєте всім користувачам цього екземпляра Wallos.","maintenance_tasks" => "Завдання обслуговування","orphaned_logos" => "Втрачений логотип","update" => "Оновити",diff --git a/includes/i18n/vi.php b/includes/i18n/vi.phpindex 27e3366..b3812e2 100644--- a/includes/i18n/vi.php+++ b/includes/i18n/vi.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "Để ngăn chặn các cuộc tấn công Server-Side Request Forgery (SSRF), Wallos mặc định chặn các thông báo webhook đến các địa chỉ mạng riêng hoặc nội bộ.","local_webhook_info" => "Nếu bạn cần gửi webhooks đến các dịch vụ cục bộ (như Home Assistant, Gotify hoặc Node-RED), hãy nhập địa chỉ IP hoặc tên máy chủ của chúng ở trên dưới dạng danh sách cách nhau bởi dấu phẩy (ví dụ: <code>192.168.1.100,192.168.1.101</code>).","ssrf_allowlist_env_managed" => "Được quản lý bởi biến môi trường SSRF_ALLOWLIST.",+ "allow_standard_users_local_webhooks" => "Cho phép người dùng tiêu chuẩn sử dụng Danh sách cho phép Webhook",+ "allow_standard_users_local_webhooks_info" => "Rủi ro bảo mật: bật tùy chọn này cho phép mọi người dùng tiêu chuẩn (không phải quản trị viên) gửi thông báo đến các địa chỉ trong Danh sách cho phép Webhook ở trên, bao gồm cả các dịch vụ nội bộ trong mạng của bạn. Chỉ bật tùy chọn này nếu bạn tin tưởng mọi người dùng trên phiên bản Wallos này.","maintenance_tasks" => "Nhiệm vụ bảo trì","orphaned_logos" => "Logo bị bỏ rơi","update" => "Cập nhật",diff --git a/includes/i18n/zh_cn.php b/includes/i18n/zh_cn.phpindex a033c6d..7b92e2c 100644--- a/includes/i18n/zh_cn.php+++ b/includes/i18n/zh_cn.php@@ -438,6 +438,8 @@ $i18n = ["ssrf_protection_info" => "为防止服务端请求伪造(SSRF)攻击,Wallos 默认阻止发送到私有或内部网络地址的 webhook 通知。","local_webhook_info" => "如果需要将 webhook 发送到本地服务(例如 Home Assistant、Gotify 或 Node-RED),请在上方以逗号分隔的列表中输入它们的 IP 地址或主机名(例如 <code>192.168.1.100,192.168.1.101</code>)。","ssrf_allowlist_env_managed" => "由 SSRF_ALLOWLIST 环境变量管理。",+ "allow_standard_users_local_webhooks" => "允许普通用户使用 Webhook 白名单",+ "allow_standard_users_local_webhooks_info" => "安全风险:启用此选项后,任何普通(非管理员)用户都可以向上方 Webhook 白名单中的地址发送通知,包括您网络中的内部服务。仅在您信任此 Wallos 实例中的所有用户时才启用此选项。","maintenance_tasks" => "维护任务","orphaned_logos" => "未关联的 Logo","update" => "更新",diff --git a/includes/i18n/zh_tw.php b/includes/i18n/zh_tw.phpindex 50f1ebe..68400a5 100644--- a/includes/i18n/zh_tw.php+++ b/includes/i18n/zh_tw.php@@ -421,6 +421,8 @@ $i18n = ["ssrf_protection_info" => "為了防止服務端請求偽造(SSRF)攻擊,Wallos 預設會阻止發送到私人或內部網路位址的 webhook 通知。","local_webhook_info" => "如果您需要將 webhook 發送到本地服務(例如 Home Assistant、Gotify 或 Node-RED),請在上方以逗號分隔的列表中輸入它們的 IP 位址或主機名稱(例如 <code>192.168.1.100,192.168.1.101</code>)。","ssrf_allowlist_env_managed" => "由 SSRF_ALLOWLIST 環境變數管理。",+ "allow_standard_users_local_webhooks" => "允許一般使用者使用 Webhook 白名單",+ "allow_standard_users_local_webhooks_info" => "安全風險:啟用此選項後,任何一般(非管理員)使用者都可以向上方 Webhook 白名單中的位址傳送通知,包括您網路中的內部服務。僅在您信任此 Wallos 執行個體中的所有使用者時才啟用此選項。","maintenance_tasks" => "維護工作","orphaned_logos" => "未使用的圖示","update" => "更新",diff --git a/includes/oidc/handle_oidc_callback.php b/includes/oidc/handle_oidc_callback.phpindex e08a638..f5655ea 100644--- a/includes/oidc/handle_oidc_callback.php+++ b/includes/oidc/handle_oidc_callback.php@@ -44,13 +44,18 @@ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postFields));curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/x-www-form-urlencoded']);-curl_setopt($ch, CURLOPT_RESOLVE, ["{$tokenUrlInfo['host']}:{$tokenUrlInfo['port']}:{$tokenUrlInfo['ip']}"]);+curl_setopt($ch, CURLOPT_RESOLVE, ["{$tokenUrlInfo['host']}:{$tokenUrlInfo['port']}:" . implode(',', $tokenUrlInfo['ips'])]);$response = curl_exec($ch);-unset($ch);+$curlErrno = curl_errno($ch);+$curlError = curl_error($ch);+$httpCode = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);+curl_close($ch);-$tokenData = json_decode($response, true);+$tokenData = $response !== false ? json_decode($response, true) : null;if (!$tokenData || !isset($tokenData['access_token'])) {- die("OIDC token exchange failed.");+ $detail = $curlErrno ? $curlError : ('HTTP ' . $httpCode . ($response !== false ? ': ' . substr($response, 0, 500) : ''));+ error_log('[Wallos OIDC] Token exchange failed for ' . $tokenUrlInfo['host'] . ': ' . $detail);+ die("OIDC token exchange failed. Check the Wallos server logs for details.");}$userInfoUrl = $oidcSettings['user_info_url'];@@ -66,13 +71,18 @@ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $tokenData['access_token']]);-curl_setopt($ch, CURLOPT_RESOLVE, ["{$userInfoUrlInfo['host']}:{$userInfoUrlInfo['port']}:{$userInfoUrlInfo['ip']}"]);+curl_setopt($ch, CURLOPT_RESOLVE, ["{$userInfoUrlInfo['host']}:{$userInfoUrlInfo['port']}:" . implode(',', $userInfoUrlInfo['ips'])]);$response = curl_exec($ch);-unset($ch);+$curlErrno = curl_errno($ch);+$curlError = curl_error($ch);+$httpCode = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);+curl_close($ch);-$userInfo = json_decode($response, true);+$userInfo = $response !== false ? json_decode($response, true) : null;if (!$userInfo || !isset($userInfo[$oidcSettings['user_identifier_field']])) {- die("Failed to fetch OIDC user info.");+ $detail = $curlErrno ? $curlError : ('HTTP ' . $httpCode . ($response !== false ? ': ' . substr($response, 0, 500) : ''));+ error_log('[Wallos OIDC] User info fetch failed for ' . $userInfoUrlInfo['host'] . ': ' . $detail);+ die("Failed to fetch OIDC user info. Check the Wallos server logs for details.");}$oidcSub = $userInfo[$oidcSettings['user_identifier_field']];diff --git a/includes/ssrf_helper.php b/includes/ssrf_helper.phpindex 77deff3..6e0941f 100644--- a/includes/ssrf_helper.php+++ b/includes/ssrf_helper.php@@ -21,17 +21,19 @@ function wallos_get_ssrf_allowlist_env_value()/*** Returns the effective SSRF allowlist: SSRF_ALLOWLIST env var if set (full* override, same semantics as the OIDC_* env vars), otherwise the DB-stored- * local_webhook_notifications_allowlist value.+ * local_webhook_notifications_allowlist value. Also returns whether standard+ * (non-admin) users are allowed to target hosts on that allowlist.** @param SQLite3 $db- * @return array{allowlist: string[], raw: string, is_managed: bool}+ * @return array{allowlist: string[], raw: string, is_managed: bool, allow_standard_users: bool}*/function wallos_get_effective_ssrf_allowlist($db){- $stmt = $db->prepare('SELECT local_webhook_notifications_allowlist FROM admin LIMIT 1');+ $stmt = $db->prepare('SELECT local_webhook_notifications_allowlist, allow_standard_users_local_webhooks FROM admin LIMIT 1');$result = $stmt->execute();$row = $result ? $result->fetchArray(SQLITE3_ASSOC) : false;$dbValue = $row ? $row['local_webhook_notifications_allowlist'] : '';+ $allowStandardUsers = $row ? (bool) $row['allow_standard_users_local_webhooks'] : false;$envValue = wallos_get_ssrf_allowlist_env_value();$isManaged = $envValue !== null && trim((string) $envValue) !== '';@@ -43,6 +45,7 @@ function wallos_get_effective_ssrf_allowlist($db)'allowlist' => $allowlist,'raw' => (string) $rawValue,'is_managed' => $isManaged,+ 'allow_standard_users' => $allowStandardUsers,];}@@ -175,14 +178,16 @@ function validate_webhook_url_for_ssrf($url, $db, $i18n, $userId = null) {$is_private = wallos_ip_is_private_or_reserved($ip);if ($is_private) {- if ($userId != 1) {+ $ssrfConfiguration = wallos_get_effective_ssrf_allowlist($db);++ if ($userId != 1 && !$ssrfConfiguration['allow_standard_users']) {die(json_encode(["success" => false,"message" => "Security Block: Standard users are not permitted to use internal network addresses."]));}- $allowlist = wallos_get_effective_ssrf_allowlist($db)['allowlist'];+ $allowlist = $ssrfConfiguration['allowlist'];if (!in_array($urlHost, $allowlist) &&!in_array($ip, $allowlist) &&@@ -246,11 +251,21 @@ function validate_smtp_host($host, $port, $db) {/*** Validates an OIDC endpoint URL (token_url, user_info_url) against SSRF.* Private/reserved IPs (RFC-1918, link-local, loopback, CGNAT) are only- * allowed if the host or IP appears in the admin Security Settings allowlist,+ * allowed if the host or IP appears in the admin Security Settings allowlist.+ *+ * Resolves *every* A record for the host (not just one) and validates each+ * individually, so a CDN/anycast-fronted hostname (e.g. behind Cloudflare)+ * keeps the same connection redundancy plain DNS resolution would give it.+ * Only IPs that individually pass the check are ever returned — an IP that+ * fails is simply dropped from the candidate list, never let through because+ * a sibling IP passed. That keeps the anti-DNS-rebinding guarantee intact:+ * the caller must pin curl to exactly this returned set (see+ * handle_oidc_callback.php), so it can only ever connect to an address that+ * was validated in this same call, with no second DNS lookup in between.** @param string $url* @param SQLite3 $db- * @return array|false ['host', 'ip', 'port'] on success, false on failure+ * @return array|false ['host', 'ip', 'ips', 'port'] on success, false on failure*/function validate_oidc_endpoint_url($url, $db) {$parsed = parse_url($url);@@ -261,34 +276,50 @@ function validate_oidc_endpoint_url($url, $db) {$host = $parsed['host'];$port = $parsed['port'] ?? '';- $ip = gethostbyname($host);- // DNS failure — gethostbyname returns the input unchanged on failure- if ($ip === $host && filter_var($host, FILTER_VALIDATE_IP) === false) return false;+ if (filter_var($host, FILTER_VALIDATE_IP) !== false) {+ $ips = [$host];+ } else {+ $ips = gethostbynamel($host);+ if ($ips === false || count($ips) === 0) return false; // DNS failure+ }$targetPort = $port ?: ($scheme === 'https' ? 443 : 80);- $is_private = wallos_ip_is_private_or_reserved($ip);+ $allowlist = null; // fetched lazily, only if a private IP is actually seen+ $validIps = [];- if ($is_private) {- $allowlist = wallos_get_effective_ssrf_allowlist($db)['allowlist'];+ foreach ($ips as $ip) {+ if (!wallos_ip_is_private_or_reserved($ip)) {+ $validIps[] = $ip;+ continue;+ }++ if ($allowlist === null) {+ $allowlist = wallos_get_effective_ssrf_allowlist($db)['allowlist'];+ }$hostWithPort = $host . ':' . $targetPort;$ipWithPort = $ip . ':' . $targetPort;if (- !in_array($host, $allowlist) &&- !in_array($ip, $allowlist) &&- !in_array($hostWithPort, $allowlist) &&- !in_array($ipWithPort, $allowlist)+ in_array($host, $allowlist) ||+ in_array($ip, $allowlist) ||+ in_array($hostWithPort, $allowlist) ||+ in_array($ipWithPort, $allowlist)) {- return false;+ $validIps[] = $ip;}+ // else: this specific IP is private and not allowlisted — dropped,+ // never pinned, even though other IPs for this host may have passed.}+ if (count($validIps) === 0) return false;+return ['host' => $host,- 'ip' => $ip,+ 'ip' => $validIps[0],+ 'ips' => $validIps,'port' => $targetPort,];}@@ -323,11 +354,13 @@ function is_url_safe_for_ssrf($url, $db, $userId = null) {$is_private = wallos_ip_is_private_or_reserved($ip);if ($is_private) {- if ($userId != 1) {- return false; // private and user is not admin — skip silently+ $ssrfConfiguration = wallos_get_effective_ssrf_allowlist($db);++ if ($userId != 1 && !$ssrfConfiguration['allow_standard_users']) {+ return false; // private, user is not admin, and standard users aren't opted in — skip silently}- $allowlist = wallos_get_effective_ssrf_allowlist($db)['allowlist'];+ $allowlist = $ssrfConfiguration['allowlist'];if (!in_array($urlHost, $allowlist) &&diff --git a/includes/stats_calculations.php b/includes/stats_calculations.phpindex 3b04833..047937d 100644--- a/includes/stats_calculations.php+++ b/includes/stats_calculations.php@@ -176,11 +176,17 @@ if ($result) {}$next_payment = $subscription['next_payment'];$payerId = $subscription['payer_user_id'];- $members[$payerId]['count'] += 1;+ if (isset($members[$payerId])) {+ $members[$payerId]['count'] += 1;+ }$categoryId = $subscription['category_id'];- $categories[$categoryId]['count'] += 1;+ if (isset($categories[$categoryId])) {+ $categories[$categoryId]['count'] += 1;+ }$paymentMethodId = $subscription['payment_method_id'];- $paymentMethods[$paymentMethodId]['count'] += 1;+ if (isset($paymentMethods[$paymentMethodId])) {+ $paymentMethods[$paymentMethodId]['count'] += 1;+ }$inactive = $subscription['inactive'];$replacementSubscriptionId = $subscription['replacement_subscription_id'];$originalSubscriptionPrice = getPriceConverted($price, $currency, $db, $userId);@@ -189,11 +195,17 @@ if ($result) {if ($inactive == 0) {if ($cycle != 5) {$activeSubscriptions++;- $paymentMethodsCount[$paymentMethodId]['count'] += 1;+ if (isset($paymentMethodsCount[$paymentMethodId])) {+ $paymentMethodsCount[$paymentMethodId]['count'] += 1;+ }}$totalCostPerMonth += $price;- $memberCost[$payerId]['cost'] += $price;- $categoryCost[$categoryId]['cost'] += $price;+ if (isset($memberCost[$payerId])) {+ $memberCost[$payerId]['cost'] += $price;+ }+ if (isset($categoryCost[$categoryId])) {+ $categoryCost[$categoryId]['cost'] += $price;+ }if ($price > $mostExpensiveSubscription['price']) {$mostExpensiveSubscription['price'] = $price;$mostExpensiveSubscription['name'] = $name;diff --git a/includes/theme_helpers.php b/includes/theme_helpers.phpnew file mode 100644index 0000000..53ec69e--- /dev/null+++ b/includes/theme_helpers.php@@ -0,0 +1,23 @@+<?php++// For the "theme" cookie, which stores the display mode and can be "automatic".+function sanitize_theme_mode($value, $default = "light")+{+ $allowed = ["light", "dark", "automatic"];+ return in_array($value, $allowed, true) ? $value : $default;+}++// For the "inUseTheme" cookie, which stores automatic mode's resolved light/dark value.+function sanitize_resolved_theme($value, $default = "light")+{+ $allowed = ["light", "dark"];+ return in_array($value, $allowed, true) ? $value : $default;+}++function sanitize_color_theme($value, $default = "blue")+{+ $allowed = ["blue", "red", "green", "yellow", "purple"];+ return in_array($value, $allowed, true) ? $value : $default;+}++?>diff --git a/includes/version.php b/includes/version.phpindex 2ae3129..c68aecd 100644--- a/includes/version.php+++ b/includes/version.php@@ -1,3 +1,3 @@<?php-$version = "v5.4.5";+$version = "v5.5.0";?>diff --git a/login.php b/login.phpindex 3502026..95a5f91 100644--- a/login.php+++ b/login.php@@ -8,6 +8,7 @@ require_once 'includes/i18n/getlang.php';require_once 'includes/i18n/' . $lang . '.php';require_once 'includes/version.php';+require_once 'includes/theme_helpers.php';if ($userCount == 0) {header("Location: registration.php");@@ -109,14 +110,14 @@ if (isset($_SESSION['token'])) {$theme = "light";$updateThemeSettings = false;if (isset($_COOKIE['theme'])) {- $theme = $_COOKIE['theme'];+ $theme = sanitize_theme_mode($_COOKIE['theme']);} else {$updateThemeSettings = true;}$colorTheme = "blue";if (isset($_COOKIE['colorTheme'])) {- $colorTheme = $_COOKIE['colorTheme'];+ $colorTheme = sanitize_color_theme($_COOKIE['colorTheme']);}// Check if OIDC is enabled and resolve any environment overrides.@@ -323,7 +324,7 @@ if (isset($_GET['error'])) {<link rel="stylesheet" href="styles/login-dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>><script type="text/javascript">window.update_theme_settings = "<?= $updateThemeSettings ?>";- window.color_theme = "<?= $colorTheme ?>";+ window.color_theme = <?= json_encode($colorTheme, JSON_HEX_TAG | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_HEX_APOS) ?>;</script><script type="text/javascript" src="scripts/login.js?<?= $version ?>"></script><script type="text/javascript" src="scripts/auth-theme.js?<?= $version ?>"></script>diff --git a/logout.php b/logout.phpindex 0e34ad6..e8475bd 100644--- a/logout.php+++ b/logout.php@@ -22,13 +22,32 @@ if (isset($_SESSION['from_oidc']) && $_SESSION['from_oidc'] === true) {}// get token from cookie to remove from DB+//+// $userId is not assigned anywhere in this file, so the statement bound null+// and "user_id = null" matched no row: every logout left a usable remember-me+// token behind, and the next request signed the browser straight back in. On a+// shared machine that is the whole point of logging out.+//+// The token identifies the row on its own — it is 32 random bytes and the+// credential itself — so scoping the delete by user adds nothing and was the+// only reason this failed. The result is checked because a delete that could+// not run and a token that was not there are different outcomes.if (isset($_SESSION['token'])) {$token = $_SESSION['token'];- $sql = "DELETE FROM login_tokens WHERE token = :token AND user_id = :userId";+ $sql = "DELETE FROM login_tokens WHERE token = :token";$stmt = $db->prepare($sql);- $stmt->bindParam(':token', $token, SQLITE3_TEXT);- $stmt->bindParam(':userId', $userId, SQLITE3_INTEGER);- $stmt->execute();++ if ($stmt === false) {+ error_log('Wallos: could not prepare the login token deletion on logout; '+ . 'any browser still holding the cookie stays signed in');+ } else {+ $stmt->bindParam(':token', $token, SQLITE3_TEXT);++ if ($stmt->execute() === false) {+ error_log('Wallos: could not revoke the login token on logout; '+ . 'any browser still holding the cookie stays signed in');+ }+ }}$_SESSION = array();session_destroy();diff --git a/migrations/000056.php b/migrations/000056.phpnew file mode 100644index 0000000..7ed1a80--- /dev/null+++ b/migrations/000056.php@@ -0,0 +1,14 @@+<?php++/* * This migration adds a column to the admin table letting the admin opt+* standard (non-admin) users into the existing Webhook Allowlist for+* notification SSRF checks. Without it, any private/internal address is+* always blocked for standard users regardless of the allowlist.+*/++$column = $db->query("SELECT * FROM pragma_table_info('admin') WHERE name='allow_standard_users_local_webhooks'");+if ($column->fetchArray(SQLITE3_ASSOC) === false) {+ $db->exec('ALTER TABLE admin ADD COLUMN allow_standard_users_local_webhooks INTEGER DEFAULT 0');+}++?>diff --git a/scripts/admin.js b/scripts/admin.jsindex 3acf873..1fabdb3 100644--- a/scripts/admin.js+++ b/scripts/admin.js@@ -239,9 +239,11 @@ function saveSecuritySettingsButton() {button.disabled = true;const allowlist = document.getElementById('local_webhook_notifications_allowlist').value;+ const allowStandardUsers = document.getElementById('allow_standard_users_local_webhooks').checked;const data = {- local_webhook_notifications_allowlist: allowlist+ local_webhook_notifications_allowlist: allowlist,+ allow_standard_users_local_webhooks: allowStandardUsers};fetch('endpoints/admin/savesecuritysettings.php', {diff --git a/service-worker.js b/service-worker.jsindex 75f7546..aa005ae 100644--- a/service-worker.js+++ b/service-worker.js@@ -1,4 +1,4 @@-const STATIC_CACHE = 'static-cache-v3';+const STATIC_CACHE = 'static-cache-v4';const PAGES_CACHE = 'pages-cache-v1';const LOGOS_CACHE = 'logos-cache-v2';@@ -214,16 +214,16 @@ self.addEventListener('fetch', function (event) {const request = event.request;const url = new URL(request.url);- // Never intercept non-GET requests (POST, etc.)- if (request.method !== 'GET') return;-- // Search endpoints must always return their current JSON response. Falling- // back to a cached PHP page (especially with ignoreSearch) makes the client- // try to parse HTML or another query's data as JSON.- if (url.pathname.includes('/endpoints/logos/')) {- event.respondWith(fetch(request));- return;- }+ // Never intercept non-GET requests (POST, etc.)+ if (request.method !== 'GET') return;++ // Search endpoints must always return their current JSON response. Falling+ // back to a cached PHP page (especially with ignoreSearch) makes the client+ // try to parse HTML or another query's data as JSON.+ if (url.pathname.includes('/endpoints/logos/')) {+ event.respondWith(fetch(request));+ return;+ }// Logo images: use cache-first, but cache only successful image responses.// This prevents temporary 404/HTML responses from becoming permanentdiff --git a/totp.php b/totp.phpindex f2f638e..e8cf7fa 100644--- a/totp.php+++ b/totp.php@@ -7,6 +7,7 @@ require_once 'includes/i18n/getlang.php';require_once 'includes/i18n/' . $lang . '.php';require_once 'includes/version.php';+require_once 'includes/theme_helpers.php';if ($userCount == 0) {header("Location: registration.php");@@ -30,14 +31,14 @@ if (!isset($_SESSION['totp_user_id'])) {$theme = "light";$updateThemeSettings = false;if (isset($_COOKIE['theme'])) {- $theme = $_COOKIE['theme'];+ $theme = sanitize_theme_mode($_COOKIE['theme']);} else {$updateThemeSettings = true;}$colorTheme = "blue";if (isset($_COOKIE['colorTheme'])) {- $colorTheme = $_COOKIE['colorTheme'];+ $colorTheme = sanitize_color_theme($_COOKIE['colorTheme']);}$demoMode = getenv('DEMO_MODE');@@ -55,7 +56,7 @@ if (isset($_POST['one-time-code'])) {$maxTotpAttempts = 5;$totpLockoutSeconds = 30;- $statement = $db->prepare('SELECT totp_secret, backup_codes, failed_attempts, lockout_until FROM totp WHERE user_id = :id');+ $statement = $db->prepare('SELECT totp_secret, backup_codes, failed_attempts, lockout_until, last_totp_used FROM totp WHERE user_id = :id');$statement->bindValue(':id', $_SESSION['totp_user_id'], SQLITE3_INTEGER);$result = $statement->execute();$row = $result->fetchArray(SQLITE3_ASSOC);@@ -135,16 +136,24 @@ if (isset($_POST['one-time-code'])) {$statement = $db->prepare('UPDATE totp SET backup_codes = :backup_codes WHERE user_id = :id');$statement->bindValue(':backup_codes', json_encode($backupCodes), SQLITE3_TEXT);$statement->bindValue(':id', $_SESSION['totp_user_id'], SQLITE3_INTEGER);- $statement->execute();- $valid = true;+ // A backup code is single-use, so it counts only once it has+ // actually been struck off. Honouring one whose removal failed+ // would leave it usable indefinitely.+ $valid = $statement->execute() !== false;}} else {// Record the matched time-step so the same code cannot be reused.$statement = $db->prepare('UPDATE totp SET last_totp_used = :last_totp_used WHERE user_id = :id');$statement->bindValue(':last_totp_used', $matchedStep, SQLITE3_INTEGER);$statement->bindValue(':id', $_SESSION['totp_user_id'], SQLITE3_INTEGER);- $statement->execute();++ // The login still proceeds if this cannot be stored — the code was+ // genuine — but the replay window is then unguarded, so say so.+ if ($statement->execute() === false) {+ error_log('Wallos: could not record the used TOTP step for user '+ . (int) $_SESSION['totp_user_id'] . '; this code stays replayable until it expires');+ }}// Update brute-force counters based on the result of this attempt.@@ -193,6 +202,7 @@ if (isset($_POST['one-time-code'])) {$addLoginTokensStmt->bindParam(':userId', $user['id'], SQLITE3_INTEGER);$addLoginTokensStmt->bindParam(':token', $token, SQLITE3_TEXT);$addLoginTokensStmt->execute();+ $_SESSION['token'] = $token;$cookieExpire = time() + (30 * 24 * 60 * 60);$cookieValue = $user['username'] . "|" . $token . "|" . $user['main_currency'];setcookie('wallos_login', $cookieValue, [@@ -260,7 +270,7 @@ if (isset($_POST['one-time-code'])) {<link rel="stylesheet" href="styles/login-dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>><script type="text/javascript">window.update_theme_settings = "<?= $updateThemeSettings ?>";- window.color_theme = "<?= $colorTheme ?>";+ window.color_theme = <?= json_encode($colorTheme, JSON_HEX_TAG | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_HEX_APOS) ?>;</script><script type="text/javascript" src="scripts/login.js?<?= $version ?>"></script><script type="text/javascript" src="scripts/auth-theme.js?<?= $version ?>"></script>