CLASS_SECCODE::secSet PHP Method

secSet() public method

设置验证码
public secSet ( $sec_size = 20, $sec_len = 4, $sec_font = "FetteSteinschrift.ttf" )
    public function secSet($sec_size = 20, $sec_len = 4, $sec_font = "FetteSteinschrift.ttf")
    {
        $this->len = $sec_len;
        $this->fontSize = $sec_size;
        $this->fontFile = BG_PATH_FONT . $sec_font;
        $this->width = $this->fontSize * ($this->len + 2);
        $this->height = $this->fontSize * 2;
    }

Usage Example

Example #1
0
 function ctl_make()
 {
     $obj_seccode = new CLASS_SECCODE();
     $obj_seccode->secSet();
     $obj_seccode->secDo();
 }