diff --git a/segments/_entryForm.php b/segments/_entryForm.php index 302e770..4f17cea 100644 --- a/segments/_entryForm.php +++ b/segments/_entryForm.php @@ -3,7 +3,6 @@ if(isset($_POST['tanID'])){ //echo "Tan ->" . $_POST['tan'] . "<-"; if($_POST['tanID'] != ""){ - addEntry(); consumeTan($_POST['tanID']); } } @@ -52,7 +51,7 @@ $stmt->execute(); $stmt->close(); - echo "Daten eingefuegt!
"; + echo ''; } @@ -93,6 +92,7 @@ function consumeTan($tanID) { $update = $database->query("UPDATE `tans` SET `used`= true WHERE `id` = '" . $_POST['tanID'] . "'"); echo "Tan verbraucht " . $_POST['tanID']; + addEntry(); } ?> diff --git a/segments/_login.php b/segments/_login.php index c9816bd..2a37627 100644 --- a/segments/_login.php +++ b/segments/_login.php @@ -15,7 +15,8 @@ if( (isset($_POST['loginName'])) && isset($_POST['loginPassword'])){ $_SESSION['user'] = $object->id; $_SESSION['username'] = $object->username; echo "Einloggen erfolgreich
Willkommen " . $_SESSION['username']; - header("refresh:1;"); + //header("refresh:1;"); + header('Location: index.php?page=myFriendsBook'); } else { echo "Einloggen fehlgeschlagen"; } diff --git a/segments/_myFriendsBook.php b/segments/_myFriendsBook.php index 7d3d14d..53fa8e8 100644 --- a/segments/_myFriendsBook.php +++ b/segments/_myFriendsBook.php @@ -40,13 +40,13 @@ echo'

Festnetz: ' . $row['festnetz'] . '

'; } if(!empty($row['handynummer'])){ - echo'

Handynummer:' . $row['handynummer'] . '

'; + echo'

Handynummer: ' . $row['handynummer'] . '

'; } if(!empty($row['email'])){ echo'

E-Mail: ' . $row['email'] . '

'; } if(!empty($row['hobbies'])){ - echo'

Hobbies:' . $row['hobbies'] . '

'; + echo'

Hobbies: ' . $row['hobbies'] . '

'; } if(!empty($row['berufswunsch'])){ echo'

Berufswunsch: ' . $row['berufswunsch'] . '

'; @@ -70,7 +70,7 @@ echo'

Mein Lieblingstier: ' . $row['tier'] . '

'; } if(!empty($row['musik'])){ - echo'

Lieblingsmusik:' . $row['musik'] . '

'; + echo'

Lieblingsmusik: ' . $row['musik'] . '

'; } if(!empty($row['game'])){ echo'

Geilstes Game: ' . $row['game'] . '

';