Skip to content

Commit

Permalink
feat: front-end page names
Browse files Browse the repository at this point in the history
  • Loading branch information
martinambrus committed Oct 20, 2017
1 parent e519826 commit 9391553
Show file tree
Hide file tree
Showing 32 changed files with 115 additions and 34 deletions.
2 changes: 1 addition & 1 deletion GameEngine/Admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<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">
Expand Down
2 changes: 1 addition & 1 deletion a2b.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<head>
<title><?php

echo SERVER_NAME
echo SERVER_NAME . ' - Send Troops'

?></title>
<link rel="shortcut icon" href="favicon.ico"/>
Expand Down
2 changes: 1 addition & 1 deletion a2b2.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!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" />
Expand Down
29 changes: 27 additions & 2 deletions allianz.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,33 @@
<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"/>
Expand Down Expand Up @@ -151,7 +177,6 @@ function med_showDescription(coords, desc_string){
<div id="dynamic_header">
</div>
<?php

include ("Templates/header.tpl");

?>
Expand Down
2 changes: 1 addition & 1 deletion anmelden.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion banned.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion berichte.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<!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" />
Expand Down
6 changes: 5 additions & 1 deletion build.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,9 @@
</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>
2 changes: 1 addition & 1 deletion create_account.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion dorf1.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion dorf2.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<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" />
Expand Down
2 changes: 1 addition & 1 deletion dorf3.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<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" />
Expand Down
2 changes: 1 addition & 1 deletion karte.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion karte2.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion login.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion manual.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<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" />
Expand Down
2 changes: 1 addition & 1 deletion massmessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion nachrichten.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion password.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<!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" />
Expand Down
26 changes: 25 additions & 1 deletion plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,31 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion plus1.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<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" />
Expand Down
32 changes: 31 additions & 1 deletion statistiken.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,37 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion support.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion sysmsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<!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" />
Expand Down
2 changes: 0 additions & 2 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion warsim.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!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" />
Expand Down
2 changes: 1 addition & 1 deletion winner.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function mysqli_result($res, $row, $field=0) {
<!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" />
Expand Down

0 comments on commit 9391553

Please sign in to comment.