PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Miguel   gpass   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: example
Class: gpass
Authenticate users with graphical images
Author: By
Last change: minimal changes
Date: 8 years ago
Size: 824 bytes
 

Contents

Class file image Download
<?php
require("gPass.class.php");
?>
<!DOCTYPE>
<html|>

<head>
    <title>gPass Test</title>
    <script src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</head>

<body>
    <h1>Please Select 5 Images</h1>
    <?php
        $n
=new gPass();
       
//some changes
       
$n->lenTag=25;
       
$n->codePosition=18;
       
$n->sizeImages=32;
       
//generate code JS (with Jquery)
       
echo $n->generateJs();
       
//generate panel with images
       
echo $n->generateBoard();

       
//if request post is true decodekeys return the code
       
$key= $n->decodeKeys();
       
//your code here (example)
       
if($key!=null){
            foreach(
$key as $img)
                echo
"Image selected ".$img."<br/>";
        }
   
?>
</body>

</html>