Hendrik search #94

Merged
11342374 merged 12 commits from hendrik-search into master 2017-01-20 16:20:07 +01:00
Showing only changes of commit eb1fc15401 - Show all commits

View File

@@ -7,6 +7,18 @@
include_once("../queries/checkInput.php") include_once("../queries/checkInput.php")
?> ?>
<body> <body>
<script>
function checkLoggedIn() {
if (confirm("You are already logged in!\Do you want to logout?\Press ok to logout.") == true) {
unset($_SESSION["userID"]);
header("Location: login.php");
} else {
header("location: profile.php");
}
document.getElementById("demo").innerHTML = x;
}
</script>
<?php <?php
session_start(); session_start();
@@ -48,18 +60,5 @@
/* This view adds login view */ /* This view adds login view */
include("../views/login-view.php"); include("../views/login-view.php");
?> ?>
<script>
function checkLoggedIn() {
if (confirm("You are already logged in!\Do you want to logout?\Press ok to logout.") == true) {
unset($_SESSION["userID"]);
header("Location: login.php");
} else {
header("location: profile.php");
}
document.getElementById("demo").innerHTML = x;
}
</script>
</body> </body>
</html> </html>