Show sourcecode
The following files exists in this folder. Click to view.
changeowned.php
classes/
createcard.php
database.php
forgot.php
incl/
index.php
leaderboard.php
lineup.php
login.php
logout.php
newpass.php
otherlineup.php
playerinfo.php
projekt.zip
skapatabeller.php
verify.php
newpass.php
38 lines UTF-8 Windows (CRLF)
<?php
$title = "Create new password";
$pageId = "newpass";
$pageStyle = '
figure {
border-radius: 10px;
border-color:#333;
box-shadow: 10px 10px 5px #888;
}';
require_once("classes/user.php");
$user = new User($dbconn);
include("incl/header.php");
?>
<?php
$email = $_SESSION["forgot-email"];
$password = $_SESSION["forgot-password"];
if (isset($email) &&
isset($password) &&
$email == $_GET["email"] &&
$_SESSION["forgot-date"] + 15*60 > time()) {
$user->newpass($email, $password);
}
elseif ($_SESSION["forgot-date"] + 15*60 < time()) {
echo "Du tog för lång tid på dig";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>