Selador / index.php

<?php

/* index.php - Front-end code for the main Selador start page
 *
 * Copyright (C) 2006, 2007, 2008 Kevin Read, Simone Schaefer
 *
 * This file is part of Selador, a browser-based fantasy strategy game
 *
 * This program is distributed under the terms of the GNU Affero General Public License.
 *
 *
 *   Selador is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU Affero General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   any later version.
 *
 *   Selador is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Affero General Public License for more details.
 *
 *   You should have received a copy of the GNU Affero General Public License
 *   along with Selador.  If not, see <http://www.gnu.org/licenses/>.
 **/


// You definitely want to fit this to your needs.

// Don't forget that the AGPL forces you to make the sources of _your_
// version of Selador available to your users. So if you have changed
// the code, don't just link back to the project web page (unless of
// course you have checked your changes back in :)

$cwd = getcwd ();
ini_set("include_path", $cwd."/php:".$cwd."/php/base:".$cwd."/var/php:.");

require_once ("config.inc.php");

@session_start ();
@header ("Content-Type: text/html; charset=UTF-8");

if (isset ($_POST['username']))
{
	require_once ("php/auth.php");
	ShowAuth();
}

$webtitle = "Startseite";

if (isset ($_SESSION['world_entered']))
{
	require_once ("land.php");
	die ();
}

if (isset ($_SESSION['authed_user']))
{
	require_once ("portal.php");
	die ();
}

if (!IS_PORTAL && strcmp (MASTERURL, ""))
	header ("Location: ".MASTERURL);
require_once("header_extern.php");
?>
</head>
<?php
require_once ("menue.php");
?>
<div id="outer">
	<div id="inner">
		<div id="leiste-links">
			<div id="townmenu">
				<h3>Einloggen</h3>
				<?php
				if (isset ($login_message))
					echo "<span class=\"error\">".$login_message."</span>";

				if ((strstr ($_SERVER['PHP_SELF'], "index.php")) || (strstr ($_SERVER['PHP_SELF'], "logout.php")))
					$submit_page = "land.php";
				else
					$submit_page = $_SERVER['PHP_SELF'];

				echo "<form action=\"".$submit_page."\" method=\"POST\">\n";
				?>

				Name <br><input type ="textarea" class="eingabe" name="username" size="12"><br><br>
				Kennwort<br> <input type ="password" class="eingabe" name="password" size="12"><br><br>
				<input  type="submit" name="submit" value="Einloggen!" onclick=""><br>
				</form><br>
				<a href="lostpw.php" >Passwort vergessen?</a><br>
				<a href="newuser.php" >Neu anmelden</a><br>
			</div>
		</div>
	</div>
</div>
<div id="contentbox">
	<div  id="mainbox">
		<table>
			<tr>
				<td>
					<h2>Willkommen in Selador</h2>
					Selador ist ein Spiel, in dem du mit vielen anderen Spielern eine fremde Welt besiedelst. Baue ein kleines Dorf zu einer großen Stadt aus, handle mit deinen Nachbarn oder plündere ihre Dörfer -  es liegt in deiner Hand. Erforsche die mysteriöse Welt von Selador.
				</td>
			</tr>
		</table>
		<table>
			<tr>
				<td>
					<img src="gfx/start/screen1.png" />
				</td>
				<td>
					<img src="gfx/start/screen2.png" />
				</td>
				<td>
					<img src="gfx/start/screen3.png" />
				</td>
			</tr>
		</table>

		<table>
			<tr>
				<td>
					<ul>
						<li>Ohne Download im Browser spielbar</li>
						<li>keine Spielevorteile zu kaufen</li>
						<li>interaktives Tutorial</li>

						<li>zwei Völker und vier Klassen mit unterschiedlichen Vorteilen</li>
						<li>Einheiten mit Spezialfähigkeiten (z.B. Resistenz gegen Pfeile)</li>
						<li>gemeinsam angreifen und verteidigen</li>
					</ul>
				</td>
			</tr>
			<tr>

				<td>
					<h2>Neugierig geworden?</h2>
					<a href="newuser.php">Hier</a> kannst du dich kostenlos anmelden. 
				</td>
			</tr>
		</table>
	</div>
	<!--<div id="news">
		Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
	</div>-->
</div>
<?php
require_once("footer_outer.php");
?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.