Skip to content

Commit

Permalink
转换成Unix换行符
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpan committed Aug 8, 2017
1 parent 3be529d commit 82d5d6d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
Empty file removed index.html
Empty file.
76 changes: 38 additions & 38 deletions lib/CaptchaInterface.php
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');
}

42 changes: 21 additions & 21 deletions lib/Exception.php
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
{

}

0 comments on commit 82d5d6d

Please sign in to comment.