View sourcecode

The following files exists in this folder. Click to view.

pmanager.php

47 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
setcookie
('username'''time() - 070414);
setcookie('password'''time() - 070414);
if(isset(
$_GET["mess"])){
        switch(
$_GET["mess"]){
            case 
"BAD":
                echo 
"<mark style=\"background-color: rgba(255, 130, 130, 1); border: 1px solid rgba(255, 0, 0, 1);\">Gammalt lösenord fel, försök igen.</mark>";
                break;
            case 
"OLD":
                echo 
"<mark>Byt inte till ditt nuvarande lösenord</mark>";
                break;
        }
    }
?>

<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Byt lösenord</title>
    <link rel ="stylesheet" href="/spectre/spectre-master/dist/spectre.css">
</head>
<body style="text-align: center;">
    <br><br>
    <h1>Byt Lösenord</h1>
    <form method="post" action="pchanger.php">
        <p>
        <label for="pass" class="form-label">Nytt Lösenord</label>
        <input type="password" name="npassword" id="pass" required>
        <br>
        <input type="checkbox" onclick="passShow()"> Visa Lösenord
        </p>
        <p>
            <label for ="pass2" class="form-label">Gammalt lösenord</label>
            <input type="password" name="opassword" id="pass2" required>
        </p>
        <p>*Checka att du skrivit helt rätt,<br>kommer du inte ihåg ditt lösenord så kommer du inte in på ditt konto igen.</p>
        <br>
        <p>
        <input type="submit" name="submit" value="Byt lösenord" class="btn btn-primary">
        <br>*Du kommer att loggas ut
        </p>
    </form>
    <script src="passShow.js"></script>
</body>
</html>