mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 21:56:09 +00:00
Incremental Refactor Templates 4
Incremental Refactor Templates 4 + Notice bugfix
This commit is contained in:
+584
-443
File diff suppressed because it is too large
Load Diff
@@ -17,12 +17,16 @@ $colspan = $hasHero ? 11 : 10;
|
||||
$spy = !empty($dataarray[177]) && !empty($dataarray[176]) && empty($dataarray[195]);
|
||||
|
||||
// ======================== URL SETUP ========================
|
||||
if (!isset($isAdmin)) {
|
||||
|
||||
// detectare admin REAL (nu variabilă nesigură)
|
||||
$isAdmin = (isset($session) && isset($session->access) && $session->access >= 8);
|
||||
|
||||
if ($isAdmin) {
|
||||
$mapUrl = "Admin/admin.php?p=village&did=";
|
||||
$playerUrl = "Admin/admin.php?p=player&uid=";
|
||||
} else {
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
} else {
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
// ======================== ATTACKER DATA (CACHED) ========================
|
||||
|
||||
@@ -9,13 +9,17 @@
|
||||
|
||||
$dataarray = explode(",", $message->readingNotice['data']);
|
||||
|
||||
// ======================== URL BASE ========================
|
||||
if (!isset($isAdmin)) {
|
||||
// ======================== URL SETUP ========================
|
||||
|
||||
// detectare admin REAL (nu variabilă nesigură)
|
||||
$isAdmin = (isset($session) && isset($session->access) && $session->access >= 8);
|
||||
|
||||
if ($isAdmin) {
|
||||
$mapUrl = "Admin/admin.php?p=village&did=";
|
||||
$playerUrl = "Admin/admin.php?p=player&uid=";
|
||||
} else {
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
} else {
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
// ======================== ATTACKER / SENDER ========================
|
||||
|
||||
@@ -9,13 +9,17 @@
|
||||
|
||||
$dataarray = explode(",", $message->readingNotice['data']);
|
||||
|
||||
// ======================== URL BASE ========================
|
||||
if (!isset($isAdmin)) {
|
||||
// ======================== URL SETUP ========================
|
||||
|
||||
// detectare admin REAL (nu variabilă nesigură)
|
||||
$isAdmin = (isset($session) && isset($session->access) && $session->access >= 8);
|
||||
|
||||
if ($isAdmin) {
|
||||
$mapUrl = "Admin/admin.php?p=village&did=";
|
||||
$playerUrl = "Admin/admin.php?p=player&uid=";
|
||||
} else {
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
} else {
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
// ======================== CONFIG ========================
|
||||
|
||||
@@ -14,13 +14,17 @@ $hasHero = (isset($dataarray[184]) && $dataarray[184] > 0);
|
||||
$colspan = $hasHero ? 11 : 10;
|
||||
$colspan2 = 10;
|
||||
|
||||
// ======================== URL BASE ========================
|
||||
if (!isset($isAdmin)) {
|
||||
// ======================== URL SETUP ========================
|
||||
|
||||
// detectare admin REAL (nu variabilă nesigură)
|
||||
$isAdmin = (isset($session) && isset($session->access) && $session->access >= 8);
|
||||
|
||||
if ($isAdmin) {
|
||||
$mapUrl = "Admin/admin.php?p=village&did=";
|
||||
$playerUrl = "Admin/admin.php?p=player&uid=";
|
||||
} else {
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
} else {
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
// ======================== ATTACKER (CACHED DB CALLS) ========================
|
||||
|
||||
@@ -13,13 +13,17 @@ $dataarray = explode(",", $message->readingNotice['data']);
|
||||
$hasHero = (!empty($dataarray[13]) && $dataarray[13] > 0);
|
||||
$colspan = $hasHero ? 11 : 10;
|
||||
|
||||
// ======================== URL BASE ========================
|
||||
if (!isset($isAdmin)) {
|
||||
// ======================== URL SETUP ========================
|
||||
|
||||
// detectare admin REAL (nu variabilă nesigură)
|
||||
$isAdmin = (isset($session) && isset($session->access) && $session->access >= 8);
|
||||
|
||||
if ($isAdmin) {
|
||||
$mapUrl = "Admin/admin.php?p=village&did=";
|
||||
$playerUrl = "Admin/admin.php?p=player&uid=";
|
||||
} else {
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
} else {
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
// ======================== SENDER (cached DB calls) ========================
|
||||
|
||||
+10
-28
@@ -2,36 +2,18 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename index.php ##
|
||||
## Filename 404.tpl ##
|
||||
## Developed by: aggenkeech ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
// prevent direct misuse in weird contexts (optional but safe)
|
||||
if (!defined('IN_GAME')) {
|
||||
// keep it harmless, just allow display
|
||||
}
|
||||
|
||||
$basePath = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
|
||||
?>
|
||||
|
||||
<div style="margin-top: 50px;">
|
||||
<div style="text-align: center">
|
||||
|
||||
<h1>404 - File not found</h1>
|
||||
|
||||
<img
|
||||
src="<?php echo $basePath; ?>/../../gpack/travian_default/img/misc/404.gif"
|
||||
title="Not Found"
|
||||
alt="Not Found"
|
||||
><br />
|
||||
|
||||
<p>We looked 404 times already but can't find anything, Not even an X marking the spot.</p>
|
||||
|
||||
<p>This system is not complete yet. So the page probably does not exist.</p>
|
||||
|
||||
<br>
|
||||
|
||||
</div>
|
||||
<div style="text-align: center">
|
||||
<h1>404 - File not found</h1>
|
||||
<img src="../../gpack/travian_default/img/misc/404.gif" title="Not Found" alt="Not Found"><br />
|
||||
<p>We looked 404 times already but can't find anything, Not even an X marking the spot.</p>
|
||||
<p>This system is not complete yet. So the page probably does not exist.</p><br>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user