status.php

Ga naar de documentatie van deze file.
00001 <?php
00002 /***************************************************************************
00003  *   Copyright (C) 2007 by Damian Bodde and Peter Wessels                  *
00004  *   damian@elsw.de  peter1wessels@gmail.com                               *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  *                                                                         *
00011  *   This program is distributed in the hope that it will be useful,       *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU General Public License for more details.                          *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this program; if not, write to the                         *
00018  *   Free Software Foundation, Inc.,                                       *
00019  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00020  ***************************************************************************/
00021 ?>
00022 <?php
00023 // De Variablen
00024 $sql = "SELECT * FROM `users` WHERE `name`='".$_SESSION['nick']."'";
00025 $res = mysql_query($sql);
00026 $row = mysql_fetch_assoc($res);
00027 // Niet ingelogd? Foej! Terug jij!
00028 if($_SESSION['nick'] == "")
00029                 {
00030                                 echo "Je bent niet ingelogd.";
00031                                 echo "<meta http-equiv=\"refresh\" content=\"1; URL=index.php\">";
00032                 }
00033 // Gewoon netjes ingelogd...
00034 else
00035                 {
00036                                 // Gewoon simpel statusen printen met echo
00037                                 echo "<center>Welkom terug: ".ucfirst($_SESSION['nick'])."<br></center>";
00038                                 echo "E-Mail: ".$row['email']."<br>";
00039                                 echo "Geld: ".$row['geld']."$<br>";
00040                                 echo "Status: ".$row['status']."<br>";
00041                                 echo "Gezondheid: ".$row['health']."%";
00042                 }
00043 ?>

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