mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Fix Server Settings in Admin Panel
Fix Server Settings in Admin Panel + fix New function in admin.php
This commit is contained in:
+5
-1
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user