From 66ab4929f4ab558ad8085c446a03a942104b31ce Mon Sep 17 00:00:00 2001
From: GhadaA98
Date: Sat, 27 May 2023 17:42:56 +0200
Subject: [PATCH] connection mit dem DB hergestellt
---
connect_db.php | 2 +-
registrierung.php | 1939 ++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 1928 insertions(+), 13 deletions(-)
diff --git a/connect_db.php b/connect_db.php
index d5883d8..c4480a4 100644
--- a/connect_db.php
+++ b/connect_db.php
@@ -1,5 +1,5 @@
Verbindung nicht hergestellt
");
diff --git a/registrierung.php b/registrierung.php
index 5becf10..658ac54 100644
--- a/registrierung.php
+++ b/registrierung.php
@@ -1,4 +1,5 @@
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
}else if (!preg_match("/^[A-Za-zÄÖÜäöüß -]*$/", $vorname)
|| !preg_match("/.{2,}/", $vorname)
@@ -23,7 +198,181 @@
|| !preg_match("/^([A-ZÄÖÜa-zäöüß]{2,}[ -]?)+$/", $vorname)
|| !preg_match("/(\w)\1{2,}/", $vorname)) {
-
+ echo '
+
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
}else if (!preg_match("/^[A-Za-zÄÖÜäöüß -]*$/", $nachname)
@@ -33,22 +382,718 @@
|| !preg_match("/(\w)\1{2,}/", $nachname)
|| !preg_match("/[A-ZÄÖÜ][a-zäöüß]+[ ]+[A-ZÄÖÜ][a-zäöüß]+/", $nachname)
|| !preg_match("/^(von( der)?|zu)[ ][A-ZÄÖÜ]|^[A-ZÄÖÜ]/", $nachname)) {
-
+ echo '
+
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
}else if ( !preg_match("/.{2,}/", $strasse)
|| !preg_match("/^[^0-9]*$|[0-9]$/", $strasse)
|| !preg_match("/^[A-Za-z0-9ÄÖÜäöüß' -]+$/", $strasse)
|| !preg_match("/^[A-ZÄÖÜ][ -]?[a-zäöü0-9ß']+([ -]?[A-ZÄÖÜ0-9][A-Za-z0-9ÄÖÜäöüß']+)*$/", $strasse)
|| !preg_match("/[0-9]$|[a-zäöüß]$/", $strasse)) {
-
+ echo '
+
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
}else if ( !preg_match("/^[0-9]/", $hausnummer)
|| !preg_match("/^0/", $hausnummer)
|| !preg_match("/^[A-Za-z0-9ÄÖÜäöüß' -]+$/", $hausnummer)
|| !preg_match("/^[1-9][0-9]{0,3}[a-z]?$/", $hausnummer)){
-
+ echo '
+
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
}else if ( !preg_match("/^(0100[1-9]|010[1-9][0-9]|01[1-9][0-9]{2}|0[2-9][0-9]{3}|[1-9][0-9]{4})$/", $plz)){
-
+ echo '
+
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
}else if ( !preg_match("/.{2,}/", $ort)
|| !preg_match("/[ \/-][ \/-]/", $ort)
|| !preg_match("/^[A-ZÄÖÜa-zäöüß \/-]+$/", $ort)
@@ -56,18 +1101,888 @@
|| !preg_match("/^[A-ZÄÖÜ]/", $ort)
|| !preg_match("/[a-zäöüß]$/", $ort)
|| !preg_match("/^[A-ZÄÖÜ][a-zäöüß]+([ -\/][A-ZÄÖÜa-zäöü][a-zäöüß]+)*$/", $ort)){
-
- }else if ( !preg_match("/[A-Za-z0-9_!#$%&'*+-\/=?^_`.{|}~]+[@][A-Za-z0-9-]+[.][A-Za-z]{2,}/", $ort)){
+ echo '
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ }else if ( !preg_match("/[A-Za-z0-9_!#$%&'*+-\/=?^_`.{|}~]+[@][A-Za-z0-9-]+[.][A-Za-z]{2,}/", $ort)){
+ echo '
+
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
}else if($email != $emailrep){
-
+ echo '
+
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
}else if (!preg_match("/^(?=.*[A-ZÄÖÜ])(?=.*[a-zäöüß])(?=.*[0-9])(?=.*[!°`´@#$%^&*()_+\-=\[\]{};':\"\\|,.<>\/?]).{6,}$/", $hausnummer)
|| !preg_match("/.{6,}/", $ort)){
-
- }else if($passwort != $passwortrep){
-
- }else{
+ echo '
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ }else if($passwort != $passwortrep){
+ echo '
+
+
+
+
+
+
+
+
+ Candle Bibliothek | Registrierung
+
+
+
+
+
+
+
+
+ Bibliothek
+
Candle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ }else{
+
}
}