コード例 #1
0
ファイル: image.php プロジェクト: saintho/phpdisk
 /**
  * 参数说明 全部由URL 接入参数值 目前提供参数为以下
  */
 public function run()
 {
     $is = $this->_context->get('I_S', '');
     $iw = 'YucMedia CopyRight ' . date('Y') . ' <Local>';
     $mass = $this->_context->get('mass', '');
     $apiParam = $this->getApiParamValue();
     if ($is != '' && $mass !== '') {
         $code = explode(',', YucCrypt::decrypt(base64_decode(urldecode($mass)), YucMath::erypt_key()));
         YucCaptcha::showComplexImage($code, 20, 5, 2, $apiParam['width'], $apiParam['height'], $apiParam['fontsize'], $iw);
     } else {
         YucCaptcha::showImgDesc('Access defined!', $iw, $apiParam['width'], $apiParam['height'], $apiParam['fontsize']);
     }
 }