ggdworkshop/public/js/lib/demo/captcha/rand.php
German Correa 9c11ba4d38 Manual merge html from master
- Delete old files
- Re-estructure project dirs
2017-12-09 19:18:51 -03:00

11 lines
403 B
PHP

<?php
// Create a random string, leaving out 'o' to avoid confusion with '0'
$char = strtoupper(substr(str_shuffle('abcdefghjkmnpqrstuvwxyz'), 0, 4));
// Concatenate the random string onto the random numbers
// The font 'Anorexia' doesn't have a character for '8', so the numbers will only go up to 7
// '0' is left out to avoid confusion with 'O'
$str = rand(1, 7) . rand(1, 7) . $char;
?>