anmeldung

master
GhadaA98 2023-06-05 15:13:50 +02:00
parent cfb1d8f8ee
commit c56d4fd19d
4 changed files with 204 additions and 82 deletions

View File

@ -131,7 +131,7 @@
<hr> <hr>
<div> <div>
<form class="anmeldung-überschriften" accept-charset="UTF-8"action="meinebuecher.php"> <form class="anmeldung-überschriften" accept-charset="UTF-8" action="meinebuecher.php">
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

@ -0,0 +1,98 @@
<!DOCTYPE html>
<html>
<head>
<meta lang="de"/>
<meta charset="utf-8"/>
<meta name="viewport" content="device=device-width, initial-scaling=1"/>
<link rel="Stylesheet" type="text/css" href="style.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Candle Bibliothek | Erfolgreich Registriert</title>
<link rel="icon" href="pictures/candle.png">
</head>
<body>
<header>
<h1 class="kopf" >
<br><br>
Bibliothek <a href="index.html" id="bildID"> <img id="CandleID" src="pictures/candle.png" alt="Bild von einer Kerze"
width="200" height="192"/> </a>
<br><br> Candle
</h1>
<div>
<a id="uberuns" href="uberuns.html">Über Uns</a>
<a id="buecher" href="buecher.php">Bücher</a>
<a id="meinebuecher" href="anmelden_meinebuecher.php">Meine Bücher</a>
<a id="abmelden" href="abmelden.php">Abmelden</a>
<form action="">
<input class="suchleiste" type="search" placeholder="Suche..." >
<button type="submit" id="buttonID" class="searchButton"><i class="fa fa-search"></i> </button>
</form>
<a id="erweitertesuche" href="erweitertesuche.html">Erweiterte Suche</a>
<a href="anmelden.php" id="warenKorbID"> <img id="shoppingCard" src="pictures/einkaufswagen.png" alt="Bild von einem Wagen"
width="50" height="50"/> </a>
</div>
</header>
<!--------------------------------------------------------------------->
<div class="mainContentContainer">
<div class="titleContainer">
<h1 id="registeredTitle">Fehler</h1>
</div>
<div class="mainContent">
<p id="textFirstHalf">
Sie haben sich noch nicht registriert!
</p>
<input type="button" id="loginNowButton" value="jetzt Registrieren"
onclick="linkToRegisterPage()">
<script>
function linkToRegisterPage() {
window.location.replace("registrierung.php");
}
</script>
<br><br><br>
</div>
</div>
<!--------------------------------------------------------------------->
<!--Link JS file-->
<script src="burgerIcon.js"></script>
<script>
var widthissue = false;
window.addEventListener("resize", function(event) {
if(window.innerWidth > 800 && widthissue) {
widthissue = false
unset()
}
else if(window.innerWidth < 800) widthissue = true;
})
</script>
<nav id="activeid" class="active">
<div class="navLinks">
<input class="nav-toggleclass"id="nav-toggle" type="checkbox" onclick="openNav()";>
<label for="nav-toggle" class="icon-burger" >
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</label>
</div>
</nav>
<footer class="fuss" >
<div>
<a id="impressum" href="impressum.html">Impressum</a>
<a id="kontakt" href="kontakt.html">Kontakt</a>
<a id="datenschutz" href="datenschutz.html">Datenschutz</a>
</div>
</footer>
</body>
</html>

View File

@ -1,84 +1,98 @@
<!DOCTYPE html> <!DOCTYPE html>
<?php <?php
require('registriersystem.php');
session_start(); session_start();
$_SESSION['eingeloggt'] = 1; if(isset($_POST['Anmelden'])){
echo '<html> $kartenid = $_POST["karten-id"];
<head> $passwort = $_POST['password'];
<meta lang="de"/> $existiert = runSQL("SELECT COUNT(*) FROM `benutzer` WHERE `KartenID` = '$kartenid' and `Passwort` = '$passwort'");
<meta charset="utf-8"/> $row = mysqli_fetch_array($existiert);
<meta name="viewport" content="device=device-width, initial-scaling=1"/>
<link rel="Stylesheet" type="text/css" href="style.css"/> if($row['COUNT(*)'] > 0){
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Candle Bibliothek | Meine Bücher</title> $_SESSION['eingeloggt'] = 1;
<link rel="icon" href="pictures/candle.png"> echo '<html>
</head> <head>
<body> <meta lang="de"/>
<meta charset="utf-8"/>
<header> <meta name="viewport" content="device=device-width, initial-scaling=1"/>
<h1 class="kopf" > <link rel="Stylesheet" type="text/css" href="style.css"/>
<br><br> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
Bibliothek <a href="index.html" id="bildID"> <img id="CandleID" src="pictures/candle.png" alt="Bild von einer Kerze" <title>Candle Bibliothek | Meine Bücher</title>
width="200" height="192"/> </a> <link rel="icon" href="pictures/candle.png">
<br><br> Candle </head>
</h1> <body>
<div>
<a id="uberuns" href="uberuns.html">Über Uns</a> <header>
<a id="buecher" href="buecher.php">Bücher</a> <h1 class="kopf" >
<a id="meinebuecher" href="meinebuecher.php">Meine Bücher</a> <br><br>
<a id="abmelden" href="abmelden.php">Abmelden</a> Bibliothek <a href="index.html" id="bildID"> <img id="CandleID" src="pictures/candle.png" alt="Bild von einer Kerze"
<form action=""> width="200" height="192"/> </a>
<input class="suchleiste" type="search" placeholder="Suche..." > <br><br> Candle
<button type="submit" id="buttonID" class="searchButton"><i class="fa fa-search"></i> </button> </h1>
</form> <div>
<a id="erweitertesuche" href="erweitertesuche.html">Erweiterte Suche</a> <a id="uberuns" href="uberuns.html">Über Uns</a>
<a href="warenkorb.php" id="warenKorbID"> <img id="shoppingCard" src="pictures/einkaufswagen.png" alt="Bild von einem Wagen" <a id="buecher" href="buecher.php">Bücher</a>
width="50" height="50"/> </a> <a id="meinebuecher" href="meinebuecher.php">Meine Bücher</a>
</div> <a id="abmelden" href="abmelden.php">Abmelden</a>
</header> <form action="">
<div class="containerofmeinebuecher"> <input class="suchleiste" type="search" placeholder="Suche..." >
<p id="meinebüchertitel">Meine Bücher</p> <button type="submit" id="buttonID" class="searchButton"><i class="fa fa-search"></i> </button>
</form>
</div> <a id="erweitertesuche" href="erweitertesuche.html">Erweiterte Suche</a>
<a href="warenkorb.php" id="warenKorbID"> <img id="shoppingCard" src="pictures/einkaufswagen.png" alt="Bild von einem Wagen"
width="50" height="50"/> </a>
</div>
</header>
<!--Link JS file--> <div class="containerofmeinebuecher">
<script src="burgerIcon.js"></script> <p id="meinebüchertitel">Meine Bücher</p>
<script> </div>
var widthissue = false;
window.addEventListener("resize", function(event) {
if(window.innerWidth > 800 && widthissue) {
widthissue = false
unset() <!--Link JS file-->
} <script src="burgerIcon.js"></script>
else if(window.innerWidth < 800) widthissue = true;
}) <script>
var widthissue = false;
</script> window.addEventListener("resize", function(event) {
<!--Burger--> if(window.innerWidth > 800 && widthissue) {
<nav id="activeid" class="active"> widthissue = false
<div class="navLinks"> unset()
<input class="nav-toggleclass"id="nav-toggle" type="checkbox" onclick="openNav()";> }
<label for="nav-toggle" class="icon-burger" > else if(window.innerWidth < 800) widthissue = true;
<div class="line"></div> })
<div class="line"></div>
<div class="line"></div> </script>
</label> <!--Burger-->
</div> <nav id="activeid" class="active">
</nav> <div class="navLinks">
<input class="nav-toggleclass"id="nav-toggle" type="checkbox" onclick="openNav()";>
<label for="nav-toggle" class="icon-burger" >
<footer class="fuss" > <div class="line"></div>
<div> <div class="line"></div>
<a id="impressum" href="impressum.html">Impressum</a> <div class="line"></div>
<a id="kontakt" href="kontakt.html">Kontakt</a> </label>
<a id="datenschutz" href="datenschutz.html">Datenschutz</a> </div>
</div> </nav>
</footer>
</body>
<footer class="fuss" >
</html>'; <div>
<a id="impressum" href="impressum.html">Impressum</a>
<a id="kontakt" href="kontakt.html">Kontakt</a>
<a id="datenschutz" href="datenschutz.html">Datenschutz</a>
</div>
</footer>
</body>
</html>';
}else{
}
}
?> ?>

View File

@ -1,8 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<?php <?php
require('registriersystem.php');
session_start(); session_start();
$_SESSION['eingeloggt'] = 1; if(isset($_POST['Anmelden'])){
$kartenid = $_POST["karten-id"];
$passwort = $_POST['password'];
$existiert = runSQL("SELECT COUNT(*) FROM `benutzer` WHERE `KartenID` = '$kartenid' and `Passwort` = '$passwort'");
$row = mysqli_fetch_array($existiert);
if($row['COUNT(*)'] > 0){
$_SESSION['eingeloggt'] = 1;
echo '<html> echo '<html>
<head> <head>
@ -97,5 +106,6 @@
</body> </body>
</html>'; </html>';
}
}
?> ?>