Login   Register  
PHP Classes
elePHPant
Icontem

File: verify.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Julio Romano  >  Image Verification  >  verify.php  >  Download  
File: verify.php
Role: Example script
Content type: text/plain
Description: Example verification script
Class: Image Verification
Generate and verify CAPTCHA validation images
Author: By
Last change:
Date: 8 years ago
Size: 2,012 bytes
 

Contents

Class file image Download
<?

include("ImgVerification.php");

$vImg = new ImageVerification;
$vImg->leCodigos();
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#006699">
     <tr align="center" bordercolor="#FFFFFF" bgcolor="#3399CC">
      <td colspan="2" bgcolor="#FFFFFF"><font color="#000000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>Verification Image
      </strong></font></td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td colspan="2"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;</font></td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td width="16%" nowrap bgcolor="#FFFFFF"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Image code:
      </font></td>
      <td width="84%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>
      <?
          
echo $vImg->codSes;
      
?>
      </strong></font></td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td nowrap bgcolor="#FFFFFF"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Code Typed:
      </font></td>
      <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>
      <?
          
echo $vImg->codDig;
      
?>
</strong></font></td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td colspan="2" nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;</font></td>
    </tr>
    <tr align="center" bordercolor="#FFFFFF">
      <td colspan="2" nowrap><font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>
        <? if ($vImg->comparaCodigos()) {
            echo 
"Valid Code!";
        }else{
            echo 
"Wrong Code!";
        }
        
?>
     </strong></font></td>
    </tr>
    <tr bordercolor="#FFFFFF">
      <td colspan="2" nowrap>&nbsp;</td>
    </tr>

</table>
</body>
</html>