-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
59 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
<?php | ||
/** | ||
* Windwork | ||
* | ||
* 一个用于快速开发高并发Web应用的轻量级PHP框架 | ||
* | ||
* @copyright Copyright (c) 2008-2017 Windwork Team. (http://www.windwork.org) | ||
* @license http://opensource.org/licenses/MIT | ||
*/ | ||
namespace wf\captcha; | ||
|
||
/** | ||
* 验证码接口 | ||
* | ||
* usage: | ||
* $capt = wfCaptcha(); // | ||
* $capt->render(); | ||
* | ||
* 验证码对比校验 | ||
* if (!\wf\captcha\Code::check(@$_POST['secode'])) { | ||
* print 'error secode'; | ||
* } | ||
* | ||
* @package wf.captcha | ||
* @author cm <[email protected]> | ||
* @link http://docs.windwork.org/manual/wf.captcha.html | ||
* @since 0.1.0 | ||
*/ | ||
interface CaptchaInterface | ||
{ | ||
/** | ||
* 生成验证码,输出为图片格式,并保存验证码字符到session | ||
* | ||
* @param string $id = 'sec' 验证码类别,如登录)login;注册)regster | ||
*/ | ||
public function render($id = 'sec'); | ||
} | ||
<?php | ||
/** | ||
* Windwork | ||
* | ||
* 一个用于快速开发高并发Web应用的轻量级PHP框架 | ||
* | ||
* @copyright Copyright (c) 2008-2017 Windwork Team. (http://www.windwork.org) | ||
* @license http://opensource.org/licenses/MIT | ||
*/ | ||
namespace wf\captcha; | ||
|
||
/** | ||
* 验证码接口 | ||
* | ||
* usage: | ||
* $capt = wfCaptcha(); // | ||
* $capt->render(); | ||
* | ||
* 验证码对比校验 | ||
* if (!\wf\captcha\Code::check(@$_POST['secode'])) { | ||
* print 'error secode'; | ||
* } | ||
* | ||
* @package wf.captcha | ||
* @author cm <[email protected]> | ||
* @link http://docs.windwork.org/manual/wf.captcha.html | ||
* @since 0.1.0 | ||
*/ | ||
interface CaptchaInterface | ||
{ | ||
/** | ||
* 生成验证码,输出为图片格式,并保存验证码字符到session | ||
* | ||
* @param string $id = 'sec' 验证码类别,如登录)login;注册)regster | ||
*/ | ||
public function render($id = 'sec'); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?php | ||
/** | ||
* Windwork | ||
* | ||
* 一个用于快速开发高并发Web应用的轻量级PHP框架 | ||
* | ||
* @copyright Copyright (c) 2008-2017 Windwork Team. (http://www.windwork.org) | ||
* @license http://opensource.org/licenses/MIT | ||
*/ | ||
namespace wf\captcha; | ||
|
||
/** | ||
* 验证码异常类 | ||
* | ||
* @package wf.captcha | ||
* @author cm <[email protected]> | ||
* @since 0.1.0 | ||
*/ | ||
class Exception extends \Exception | ||
{ | ||
|
||
<?php | ||
/** | ||
* Windwork | ||
* | ||
* 一个用于快速开发高并发Web应用的轻量级PHP框架 | ||
* | ||
* @copyright Copyright (c) 2008-2017 Windwork Team. (http://www.windwork.org) | ||
* @license http://opensource.org/licenses/MIT | ||
*/ | ||
namespace wf\captcha; | ||
|
||
/** | ||
* 验证码异常类 | ||
* | ||
* @package wf.captcha | ||
* @author cm <[email protected]> | ||
* @since 0.1.0 | ||
*/ | ||
class Exception extends \Exception | ||
{ | ||
|
||
} |