aktuellste Stand

master
GhadaA98 2023-06-14 19:48:38 +02:00
parent 02619b31b2
commit a74a16569d
3 changed files with 13 additions and 11 deletions

View File

@ -53,7 +53,7 @@
session_start(); session_start();
if(isset($_SESSION['eingeloggt']) && $_SESSION['eingeloggt'] == 1 ){ if(isset($_SESSION['eingeloggt']) && $_SESSION['eingeloggt'] == 1 ){
require_once "anmeldesystem_meinebuecher.php"; require_once "meinebuecher.php";
}else{ }else{
echo ' echo '
@ -71,7 +71,7 @@
<hr> <hr>
<div> <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"> Karten-ID <span id="question-mark">
<svg width="20px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <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 <path d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256

View File

@ -19,7 +19,15 @@ if(isset($_POST['submit'])){
$row = mysqli_fetch_array($existiert); $row = mysqli_fetch_array($existiert);
$karteexistiert = runSQL("SELECT COUNT(*) FROM `benutzer` WHERE `KartenID` = '$kartenid'"); $karteexistiert = runSQL("SELECT COUNT(*) FROM `benutzer` WHERE `KartenID` = '$kartenid'");
$zeile = mysqli_fetch_array($karteexistiert); $zeile = mysqli_fetch_array($karteexistiert);
if($row['COUNT(*)'] > 0){
$_SESSION['eingeloggt'] = 1;
header("Location: meinebuecher.php"); header("Location: meinebuecher.php");
}else if($zeile['COUNT(*)'] > 0){
header("Location: passwort_stimmt_nicht.php");
}else{
header("Location: benutzer_existiert_nicht.php");
}
}else{ }else{
header("Location: 404.html"); header("Location: 404.html");

View File

@ -53,9 +53,7 @@
session_start(); session_start();
if($row['COUNT(*)'] > 0){
$_SESSION['eingeloggt'] = 1;
echo ' echo '
<div class="hauptcontainer"> <div class="hauptcontainer">
@ -198,11 +196,7 @@
mysqli_close($connection); mysqli_close($connection);
}else if($zeile['COUNT(*)'] > 0){
header("Location: passwort_stimmt_nicht.php");
}else{
header("Location: benutzer_existiert_nicht.php");
}
?> ?>