Hendrik: Fehler im Passwortscript!

Beitrag lesen

Kann sich bitte mal jemand die Mühe machen, dieses Script zu überprüfen? Ich habe es aus SELFHTML!

Ich bekomme immer folgende Fehlermeldung:

Parse error: parse error, unexpected $ in /usr/export/www/vhosts/funnetwork/hosting/hendy8/login.php on line 43

Das merkwürdige daran ist, dass in meinem Script in der Zeile 43 nur </html> steht! Also ist das doch Quatsch, oder?

Meine datei login.php:

<?
include("#zugang.php");
?>
<?
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
      session_start();

$user = $_POST['user'];
      $pass = $_POST['pass'];

$hostname = $_SERVER['HTTP_HOST'];
      $path = dirname($_SERVER['PHP_SELF']);

if (isset($user)&& isset($pass)) {
if($user==$user11_ok && $pass==$pass11_ok){$_SESSION['angemeldet'] = true; if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {if (php_sapi_name() == 'cgi') {header('Status: 303 See Other');}else {header('HTTP/1.1 303 See Other');}}header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/index.php');exit;}
elseif($user==$user12_ok && $pass==$pass12_ok){$_SESSION['angemeldet'] = true; if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {if (php_sapi_name() == 'cgi') {header('Status: 303 See Other');}else {header('HTTP/1.1 303 See Other');}}header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/index.php');exit;}
elseif($user==$user13_ok && $pass==$pass13_ok){$_SESSION['angemeldet'] = true; if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {if (php_sapi_name() == 'cgi') {header('Status: 303 See Other');}else {header('HTTP/1.1 303 See Other');}}header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/index.php');exit;}
?>

<html>
<head>
<title>Geschützter Bereich</title>
</head>
<body>
<form action="login.php" method="post">
Username: <input type="text" name="user"><br>
Passwort: <input type="password" name="pass"><br>
<input type="submit" value="Anmelden">
</form>
</body>
</html>

Bitte helft mir mal.
Alles hat bei mir mit nur einem Benutzer super geklappt!

Hendrik