$value) { ${$k} = $value; } require("root.inc"); require($include."db.php"); include($include."config.ini"); include($include."lang.ini"); if(empty($db)) { print("Datenbank-Verbindung fehlgeschlagen"); } if(isset($set)) { if(isset($_POST[chkpass]) or empty($_POST[pass]) or empty($_POST[user])) { $aktion = "e5"; $zeit = date("Y-m-d H:i:s"); $IP = $REMOTE_ADDR; $hostaddress = getenv('REMOTE_ADDR'); if (!$hostaddress) { $hostaddress = getenv('REMOTE_HOST'); } $hostaddress = @GetHostByAddr($hostaddress); mysql_query("INSERT INTO nbuilder_stats VALUES ('unknown','$aktion','$zeit','$IP $hostaddress')"); exit(); } if(isset($login)) { $chk = mysql_query("SELECT * FROM nbuilder_user WHERE name = '$_POST[user]'"); if(empty($chk)) { $notfound = true; } if($chk) { $chk = mysql_fetch_array($chk); $chkpass = $chk["passwort"]; $chkuser = $chk["name"]; $pass = md5($_POST[pass]); trim($pass); trim($chkpass); if($pass == $chkpass AND $chkuser == $user) { @session_start(); session_register("user"); $_SESSION["user"] = $chkuser; header("Location: main.php?".SID); } else { $chkpass = false; } } } } ?> Login-Testform
CDU - Hornister Administration

Newssystem-Login
Login:
Password:
powered by Netbuilder
".$error_msg["user-not-found"].""); } if($chkpass == false) { print("

".$error_msg["login-failed"].""); } } ?>