feat: front-end page names

This commit is contained in:
Martin Ambrus
2017-10-20 18:17:42 +02:00
parent e519826621
commit 9391553dcb
32 changed files with 115 additions and 34 deletions
+1 -1
View File
@@ -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">
+1 -1
View File
@@ -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"/>
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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 . ' &raquo; &raquo; &raquo; 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
View File
@@ -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
View File
@@ -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
View File
@@ -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" />
+5 -1
View File
@@ -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
View File
@@ -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" />
+1 -1
View File
@@ -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 &raquo; ' . $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" />
+1 -1
View File
@@ -23,7 +23,7 @@ $building->procBuild($_GET);
<html>
<head>
<title><?php echo SERVER_NAME ?></title>
<title><?php echo SERVER_NAME. ' - Village Centre &raquo; ' . $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" />
+1 -1
View File
@@ -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" />
+1 -1
View File
@@ -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
View File
@@ -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" />
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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 -1
View File
@@ -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 . ' &raquo; &raquo; &raquo; 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" />
+1 -1
View File
@@ -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" />
+1 -1
View File
@@ -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
View File
@@ -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 . ' &raquo; &raquo; &raquo; 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
View File
@@ -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
View File
@@ -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" />
-2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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" />