summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarun <arun@nubati.net>2007-04-08 17:06:04 +0000
committerarun <arun>2007-04-08 17:06:04 +0000
commite301f4a3728ca58860f9b88c9743d7912662e7c6 (patch)
treed37a38b3483aea51445789ce5ff1d4d71b50eac8
parent72d1c47c36285f1ed7f659e8b8761781caa41c1f (diff)
downloade-DoKo-e301f4a3728ca58860f9b88c9743d7912662e7c6.tar.gz
e-DoKo-e301f4a3728ca58860f9b88c9743d7912662e7c6.tar.bz2
e-DoKo-e301f4a3728ca58860f9b88c9743d7912662e7c6.zip
added footer, moved revision into footer
-rw-r--r--css/standard.css15
-rw-r--r--index.php7
-rw-r--r--output.php13
3 files changed, 27 insertions, 8 deletions
diff --git a/css/standard.css b/css/standard.css
index 664b17c..166642d 100644
--- a/css/standard.css
+++ b/css/standard.css
@@ -3,11 +3,16 @@
text-align:center;
border-bottom:3px solid gray;
}
-.header p {
- position:absolute;
- right:0;
- top:0;
-}
+.footer {
+ margin:0;
+ margin-top:0.3em;
+ padding:0;
+ border-top: 2px solid #444;
+ font-size:smaller;
+ clear:both;
+ }
+.footer .right{ float:right; }
+.footer .left{ float:left; }
p.gamenumber {
position:absolute;
diff --git a/index.php b/index.php
index db219d1..813adf6 100644
--- a/index.php
+++ b/index.php
@@ -49,6 +49,7 @@ if(myisset("new"))
if($EmailA=="" || $EmailB=="" || $EmailC=="" || $EmailD=="")
{
echo "couldn't find one of the names, please start a new game";
+ output_footer();
exit();
}
@@ -66,6 +67,7 @@ if(myisset("new"))
if($ruleset <0)
{
echo "Error defining ruleset: $ruleset";
+ output_footer();
exit();
};
@@ -157,6 +159,7 @@ else if(myisset("cancle","me"))
{
echo "Can't find you in the database, please check the url.<br />\n";
echo "perhaps the game has been cancled, check by login in <a href=\"$host\">here</a>.";
+ output_footer();
exit();
}
@@ -203,6 +206,7 @@ else if(myisset("me"))
{
echo "Can't find you in the database, please check the url.<br />\n";
echo "perhaps the game has been cancled, check by login in <a href=\"$host\">here</a>.";
+ output_footer();
exit();
}
@@ -413,6 +417,7 @@ else if(myisset("me"))
/* delete everything from the dB */
DB_cancel_game($me);
+ output_footer();
exit();
}
@@ -1029,6 +1034,7 @@ else if(myisset("me"))
default:
echo "error in testing the status";
}
+ output_footer();
exit();
}
/* user status page */
@@ -1093,6 +1099,7 @@ else if(myisset("me"))
{
echo "sorry email and password don't match <br />";
}
+ output_footer();
exit();
}
/* page for registration */
diff --git a/output.php b/output.php
index 1e747e6..77aba21 100644
--- a/output.php
+++ b/output.php
@@ -15,8 +15,8 @@ function display_news()
{
global $wiki;
echo "<div class=\"bug\">\n".
- " Please hit <strong>shift+reload</strong>.<br /><hr />\n".
- " The server now keeps score... (only from now on) <br /><hr />".
+ " Schweinchen should work now (only for new games).<br
+ /><hr />".
" If you find more bugs, please list them in the <a href=\"".
$wiki."\">wiki</a>.\n</div>\n";
return;
@@ -317,7 +317,6 @@ function output_header()
<body onload="high_last();">
<div class="header">
<h1> Welcome to E-Doko </h1>
-<p> Revision: <?php echo "$REV"; ?></p>
</div>
<?php
@@ -328,6 +327,14 @@ function output_header()
function output_footer()
{
+ global $REV;
+
+ echo "<div class=\"footer\">\n";
+ echo "<p class=\"left\"> copyright 2006-2007 Arun Persaud</p>\n";
+ echo "<p class=\"right\"> Revision: $REV; </p> \n";
+ echo "\n";
+ echo "</div>\n";
+
echo "</body>\n";
echo "</html>\n";