extend/alipay/pay/lotusphp_runtime/Captcha/CaptchaImageEngine.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* Lotus Captcha component is inspired by "cool-php-captcha" project
* http://code.google.com/p/cool-php-captcha
*/
class LtCaptchaImageEngine
{
public $conf;
protected $maxWordLength = 9;
/**
* * Background color in RGB-array
*/
protected $backgroundColor = array(255, 255, 255);
/**
* * Foreground colors in RGB-array
*/
protected $colors = array(
array(27, 78, 181), // blue
array(22, 163, 35), // green
array(214, 36, 7), // red
);
/**
* * Shadow color in RGB-array or null
*/
protected $shadowColor = null; //array(0, 0, 0);
/**
* Font configuration
*
* - font: TTF file
* - spacing: relative pixel space between character
* - minSize: min font size
* - maxSize: max font size
*/
protected $fonts = array('Antykwa' => array('spacing' => -3, 'minSize' => 27, 'maxSize' => 30, 'font' => 'AntykwaBold.ttf'),
'Candice' => array('spacing' => -1.5, 'minSize' => 28, 'maxSize' => 31, 'font' => 'Candice.ttf'),
'DingDong' => array('spacing' => -2, 'minSize' => 24, 'maxSize' => 30, 'font' => 'Ding-DongDaddyO.ttf'),
'Duality' => array('spacing' => -2, 'minSize' => 30, 'maxSize' => 38, 'font' => 'Duality.ttf'),
'Jura' => array('spacing' => -2, 'minSize' => 28, 'maxSize' => 32, 'font' => 'Jura.ttf'),
'StayPuft' => array('spacing' => -1.5, 'minSize' => 28, 'maxSize' => 32, 'font' => 'StayPuft.ttf'),
'Times' => array('spacing' => -2, 'minSize' => 28, 'maxSize' => 34, 'font' => 'TimesNewRomanBold.ttf'),
'VeraSans' => array('spacing' => -1, 'minSize' => 20, 'maxSize' => 28, 'font' => 'VeraSansBold.ttf'),
);
/**
* * Wave configuracion in X and Y axes
*/
protected $Yperiod = 12;
protected $Yamplitude = 14;
protected $Xperiod = 11;
protected $Xamplitude = 5;
/**
* * GD image
*/
protected $im;
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。