mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 21:34:42 +03:00
add comments
This commit is contained in:
parent
540b9aab74
commit
3315068a30
@ -15,11 +15,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Check if captcha is loadable or not by cheking captcha requirements
|
||||
*
|
||||
* @return bool reqirements are saticfird or not
|
||||
*/
|
||||
function can_show_captcha()
|
||||
{
|
||||
return extension_loaded("gd");
|
||||
}
|
||||
|
||||
/**
|
||||
* Using characters and numbers to generate captcha code
|
||||
*
|
||||
* @return string captcha code
|
||||
*/
|
||||
function gen_captcha()
|
||||
{
|
||||
$symbols = 'abcdefghijkmnpqrstuvwxyz123456789';
|
||||
@ -30,7 +39,9 @@ function gen_captcha()
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send captcha image directly to output
|
||||
*/
|
||||
function draw_captcha($security_code)
|
||||
{
|
||||
//Set the image width and height
|
||||
|
Loading…
Reference in New Issue
Block a user