Login   Register  
PHP Classes

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of LlorenÁ Herrera  >  securepwd  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: securepwd
Checks wether a password is secure enough
Author: By
Last change:
Date: 11 years ago
Size: 898 bytes


Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <title>securepwd class test</title>


securepwd class test<br>

<form method=post action=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">


if ($GLOBALS["pwd"] != "")

$securepwd = new securepwd (truetruetruetrue$GLOBALS["uid"], 5"passwords.txt");

        if (
$securepwd->check ($GLOBALS["pwd"]))
"This password is secure.";
"This password is not secure:<br>";
$securepwd->geterror ();


$securepwd->getreport ();