diff options
-rw-r--r-- | css/standard.css | 15 | ||||
-rw-r--r-- | index.php | 7 | ||||
-rw-r--r-- | output.php | 13 |
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; @@ -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 */ @@ -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"; |