Kleine Fehlerkorrekturen
This commit is contained in:
18
index_db.php
18
index_db.php
@ -13,9 +13,9 @@ require_once "language/german.inc.php";
|
||||
|
||||
$action = $_GET['action'];
|
||||
if($action == ''){
|
||||
if(isset($_GET[error])){
|
||||
if(isset($_GET['error'])){
|
||||
|
||||
$errorno = $_GET[error];
|
||||
$errorno = $_GET['error'];
|
||||
|
||||
$smarty->assign('index_error', 1);
|
||||
|
||||
@ -69,23 +69,23 @@ if($action == 'anmeld'){
|
||||
|
||||
|
||||
|
||||
if ($username != strtoupper($row[uid])) {
|
||||
if ($username != strtoupper($row['uid'])) {
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF']."?error=2\">";
|
||||
}
|
||||
// Passwort falsch
|
||||
elseif (md5($password) != $row[passwort]){ //verschlüsseltes Passwort überprüfen
|
||||
elseif (md5($password) != $row['passwort']){ //verschlüsseltes Passwort überprüfen
|
||||
# Cookies werden bereits gesetzt, falls sich jemand ein passwort zusenden lässt.
|
||||
$_SESSION["global_uid"] = $row[imtuid];
|
||||
$_SESSION["global_username"] = $row[uid];
|
||||
$_SESSION["global_uid"] = $row['imtuid'];
|
||||
$_SESSION["global_username"] = $row['uid'];
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF']."?error=3\">";
|
||||
}else{
|
||||
$db = dbconnect();
|
||||
$datum=date("Y-m-d H:i:s");
|
||||
$ip=getenv("REMOTE_ADDR");
|
||||
$agent=getenv("HTTP_USER_AGENT");
|
||||
$user_admin = $row[imtuid];
|
||||
$user_admin = $row['imtuid'];
|
||||
$_SESSION["global_uid"] = $user_admin;
|
||||
$_SESSION["global_username"] = $row[uid];
|
||||
$_SESSION["global_username"] = $row['uid'];
|
||||
$result_1 = $db->query("INSERT INTO imt_userlog (Datum, IP, user_agent, imtuid) VALUES ('$datum', '$ip', '$agent', '$user_admin')");
|
||||
$sql = $db->query ("UPDATE imt_user SET mail_inaktiv='0000-00-00 00:00:00' WHERE imtuid='$user_admin'");
|
||||
$smarty->assign('index_login', "1");
|
||||
@ -98,4 +98,4 @@ if($action == 'anmeld'){
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/$templatename");
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user