Fix Server Settings in Admin Panel

Fix Server Settings in Admin Panel + fix New function in admin.php
This commit is contained in:
novgorodschi catalin
2026-06-23 14:40:23 +03:00
parent 8d492bebd3
commit 31b13873e8
9 changed files with 767 additions and 560 deletions
+5 -1
View File
@@ -91,7 +91,7 @@ function admin_validated_page(string $raw): string
'editWeek', 'userlogin', 'userillegallog', 'editHero', 'editAdditional',
'village', 'editResources', 'addTroops', 'addABTroops', 'editVillage',
'villagelog', 'techlog', 'msg',
'alliance', 'editAli', 'delAli',
'alliance', 'editAli', 'delAli','editNewFunctions',
];
return in_array($raw, $whitelist, true) ? $raw : '';
@@ -274,6 +274,10 @@ if ($page !== '') {
case 'editNewsboxSet':
$subpage = 'NewsBox Settings';
break;
case 'editNewFunctions':
$subpage = 'New Functions Settings';
break;
case 'editExtraSet':
$subpage = 'Extra Settings';