aktuellste Stand
parent
02619b31b2
commit
a74a16569d
|
@ -53,7 +53,7 @@
|
|||
session_start();
|
||||
|
||||
if(isset($_SESSION['eingeloggt']) && $_SESSION['eingeloggt'] == 1 ){
|
||||
require_once "anmeldesystem_meinebuecher.php";
|
||||
require_once "meinebuecher.php";
|
||||
}else{
|
||||
echo '
|
||||
|
||||
|
@ -71,7 +71,7 @@
|
|||
<hr>
|
||||
|
||||
<div>
|
||||
<form class="anmeldung-überschriften" accept-charset="UTF-8" action="meinebuecher.php" method="POST">
|
||||
<form class="anmeldung-überschriften" accept-charset="UTF-8" action="anmeldesystem_meinebuecher.php" method="POST">
|
||||
Karten-ID <span id="question-mark">
|
||||
<svg width="20px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||||
<path d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256
|
||||
|
|
|
@ -19,7 +19,15 @@ if(isset($_POST['submit'])){
|
|||
$row = mysqli_fetch_array($existiert);
|
||||
$karteexistiert = runSQL("SELECT COUNT(*) FROM `benutzer` WHERE `KartenID` = '$kartenid'");
|
||||
$zeile = mysqli_fetch_array($karteexistiert);
|
||||
header("Location: meinebuecher.php");
|
||||
if($row['COUNT(*)'] > 0){
|
||||
|
||||
$_SESSION['eingeloggt'] = 1;
|
||||
header("Location: meinebuecher.php");
|
||||
}else if($zeile['COUNT(*)'] > 0){
|
||||
header("Location: passwort_stimmt_nicht.php");
|
||||
}else{
|
||||
header("Location: benutzer_existiert_nicht.php");
|
||||
}
|
||||
|
||||
}else{
|
||||
header("Location: 404.html");
|
||||
|
|
|
@ -53,9 +53,7 @@
|
|||
session_start();
|
||||
|
||||
|
||||
if($row['COUNT(*)'] > 0){
|
||||
|
||||
$_SESSION['eingeloggt'] = 1;
|
||||
|
||||
echo '
|
||||
|
||||
<div class="hauptcontainer">
|
||||
|
@ -198,11 +196,7 @@
|
|||
mysqli_close($connection);
|
||||
|
||||
|
||||
}else if($zeile['COUNT(*)'] > 0){
|
||||
header("Location: passwort_stimmt_nicht.php");
|
||||
}else{
|
||||
header("Location: benutzer_existiert_nicht.php");
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue