<?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>
|