<?php
// ---------------------------------------------------------------------------
// Image Validator by Alfred Reinold Baudisch<alfred_baudisch@hotmail.com>
// Copyright © 2003, 2004 AuriumSoft - www.auriumsoft.com.br
// ---------------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// ---------------------------------------------------------------------------
// You must start sessions in the page you'll use the image validator!
session_start();
?>
<html>
<head>
<title>Validator Example</title>
</head>
<body>
<font face=verdana size=2>
<?php
/**
* The form has posted.
* Check the code which the user has entered!
*/
if(isset($_GET["code"]))
{
require "class.img_validator.php";
$img = new img_validator();
$img->checks_word($_GET["code"]);
echo "<HR>";
}
?>
<body onload="document.forms[0].code.focus();">
<form action="<?echo $_SERVER["PHP_SELF"]?>" method=get>
<img src="img.php" border=0><BR><BR>
Type the image code/word: <input type=text name=code> <input type=submit value="Check it!"><BR>Obs: It must be identical as the image (case sensitive)</form>
</body>
</html>
|