-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpwd_test.php
More file actions
44 lines (32 loc) · 792 Bytes
/
Copy pathpwd_test.php
File metadata and controls
44 lines (32 loc) · 792 Bytes
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
<html>
<head>
<title>securepwd class test</title>
</head>
<body>
securepwd class test<br>
<br>
<form method=post action=pwd_test.php>
User: <input type=text name=uid value="<? echo $GLOBALS["uid"]; ?>" size=30><br>
Password: <input type=password name=pwd value="<? echo $GLOBALS["pwd"]; ?>" size=30><br>
<input type=submit value="Check this password">
</form>
<?
if ($GLOBALS["pwd"] != "")
{
include "securepwd.inc.php";
$securepwd = new securepwd (true, true, true, true, $GLOBALS["uid"], 5, "passwords.txt");
if ($securepwd->check ($GLOBALS["pwd"]))
{
echo "This password is secure.";
}
else
{
echo "This password is not secure:<br>";
echo $securepwd->geterror ();
}
echo "<br>Report:<br>";
echo $securepwd->getreport ();
}
?>
</body>
</html>