im gonna marry christmas after im done commiting shit
This commit is contained in:
parent
5282fc056c
commit
4a93e2a541
|
|
@ -1,13 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>grublock | login</title>
|
||||
<?php
|
||||
if(isset($_SESSION['user'])) {
|
||||
header("Location: /home");
|
||||
}
|
||||
require_once 'core/classes.php';
|
||||
require_once 'core/classes/User.php';
|
||||
require_once 'core/config.php';
|
||||
|
||||
$getitstarted = new PartyStarter;
|
||||
$getitstarted->buildloggedoutheader();
|
||||
$getitstarted->header();
|
||||
$passwordiswrong = false;
|
||||
$user = new User($con, 0);
|
||||
if(isset($_POST['submit'])) {
|
||||
|
|
@ -23,7 +27,6 @@ if(isset($_POST['submit'])) {
|
|||
if ($result > 0) {
|
||||
if ($password == $user->getPassword($con, $username)) {
|
||||
$_SESSION["user"] = $user->getID($con, $username);
|
||||
header("Location: /home");
|
||||
} else {
|
||||
$passwordiswrong = true;
|
||||
echo $password." - sex - ".$user->getPassword($con, $username);
|
||||
|
|
@ -63,4 +66,4 @@ echo "form-control form-control-sm";
|
|||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue