1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
|
<?php
session_start();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../style.css">
<title>Verkaufsstall Emmersbach</title>
</head>
<body>
<?php
include("db.php");
$username = $_POST["username"];
$passwort = md5($_POST["password"]);
$abfrage = "SELECT username, passwort FROM login WHERE username LIKE '$username' LIMIT 1";
$ergebnis = mysql_query($abfrage);
$row = mysql_fetch_object($ergebnis);
if($row->passwort == $passwort)
{
$_SESSION["username"] = $username;
echo "Login erfolgreich.<br> <a href="intern/index.php#" onclick="crush=window.open(/'inern/',/'Gut Emmersbach intern/',/'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=724,height=559/');return false;">Klicke hier um in den internen Bereich zu gelangen.</a>
";
}
else
{
echo "Benutzername und/oder Passwort waren falsch. <a href="login.html">Zurück</a>";
}
?>
</body>
</html> |