minor changes
formatting and redirect after login
This commit is contained in:
parent
26ecb2596f
commit
55450d4ff4
@ -3,7 +3,6 @@
|
|||||||
if(isset($_POST['tanID'])){
|
if(isset($_POST['tanID'])){
|
||||||
//echo "Tan ->" . $_POST['tan'] . "<-";
|
//echo "Tan ->" . $_POST['tan'] . "<-";
|
||||||
if($_POST['tanID'] != ""){
|
if($_POST['tanID'] != ""){
|
||||||
addEntry();
|
|
||||||
consumeTan($_POST['tanID']);
|
consumeTan($_POST['tanID']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -52,7 +51,7 @@
|
|||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$stmt->close();
|
$stmt->close();
|
||||||
|
|
||||||
echo "Daten eingefuegt! <br>";
|
echo '<script> alert("Daten eingefuegt!"); </script>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,6 +92,7 @@ function consumeTan($tanID) {
|
|||||||
$update = $database->query("UPDATE `tans` SET `used`= true WHERE `id` = '" . $_POST['tanID'] . "'");
|
$update = $database->query("UPDATE `tans` SET `used`= true WHERE `id` = '" . $_POST['tanID'] . "'");
|
||||||
|
|
||||||
echo "Tan verbraucht " . $_POST['tanID'];
|
echo "Tan verbraucht " . $_POST['tanID'];
|
||||||
|
addEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -15,7 +15,8 @@ if( (isset($_POST['loginName'])) && isset($_POST['loginPassword'])){
|
|||||||
$_SESSION['user'] = $object->id;
|
$_SESSION['user'] = $object->id;
|
||||||
$_SESSION['username'] = $object->username;
|
$_SESSION['username'] = $object->username;
|
||||||
echo "Einloggen erfolgreich <br> Willkommen " . $_SESSION['username'];
|
echo "Einloggen erfolgreich <br> Willkommen " . $_SESSION['username'];
|
||||||
header("refresh:1;");
|
//header("refresh:1;");
|
||||||
|
header('Location: index.php?page=myFriendsBook');
|
||||||
} else {
|
} else {
|
||||||
echo "Einloggen fehlgeschlagen";
|
echo "Einloggen fehlgeschlagen";
|
||||||
}
|
}
|
||||||
|
@ -40,13 +40,13 @@
|
|||||||
echo'<p class="card-text">Festnetz: ' . $row['festnetz'] . '</p>';
|
echo'<p class="card-text">Festnetz: ' . $row['festnetz'] . '</p>';
|
||||||
}
|
}
|
||||||
if(!empty($row['handynummer'])){
|
if(!empty($row['handynummer'])){
|
||||||
echo'<p class="card-text">Handynummer:' . $row['handynummer'] . '</p>';
|
echo'<p class="card-text">Handynummer: ' . $row['handynummer'] . '</p>';
|
||||||
}
|
}
|
||||||
if(!empty($row['email'])){
|
if(!empty($row['email'])){
|
||||||
echo'<p class="card-text">E-Mail: ' . $row['email'] . '</p>';
|
echo'<p class="card-text">E-Mail: ' . $row['email'] . '</p>';
|
||||||
}
|
}
|
||||||
if(!empty($row['hobbies'])){
|
if(!empty($row['hobbies'])){
|
||||||
echo'<p class="card-text">Hobbies:' . $row['hobbies'] . ' </p>';
|
echo'<p class="card-text">Hobbies: ' . $row['hobbies'] . ' </p>';
|
||||||
}
|
}
|
||||||
if(!empty($row['berufswunsch'])){
|
if(!empty($row['berufswunsch'])){
|
||||||
echo'<p class="card-text">Berufswunsch: ' . $row['berufswunsch'] . '</p>';
|
echo'<p class="card-text">Berufswunsch: ' . $row['berufswunsch'] . '</p>';
|
||||||
@ -70,7 +70,7 @@
|
|||||||
echo'<p class="card-text">Mein Lieblingstier: ' . $row['tier'] . '</p>';
|
echo'<p class="card-text">Mein Lieblingstier: ' . $row['tier'] . '</p>';
|
||||||
}
|
}
|
||||||
if(!empty($row['musik'])){
|
if(!empty($row['musik'])){
|
||||||
echo'<p class="card-text">Lieblingsmusik:' . $row['musik'] . '</p>';
|
echo'<p class="card-text">Lieblingsmusik: ' . $row['musik'] . '</p>';
|
||||||
}
|
}
|
||||||
if(!empty($row['game'])){
|
if(!empty($row['game'])){
|
||||||
echo'<p class="card-text">Geilstes Game: ' . $row['game'] . '</p>';
|
echo'<p class="card-text">Geilstes Game: ' . $row['game'] . '</p>';
|
||||||
|
Loading…
Reference in New Issue
Block a user