<?
if (!isset($_POST['userfeld']) !isset($_POST['pwdfeld'])){
$var = "front";
$var1 = "front";
}
else{
$connect = mysql_connect("localhost","root",""); mysql_select_db("db_kolleg");
$eingabe_name = $_POST['userfeld'];
$eingabe_pw = $_POST['pwdfeld'];
$user_abf = mysql_query("SELECT id, t_check
FROM tbl_user
WHERE t_name = '".mysql_real_escape_string($eingabe_name)."'
AND t_pwd = '".mysql_real_escape_string($eingabe_pw)."'");
// Wenn eine ID zurückkommt
if (mysql_num_rows($user_abf) == 1){
// Hole Daten aus dem Query
$row = mysql_fetch_array($user_abf, MYSQL_ASSOC);
if ($row['t_check'] == 1) {
session_start();
$_SESSION['id']=session_id();
$var="index1";
$rechte="adminmenu";
$_SESSION['menuart']=$rechte;
$_SESSION['null']="0";
$_SESSION['online']="0";
$name=$userfeld;
$_SESSION['profil']=$name;
}else
$var="index";
$akt="deakt";
}else
$var = "index";
$akt="deakt1111";
}
include $var.".php";
?>
hier der logincode