mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-05 19:24:08 +03:00
add comments
This commit is contained in:
parent
540b9aab74
commit
3315068a30
@ -15,11 +15,20 @@
|
|||||||
* limitations under the License.
|
* 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()
|
function can_show_captcha()
|
||||||
{
|
{
|
||||||
return extension_loaded("gd");
|
return extension_loaded("gd");
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Using characters and numbers to generate captcha code
|
||||||
|
*
|
||||||
|
* @return string captcha code
|
||||||
|
*/
|
||||||
function gen_captcha()
|
function gen_captcha()
|
||||||
{
|
{
|
||||||
$symbols = 'abcdefghijkmnpqrstuvwxyz123456789';
|
$symbols = 'abcdefghijkmnpqrstuvwxyz123456789';
|
||||||
@ -30,7 +39,9 @@ function gen_captcha()
|
|||||||
|
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Send captcha image directly to output
|
||||||
|
*/
|
||||||
function draw_captcha($security_code)
|
function draw_captcha($security_code)
|
||||||
{
|
{
|
||||||
//Set the image width and height
|
//Set the image width and height
|
||||||
|
Loading…
Reference in New Issue
Block a user