<?
#
# By : Saanina [@gmail.com]
# 08:32 pm 28/08/28
//thes parameter like when user register it as first time ..
$past_v = md5("1a|2b|3c"); // <<--- this value must stored as name of user etc ..
//inlude class
require ('ocheck_class.php');
//start class
$ch = new ocheck;
//metod for the form
//$ch->method = 'post';
//path of imgs
//$ch->PathImg = 'imgs';
if ( !isset($_GET['ok']) )
{
echo "
<div style=\"background-color:silver\">
hi ... u must enter valid code to login ..this is same code u choosed when u registered..
<br /> example vlaue is [ <img src=\"imgs/1a.gif\" /><img src=\"imgs/2b.gif\" /><img src=\"imgs/3c.gif\" />]
<br />
</div>
";
echo "
<form action=\"?ok=1\" method=\"post\">
";
// show box
$ch->show();
echo "
<br />
<input type=\"submit\" value=\"login\" />
</form>
</body></html>
";
}#get[ok ... = !
//now
if (isset($_GET['ok']))
{
// now .. we see result .. true or false
if ( $ch->result($past_v) )
{ echo "right ooIMG_Check .. you are the best ;) ..."; }
else
{
{ echo "wrong ooIMG_Check ... be careful man ..."; }
}
//to insert to sql for example
//echo $ch->save();
}
?>
|