"; if (TO_DO=="login") { $login=$_POST['login']; $password=md5($_POST['password']); $query=mysql_query("SELECT `password` FROM `player` WHERE `alias` = '$login' AND `password` IS NOT NULL LIMIT 0 , 30",DB); $data=mysql_fetch_array($query); if ($data['password']==$password) { $_SESSION['login']=$login; } else $ERROR.="Login nicht erfolgreich!
"; } if ($page=="logout") { $_SESSION['login']=""; $page=""; } if (isset($_SESSION['login'])) define ("LOGIN",$_SESSION['login']); else define ("LOGIN",""); if (LOGIN!="") { $BODY.='
'.add_icon('user')."  ".LOGIN."    "; $BODY.=''.add_icon("new_game").'Neues Spiel'; $BODY.="
"; } $BODY.="

"; //include the requestet page if ($page=="login") include ("login.php"); elseif ($page=="rank" ) include ("rank.php" ); elseif ($page=="games" ) include ("games.php" ); elseif ($page=="edit_game" ) include ("edit_game.php" ); elseif ($page=="poker_pott") include("poker_pott.php"); else include ("main.php"); //include the Template include ("template.php"); //End of Script mysql_close(DB); ?>