Eurolab

[insert_php]
$xX=0;
include ‚_dbconnectionN.php‘;
$connection = $db or die („Konnte keine Verbindung zur Datenbank herstellen“);
if($connection) {
if (isset($_POST[‚User‘]) and isset($_POST[‚Passwort‘])) {
$User = $_POST[‚User‘];
$Passwort = $_POST[‚Passwort‘];
$res = mysqli_query($db, „SELECT `Benutzer_Name` FROM `Firmen_menue` WHERE `Benutzer_Name`=’$User‘ AND `Benutzer_Passwort`=’$Passwort‘ AND `ELAB`=’1′“);
$treffer = mysqli_num_rows($res);
mysqli_free_result($res);
if($treffer > 0 && $User) {$_SESSION[‚lodrE7si‘] = $User; $xX=2;} else {$xX=1;}
//——————————LOGOUT——————————
} elseif (isset($_POST[‚Logout‘])) {
unset($User);
$_POST[‚User‘] = “;
unset($Passwort);
$_POST[‚Passwort‘] = “;
session_destroy();
$xX = 1;
//—————————-LOGOUT END—————————-
} else {
if (isset($_SESSION[‚lodrE7si‘])) {
$User = $_SESSION[‚lodrE7si‘];
$res = mysqli_query($db, „SELECT `Benutzer_Name` FROM `Firmen_menue` WHERE `Benutzer_Name`=’$User‘ AND `ELAB`=’1′“);
$treffer = mysqli_num_rows($res);
mysqli_free_result($res);
if($treffer > 0 && $User) {$xX=2;} else {$xX=1;}
} else {$xX=1;}
}
mysqli_close($db);
} else {$xX=1;}

if ($xX==1) {
echo <<Dokumente und Informationen für Eurolab


User

Passwort