选择语言 :

 Core_Captcha::image_render

Returns the img html element or outputs the image to the browser.

mixed Core_Captcha::image_render( )
返回值
  • mixed html string or void
File: ./core/classes/captcha.class.php
protected function image_render()
{
    // Send the correct HTTP header
    header("Cache-Control:no-cache,must-revalidate");
    header("Pragma:no-cache");
    header('Content-Type: image/' . Captcha::$image_type);
    header("Connection:close");

    // Pick the correct output function
    $function = 'image'.Captcha::$image_type;
    $function(Captcha::$image);

    // Free up resources
    imagedestroy(Captcha::$image);
}