Permalink
Browse files

update

  • Loading branch information...
1 parent e8dfed9 commit 56ac41e41085985f2cc9d48ba34ee2536c5f8c72 @verdana committed Mar 18, 2012
View
4 image.php
@@ -6,7 +6,7 @@
$opt = array(
'width' => 250,
'height' => 60,
- 'background' => 'absolute.gif',
+ 'background' => 'leaf.gif',
'bgFillType' => 'tile', // 'tile' or 'stretch'
//'chars' => 'abcdefghjkmnpqrstuvwxyz23456789',
'charCase' => 'random', // 'upper', 'lower' or 'random'
@@ -15,7 +15,7 @@
'fontSize' => 24,
'bgColor' => '#000',
//'textColor' => '#FFF',
- 'textColor' => array('#666', '#999', '#FF0000', '#00FF00', '#0000FF', '#00FFFF', '#939', '#FCC'),
+ 'textColor' => array('#333', '#FF0000', '#00FF00', '#0000FF', '#00CCFF', '#939')
);
$captcha = new Captcha($opt);
View
51 lib/Captcha.php
@@ -17,35 +17,34 @@
*/
/**
- * @namespace
+ * @namespace
*/
namespace net\phpvim;
-
require_once 'AbstractCaptcha.php';
/**
* Captcha Generator
- *
- * @package
+ *
+ * @package
* @copyright Copyright (C) 2011
- * @author Verdana Mu
- * @license
+ * @author Verdana Mu
+ * @license
*/
class Captcha extends AbstractCaptcha
{
/**
* 随机字符串
- *
+ *
* @var mixed
* @access private
*/
private $_word;
- /* public __construct(array $options) {{{ */
+ /* public __construct(array $options) {{{ */
/**
* __construct
- *
- * @param array $options
+ *
+ * @param array $options
* @access public
* @return void
*/
@@ -63,10 +62,10 @@ public function __construct($options = array())
}
// }}}
- /* public getWord() {{{ */
+ /* public getWord() {{{ */
/**
* 返回随机字符串
- *
+ *
* @access public
* @return void
*/
@@ -76,10 +75,10 @@ public function getWord()
}
// }}}
- /* public create() {{{ */
+ /* public create() {{{ */
/**
* 生成图片
- *
+ *
* @access public
* @return void
*/
@@ -130,12 +129,12 @@ public function create()
}
// }}}
- /* protected createCanvas($width, $height) {{{ */
+ /* protected createCanvas($width, $height) {{{ */
/**
* 生成初始的图片模型
- *
- * @param mixed $width
- * @param mixed $height
+ *
+ * @param mixed $width
+ * @param mixed $height
* @access protected
* @return void
*/
@@ -178,11 +177,11 @@ protected function createCanvas($width, $height)
}
// }}}
- /* protected random() {{{ */
+ /* protected random() {{{ */
/**
* 生成随即的字符串
* 每个字符之间将被随机插入1-3个空格
- *
+ *
* @access protected
* @return void
*/
@@ -201,11 +200,11 @@ protected function random()
}
// }}}
- /* protected textColor($image) {{{ */
+ /* protected textColor($image) {{{ */
/**
* 随机字体颜色
- *
- * @param mixed $image
+ *
+ * @param mixed $image
* @access protected
* @return void
*/
@@ -217,10 +216,10 @@ protected function textColor(&$image)
}
// }}}
- /* protected preventCache() {{{ */
+ /* protected preventCache() {{{ */
/**
* preventCache
- *
+ *
* @access protected
* @return void
*/
@@ -240,5 +239,5 @@ protected function preventCache()
// }}}
}
-/*- vim: set ff=unix shiftwidth=4 tabstop=4 expandtab: -*/
+/*- vim: set ff=unix shiftwidth=4 tabstop=4 expandtab: -*/
View
BIN lib/backgrounds/brick.gif
Deleted file not rendered
View
BIN lib/backgrounds/bricks.gif
Deleted file not rendered
View
BIN lib/backgrounds/cherry.gif
Deleted file not rendered
View
BIN lib/backgrounds/circle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN lib/backgrounds/puppies.gif
Deleted file not rendered
View
BIN lib/backgrounds/red.gif
Deleted file not rendered
View
BIN lib/backgrounds/stones.gif
Deleted file not rendered

0 comments on commit 56ac41e

Please sign in to comment.