0 && $s=="") setcookie("werber",$id,time()+(60*60*24*2)); //if ((isset($l4a_user) && isset($l4a_pass) && $l4a_user != '-') OR (isset($login_user) && isset($login_pass))) { if($_POST["login_user"] && $_POST["login_pass"]) {$u = $login_user; $p = md5(base64_encode($login_pass));} elseif(isset($_COOKIE["user"]) && isset($_COOKIE["pw"])) {$u = $_COOKIE["user"]; $p = $_COOKIE["pw"];} if(isset($u) && isset($p)) { $tb = mysql_query("SELECT * FROM `users` WHERE `username`='".$u."' and MD5(`password`)='".$p."' and einloggen=1"); //echo "SELECT * FROM `users` WHERE `username`='".$u."' and MD5(`password`)='".$p."'"; $user = mysql_fetch_array($tb); echo mysql_error(); if (isset($login_user) && $user[id] > 0) { setcookie("user",$login_user,time()+(60*60*24)); setcookie("pw",md5(base64_encode($login_pass)),time()+(60*60*24)); } /* else { setcookie("user",'-',time()+(60*60*24)); setcookie("pw",'-',time()+(60*60*24)); unset($user); }*/ } if(isset($_GET['s'])){$s=$_GET['s'];} else{$s="home";} $check = explode("admin",$site); if (isset($check[1]) && $check[1]!='') { echo 'Zugriff verweitergt!'; exit; } $check = explode("../",$site); if (isset($check[1]) && $check[1]!='') { echo 'Zugriff verweitergt!'; exit; } // include("_login2.php"); // if ((LoadSetup("wait") == 1) && ($user["username"] != 'resoucer')) $site = 'wait'; if (($user) && ($s != 'login') && ($s != 'logout') && ($user["agb_time"] == '0')) $s = 'agb_request'; include("sites/".$s.".php"); ?>