From 31b13873e8958ea03d783c8156b383101323c517 Mon Sep 17 00:00:00 2001 From: novgorodschi catalin Date: Tue, 23 Jun 2026 14:40:23 +0300 Subject: [PATCH] Fix Server Settings in Admin Panel Fix Server Settings in Admin Panel + fix New function in admin.php --- Admin/Templates/editAdminInfo.tpl | 151 +++++++---- Admin/Templates/editExtraSet.tpl | 108 +++++--- Admin/Templates/editLogSet.tpl | 227 +++++++++------- Admin/Templates/editNewFunctions.tpl | 371 +++++++++++++++------------ Admin/Templates/editNewsboxSet.tpl | 137 ++++++---- Admin/Templates/editPlusSet.tpl | 319 +++++++++++------------ Admin/Templates/home.tpl | 4 +- Admin/admin.php | 6 +- var/db/struct.sql | 4 +- 9 files changed, 767 insertions(+), 560 deletions(-) diff --git a/Admin/Templates/editAdminInfo.tpl b/Admin/Templates/editAdminInfo.tpl index bcbf5d7a..35733739 100644 --- a/Admin/Templates/editAdminInfo.tpl +++ b/Admin/Templates/editAdminInfo.tpl @@ -22,58 +22,99 @@ if (!isset($_SESSION)) { } if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN); ?> -

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
?
?
? - -
? - -
? - -
-
- - - - -
<<
-
+ + +
+
+ +
+ + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
?
?
? + +
? + +
? + +
+
+
+ + ‹ + + +
+
+
diff --git a/Admin/Templates/editExtraSet.tpl b/Admin/Templates/editExtraSet.tpl index 2aa5d2a8..0276f407 100644 --- a/Admin/Templates/editExtraSet.tpl +++ b/Admin/Templates/editExtraSet.tpl @@ -22,37 +22,77 @@ if (!isset($_SESSION)) { } if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN); ?> -

-
- -
- - - - - - - - - - - - - - - - - -
? - -
?30
-
- - - - -
<<
-
+ + +
+
+ +
+ + +
+
+ +
+ + + + + + + + + + + +
? + +
?30
+
+
+ + ‹ + + +
+
+
diff --git a/Admin/Templates/editLogSet.tpl b/Admin/Templates/editLogSet.tpl index 836e5b84..52b957da 100644 --- a/Admin/Templates/editLogSet.tpl +++ b/Admin/Templates/editLogSet.tpl @@ -22,97 +22,136 @@ if (!isset($_SESSION)) { } if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN); ?> -

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
? - -
? - -
? - -
? - -
? - -
? - -
? - -
? - -
-
- - - - -
<<
-
+ + +
+
+ +
+ + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
+
+
+ + ‹ + + +
+
+
diff --git a/Admin/Templates/editNewFunctions.tpl b/Admin/Templates/editNewFunctions.tpl index 6168ecfa..1cb2dbb8 100644 --- a/Admin/Templates/editNewFunctions.tpl +++ b/Admin/Templates/editNewFunctions.tpl @@ -1,5 +1,4 @@ -

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Edit New Mechanics and Functions
Display oasis in profile ?Enable (Disable) the display of oases of each village in the player profile - -
Alliance invitation message ?Enable (Disable) sending an in-game message to the player, if he was invited to the alliance - -
New Alliance & Embassy Mechanics ?For this setting, you can find more information on the link: https://github.com - -
New forum post message ?Enable (Disable) if a player leaves at least one message in the thread on the forum, he will receive in-game messages about the fact that new messages have appeared in the same thread (i.e. is technically "subscribed to") - -
Tribes images in profile ?Enable (Disable) displaying images of tribes with a description in the players profile - -
MHs images in profile ?Enable (Disable) displaying images of Multihunters with a description in the MHs profile - -
Display artifact in profile ?Enable (Disable) the display of the artifact in the player profile, opposite the corresponding village in which it is located - -
Display WoW in profile ?Enable (Disable) the display of the wonder in the player profile, opposite the corresponding village in which it is located - -
Vacation Mode ?Enable (Disable) vacation mode, will be displayed or hidden in the player profile menu - -
Catapult targets ?Enable (Disable) the display of the targets of the catapults in the rally point that were sent by you - -
Manual on Nature and Natars ?Enable (Disable) displaying information in the Manual about the troops of Nature and Natars - -
Direct links placement ?If Enabled, then the Direct links will be placed in the left menu, if Disabled then Direct links will be placed in the right menu as in the original Travian - -
Medal Veteran Player ?Enable (Disable) medal achieved for playing 3 years of Travian - -
Medal Veteran Player 5a ?Enable (Disable) medal achieved for playing 5 years of Travian - -
Medal Veteran Player 10a ?Enable (Disable) medal achieved for playing 10 years of Travian - -
Special Medals?Enable (Disable) special medals (artifact, hero, ww, wall, great store, etc.) - -
-
- - - - -
<<
-
+ + +
+
+ +
+ + +
+
+ Edit New Mechanics and Functions +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Display oasis in profile ?Enable (Disable) the display of oases of each village in the player profile + +
Alliance invitation message ?Enable (Disable) sending an in-game message to the player, if he was invited to the alliance + +
New Alliance & Embassy Mechanics ?For this setting, you can find more information on the link: https://github.com + +
New forum post message ?Enable (Disable) if a player leaves at least one message in the thread on the forum, he will receive in-game messages about the fact that new messages have appeared in the same thread (i.e. is technically "subscribed to") + +
Tribes images in profile ?Enable (Disable) displaying images of tribes with a description in the players profile + +
MHs images in profile ?Enable (Disable) displaying images of Multihunters with a description in the MHs profile + +
Display artifact in profile ?Enable (Disable) the display of the artifact in the player profile, opposite the corresponding village in which it is located + +
Display WoW in profile ?Enable (Disable) the display of the wonder in the player profile, opposite the corresponding village in which it is located + +
Vacation Mode ?Enable (Disable) vacation mode, will be displayed or hidden in the player profile menu + +
Catapult targets ?Enable (Disable) the display of the targets of the catapults in the rally point that were sent by you + +
Manual on Nature and Natars ?Enable (Disable) displaying information in the Manual about the troops of Nature and Natars + +
Direct links placement ?If Enabled, then the Direct links will be placed in the left menu, if Disabled then Direct links will be placed in the right menu as in the original Travian + +
Medal Veteran Player ?Enable (Disable) medal achieved for playing 3 years of Travian + +
Medal Veteran Player 5a ?Enable (Disable) medal achieved for playing 5 years of Travian + +
Medal Veteran Player 10a ?Enable (Disable) medal achieved for playing 10 years of Travian + +
Special Medals ?Enable (Disable) special medals (artifact, hero, ww, wall, great store, etc.) + +
+
+
+ + ‹ + + +
+
+
diff --git a/Admin/Templates/editNewsboxSet.tpl b/Admin/Templates/editNewsboxSet.tpl index 998ec6fd..0a5b2a89 100644 --- a/Admin/Templates/editNewsboxSet.tpl +++ b/Admin/Templates/editNewsboxSet.tpl @@ -22,52 +22,91 @@ if (!isset($_SESSION)) { } if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN); ?> -

-
- -
- - - - - - - - - - - - - - - - - - - - - - -
? - -
? - -
? - -
-
- - - - -
<<
-
+ + +
+
+ +
+ + +
+
+ +
+ + + + + + + + + + + + + + + +
? + +
? + +
? + +
+
+
+ + ‹ + + +
+
+
diff --git a/Admin/Templates/editPlusSet.tpl b/Admin/Templates/editPlusSet.tpl index c09264e3..e09a3552 100644 --- a/Admin/Templates/editPlusSet.tpl +++ b/Admin/Templates/editPlusSet.tpl @@ -1,5 +1,4 @@ - -

-
- -
- - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
- ? - - -
? - -
? - -
-
- - - - -
<<
-
+
+
+ +
+ + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
? + +
+
+
+ + ‹ + + +
+
+
diff --git a/Admin/Templates/home.tpl b/Admin/Templates/home.tpl index b2c430b7..25849265 100644 --- a/Admin/Templates/home.tpl +++ b/Admin/Templates/home.tpl @@ -57,8 +57,8 @@ $role = $_SESSION['access'] == ADMIN ? 'Administrator' : 'MultiHunter'; /* === HOME.TPL - FORȚAT CU CULORI === */ .dashboard { max-width:1150px; margin:0 auto; font-family:system-ui, Verdana; } .dash-head { text-align:center; margin-bottom:24px; } -.dash-head h1 { font-size:26px !important; margin:0 !important; color:#0f172a !important; font-weight:800 !important; letter-spacing:-0.5px; } -.dash-head .sub { color:#475569 !important; font-size:13px !important; margin-top:6px !important; } +.dash-head h1 { font-size:26px !important; margin:0 !important; color:##ffffff !important; font-weight:800 !important; letter-spacing:-0.5px; } +.dash-head .sub { color:##ffffff !important; font-size:13px !important; margin-top:6px !important; } .dash-head .sub b{color:#2563eb !important;} /* CARDS CENTRATE */ diff --git a/Admin/admin.php b/Admin/admin.php index 694f93aa..589b3754 100644 --- a/Admin/admin.php +++ b/Admin/admin.php @@ -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'; diff --git a/var/db/struct.sql b/var/db/struct.sql index 98042198..f26a6ec0 100644 --- a/var/db/struct.sql +++ b/var/db/struct.sql @@ -1,10 +1,10 @@ -- phpMyAdmin SQL Dump --- version 3.3.9 +-- version 5.2.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 15, 2026 at 02:49 AM --- Server version: 9.0 INCREMENTAL REFACTOR +-- Server version: 10.0 INCREMENTAL REFACTOR & SECURITY -- PHP Version: 8.4 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";