mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
feat: front-end page names
This commit is contained in:
@@ -25,7 +25,7 @@ include("../GameEngine/Admin/database.php");
|
||||
<html>
|
||||
<head>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<title>Admin Control Panel - TravianX</title>
|
||||
<title>Admin Control Panel - TravianZ</title>
|
||||
<link rel=stylesheet type="text/css" href="../img/admin/admin.css">
|
||||
<link rel=stylesheet type="text/css" href="../img/admin/acp.css">
|
||||
<link rel=stylesheet type="text/css" href="../img/../img.css">
|
||||
|
||||
@@ -75,7 +75,7 @@ if(isset($_GET['o'])) {
|
||||
<head>
|
||||
<title><?php
|
||||
|
||||
echo SERVER_NAME
|
||||
echo SERVER_NAME . ' - Send Troops'
|
||||
|
||||
?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
|
||||
@@ -27,7 +27,7 @@ $automation->isWinner();
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME . ' - Account transactions' ?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ include('GameEngine/Account.php');
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<title><?php echo SERVER_NAME . ' - Account Activation'; ?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
|
||||
+27
-2
@@ -59,7 +59,33 @@ if(isset($_GET['aid']) or isset($_GET['fid']) or isset($_GET['fid2']) or $sessio
|
||||
<head>
|
||||
<title><?php
|
||||
|
||||
echo SERVER_NAME
|
||||
echo SERVER_NAME . ' » » » Alliance ';
|
||||
|
||||
if (!empty($_GET['s'])) {
|
||||
switch ($_GET['s']) {
|
||||
case '2':
|
||||
echo 'Forum ('.$alliance->allianceArray['tag'] . ' - ' . $alliance->allianceArray['name'].')';
|
||||
break;
|
||||
|
||||
case '6':
|
||||
echo 'Chat ('.$alliance->allianceArray['tag'] . ' - ' . $alliance->allianceArray['name'].')';
|
||||
break;
|
||||
|
||||
case '3':
|
||||
echo 'Attacks ('.$alliance->allianceArray['tag'] . ' - ' . $alliance->allianceArray['name'].')';
|
||||
break;
|
||||
|
||||
case '4':
|
||||
echo 'News ('.$alliance->allianceArray['tag'] . ' - ' . $alliance->allianceArray['name'].')';
|
||||
break;
|
||||
|
||||
case '5':
|
||||
echo 'Options ('.$alliance->allianceArray['tag'] . ' - ' . $alliance->allianceArray['name'].')';
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
echo $alliance->allianceArray['tag'] . ' - ' . $alliance->allianceArray['name'];
|
||||
}
|
||||
|
||||
?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
@@ -151,7 +177,6 @@ if(isset($_GET['aid']) or isset($_GET['fid']) or isset($_GET['fid2']) or $sessio
|
||||
<div id="dynamic_header">
|
||||
</div>
|
||||
<?php
|
||||
|
||||
include ("Templates/header.tpl");
|
||||
|
||||
?>
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ $invited=(isset($_GET['uid'])) ? filter_var($_GET['uid'], FILTER_SANITIZE_NUMBER
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<title><?php echo SERVER_NAME; ?> - Registration</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ if($session->access == BANNED){
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Player Banned</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ if(isset($_GET['t'])) {
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Reports</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -389,5 +389,9 @@ echo round(($generator->pageLoadTimeEnd()-$pagestart)*1000);
|
||||
</div>
|
||||
|
||||
<div id="ce"> </div>
|
||||
<script type="text/javascript">
|
||||
// update TITLE to include building name, as it's not very possible to do in PHP in current codebase
|
||||
document.title = document.title + ' » » ' + document.getElementsByTagName('h1')[0].innerHTML.replace(/(<([^>]+)>)/ig,"");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
+1
-1
@@ -35,7 +35,7 @@ $start = $generator->pageLoadTimeStart();
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Account Creation</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -25,7 +25,7 @@ if(isset($_GET['newdid'])) {
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME . ' - Village overview » ' . $village->vname; ?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -23,7 +23,7 @@ $building->procBuild($_GET);
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME. ' - Village Centre » ' . $village->vname ?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -27,7 +27,7 @@ if(isset($_GET['newdid'])) {
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Cross-Village Totals</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -31,7 +31,7 @@ else{
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - World Map</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ if($session->plus){
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - World Map</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -32,7 +32,7 @@ $_SESSION[ 'csrf' ] = $key;
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<title><?php echo SERVER_NAME; ?> - Login</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ $start = $generator->pageLoadTimeStart();
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<title><?php echo SERVER_NAME; ?> - Logged Out</title>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="imagetoolbar" content="no" />
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ include("GameEngine/config.php");
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<title><?php echo SERVER_NAME; ?> - Manual</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ if (isset($_GET['send']) && isset($_GET['from']))
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Mass Message</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ header("Location: ".$_SERVER['PHP_SELF']."?t=1");
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Messages</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ if($session->access != BANNED){
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - PLUS packages</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ if(!isset($_REQUEST['npw'])){
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<title><?php echo SERVER_NAME; ?> - Forgotten Password</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
|
||||
@@ -25,7 +25,31 @@ $automation->isWinner();
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php
|
||||
echo SERVER_NAME . ' » » » PLUS ';
|
||||
|
||||
if (!empty($_GET['id'])) {
|
||||
switch ($_GET['id']) {
|
||||
case '2':
|
||||
echo 'Advantages';
|
||||
break;
|
||||
|
||||
case '3':
|
||||
echo 'Gold';
|
||||
break;
|
||||
|
||||
case '4':
|
||||
echo 'FAQ';
|
||||
break;
|
||||
|
||||
case '5':
|
||||
echo 'Earn Gold';
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
echo 'Tariffs';
|
||||
}
|
||||
?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -14,7 +14,7 @@ else {
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - PLUS Packages</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -22,7 +22,7 @@ if(isset($_GET['newdid'])) {
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Game Rules</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+31
-1
@@ -26,7 +26,37 @@ if(isset($_GET['newdid'])) {
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php
|
||||
echo SERVER_NAME . ' » » » Statistics (';
|
||||
|
||||
if (!empty($_GET['id'])) {
|
||||
switch ($_GET['id']) {
|
||||
case '4':
|
||||
echo 'Alliances';
|
||||
break;
|
||||
|
||||
case '2':
|
||||
echo 'Villages';
|
||||
break;
|
||||
|
||||
case '8':
|
||||
echo 'Heroes';
|
||||
break;
|
||||
|
||||
case '0':
|
||||
echo 'General';
|
||||
break;
|
||||
|
||||
case '99':
|
||||
echo 'WW';
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
echo 'Players';
|
||||
}
|
||||
|
||||
echo ')';
|
||||
?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ $automation->isWinner();
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME; ?></title>
|
||||
<title><?php echo SERVER_NAME; ?> - Support Request</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta name="content-language" content="en" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ if (@isset($_POST['confirm']))
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - System Message</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
- change title for each page, so it fits with H1 (or history will always show a lot of "TravianZ" entries without a way to know where that history entry leads)
|
||||
... same in Admin panel
|
||||
- fix deleting users (need to delete their villages (+alliances/construction plans/...?) after a while)
|
||||
- check if defeating a player (destroying their village) removes that village from map after a while (as stated in FAQ)
|
||||
- add PayPal listener to verify gold transactions imediatelly
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ $automation->isWinner();
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Game Version</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ $battle->procSim($_POST);
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Combat Simulator</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
+1
-1
@@ -157,7 +157,7 @@ $q = "
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<title><?php echo SERVER_NAME ?> - Game Over</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
|
||||
Reference in New Issue
Block a user