extend/alipay/pay/lotusphp_runtime/Captcha/Captcha.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class LtCaptcha
{
public $configHandle;
public $storeHandle;
public $imageEngine;
public function __construct()
{
if (! $this->configHandle instanceof LtConfig)
{
if (class_exists("LtObjectUtil", false))
{
$this->configHandle = LtObjectUtil::singleton("LtConfig");
}
else
{
$this->configHandle = new LtConfig;
}
}
}
public function init()
{
if (!is_object($this->storeHandle))
{
$this->storeHandle = new LtStoreFile;
$this->storeHandle->prefix = 'LtCaptcha-seed-';
$this->storeHandle->init();
}
}
public function getImageResource($seed)
{
if (empty($seed))
{
trigger_error("empty seed");
return false;
}
if (!is_object($this->imageEngine))
{
if ($imageEngine = $this->configHandle->get("captcha.image_engine"))
{
if (class_exists($imageEngine))
{
$this->imageEngine = new $imageEngine;
$this->imageEngine->conf = $this->configHandle->get("captcha.image_engine_conf");
}
else
{
trigger_error("captcha.image_engine : $imageEngine not exists");
}
}
else
{
trigger_error("empty captcha.image_engine");
return false;
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。