index.php

Ga naar de documentatie van deze file.
00001 <?php
00002 session_start();
00003 
00004 /***************************************************************************
00005  *   Copyright (C) 2007 by Damian Bodde and Peter Wessels                  *
00006  *   damian@elsw.de  peter1wessels@gmail.com                               *
00007  *                                                                         *
00008  *   This program is free software; you can redistribute it and/or modify  *
00009  *   it under the terms of the GNU General Public License as published by  *
00010  *   the Free Software Foundation; either version 2 of the License, or     *
00011  *   (at your option) any later version.                                   *
00012  *                                                                         *
00013  *   This program is distributed in the hope that it will be useful,       *
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00016  *   GNU General Public License for more details.                          *
00017  *                                                                         *
00018  *   You should have received a copy of the GNU General Public License     *
00019  *   along with this program; if not, write to the                         *
00020  *   Free Software Foundation, Inc.,                                       *
00021  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00022  ***************************************************************************/
00023 ?>
00024 
00025 <?php
00026 require("config.inc.php");
00027 require("mysql_connect.php");
00028 $ip = $_SERVER['REMOTE_ADDR'];
00029 $datum = date("d.m.Y");
00030 $zeit  = date("H:i:s");
00031 ?>
00032 
00033 <table>
00034                 <tr>
00035                                 <td valign=top>
00036                                                 <?php
00037                                                                 if($_SESSION['nick'] == "")
00038                                                                 {
00039                                                                                 ?>
00040                                                                                                 <a href=index.php?menu=registrieren>Registreren</a><br>
00041                                                                                                 <a href=index.php?menu=login>Inloggen</a><br>
00042                                                                                 <?php
00043                                                                 }
00044                                                                 else
00045                                                                 {
00046                                                                                 ?>
00047                                                                                                 <a href=index.php?menu=inventar>Inventar</a><br>
00048                                                                                                 <a href=index.php?menu=bank>Bank</a><br>
00049                                                                                                 <a href=index.php?menu=login>Ausloggen</a><br>
00050                                                                                 <?php
00051                                                                                 if($_SESSION['level'] == "255")
00052                                                                                 {
00053                                                                                                 // Admin menu
00054                                                                                 }
00055                                                                                 elseif($_SESSION['level'] == "50")
00056                                                                                 {
00057                                                                                                 // Moderator menu
00058                                                                                 }
00059                                                                 }
00060                                                                 
00061                                                 ?>
00062                                 </td>
00063                                 
00064                                 <td valign=top>
00065                                                 <?php
00066                                                                 switch($_GET['menu'])
00067                                                                 {
00068                                                                                 case "registrieren":
00069                                                                                                 require("registrieren.php");
00070                                                                                 break;
00071                                                                                 
00072                                                                                 case "login":
00073                                                                                                 require("login.php");
00074                                                                                 break;
00075                                                                                 
00076                                                                                 case "bank":
00077                                                                                                 require("bank.php");
00078                                                                                 break;
00079                                                                                 
00080                                                                                 case "inventar":
00081                                                                                                 if($_SESSION != "")
00082                                                                                                 {
00083                                                                                                                 require("inventar.php");
00084                                                                                                 }
00085                                                                                 break;
00086                                                                 }
00087                                                 ?>
00088                                 </td>
00089                 </tr>
00090 </table>

Gegenereerd op Wed May 30 17:41:05 2007 voor criminalcity.kdevelop door  doxygen 1.4.7