-<!DOCTYPE html PUBLIC
- "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
- "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <title>e-Doko</title>
- <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
- <link rel="stylesheet" type="text/css" href="css/standard.css" />
- <script type="text/javascript">
- function hl(num) {
- if(document.getElementById){
- var i;
- for(i=1;i<13;i++){
- if(document.getElementById("trick"+i))
- document.getElementById("trick"+i).style.display = 'none';
- }
- document.getElementById("trick"+num).style.display = 'block';
- }
- }
- function high_last(){
- if(document.getElementById){
- var i;
- for(i=12;i>0;i--) {
- if(document.getElementById("trick"+i))
- {
- hl(i);
- break;
- }
- }
- }
- }
- </script>
- </head>
-<body onload="high_last();">
-<div class="header">
-<h1> Welcome to E-Doko </h1>
-</div>
-
<?php
-/* end header */
-
error_reporting(E_ALL);
include_once("config.php");
-include_once("functions.php");
-include_once("db.php");
+include_once("output.php"); /* html output only */
+include_once("db.php"); /* database only */
+include_once("functions.php"); /* the rest */
DB_open();
/***************** M A I N **************************/
+output_header();
+
/* check if we want to start a new game */
if(isset($_REQUEST["new"]))
/* default login page */
else
{ /* no new game, not in a game */
-?>
- <p> If you want to play a game of Doppelkopf, you found the right place ;) </p>
- <p> Please <a href="index.php?register">register</a>, in case you haven't done yet <br />
- or login with you email-address or name and password here:
- </p>
- <form action="index.php" method="post">
- <fieldset>
- <legend>Login</legend>
- <table>
- <tr>
- <td><label for="email">Email:</label></td><td><input type="text" id="email" name="email" size="20" maxlength="30" /> </td>
- </tr><tr>
- <td><label for="password">Password:</label></td><td><input type="password" id="password" name="password" size="20" maxlength="30" /></td>
- </tr><tr>
- <td> <input type="submit" value="login" /></td>
- </table>
- </fieldset>
- </form>
-
-
-
-<?php
+ home_page();
}
-?>
-</body>
-</html>
-<?php
+output_footer();
DB_close();