This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/includes/jpgraph/src/Examples/antispamex01.php

19 lines
477 B
PHP
Raw Normal View History

2011-05-28 09:51:52 +00:00
<?php // content="text/plain; charset=utf-8"
// Antispam example using a random string
require_once "jpgraph/jpgraph_antispam.php";
// Create new anti-spam challenge creator
// Note: Neither '0' (digit) or 'O' (letter) can be used to avoid confusion
$spam = new AntiSpam();
// Create a random 5 char challenge and return the string generated
$chars = $spam->Rand(5);
// Stroke random cahllenge
if( $spam->Stroke() === false ) {
die('Illegal or no data to plot');
}
?>