rain hui 拳皇wing1.9 han再求您帮个忙

没有更多推荐了,
不良信息举报
举报内容:
Crouching Tiger, Hidden Dragon (2000)
举报原因:
原文地址:
原因补充:
最多只允许输入30个字
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!/ Huixuebao
项目语言:JAVA
权限:read-only(如需更高权限请先加入项目)
Huixuebao/
Index: words.php
===================================================================
--- words.php (revision 0)
+++ words.php (revision 3)
@@ -0,0 +1,68830 @@
Index: captcha.php
===================================================================
--- captcha.php (revision 0)
+++ captcha.php (revision 3)
@@ -0,0 +1,360 @@
+session_start();
+$captcha = new SimpleCaptcha();
+$captcha-&CreateImage();
+ * SimpleCaptcha class
+class SimpleCaptcha {
/** Width of the image */
public $width
/** Height of the image */
public $height = 70;
/** Dictionary word file (empty for randnom text) */
public $wordsFile = 'words.php';
* Path for resource files (fonts, words, etc.)
* &resources& by default. For security reasons, is better move this
* directory to another location outise the web server
public $resourcesPath = '';
/** Min word length (for non-dictionary random text generation) */
public $minWordLength = 5;
* Max word length (for non-dictionary random text generation)
* Used for dictionary words indicating the word-length
* for font-size modification purposes
public $maxWordLength = 8;
/** Sessionname to store the original text */
public $session_var = 'captcha';
/** Background color in RGB-array */
public $backgroundColor = array(255, 255, 255);
/** Foreground colors in RGB-array */
public $colors = array(
array(27,78,181), // blue
array(22,163,35), // green
array(214,36,7),
/** Shadow color in RGB-array or null */
public $shadowColor = //array(0, 0, 0);
* Font configuration
* - font: TTF file
* - spacing: relative pixel space between character
* - minSize: min font size
* - maxSize: max font size
public $fonts = array(
'Antykwa'
=& array('spacing' =& -3, 'minSize' =& 27, 'maxSize' =& 30, 'font' =& 'AntykwaBold.ttf'),
'Candice'
=& array('spacing' =&-1.5,'minSize' =& 28, 'maxSize' =& 31, 'font' =& 'Candice.ttf'),
'DingDong' =& array('spacing' =& -2, 'minSize' =& 24, 'maxSize' =& 30, 'font' =& 'Ding-DongDaddyO.ttf'),
'Duality'
=& array('spacing' =& -2, 'minSize' =& 30, 'maxSize' =& 38, 'font' =& 'Duality.ttf'),
'Heineken' =& array('spacing' =& -2, 'minSize' =& 24, 'maxSize' =& 34, 'font' =& 'Heineken.ttf'),
'Jura'
=& array('spacing' =& -2, 'minSize' =& 28, 'maxSize' =& 32, 'font' =& 'Jura.ttf'),
'StayPuft' =& array('spacing' =&-1.5,'minSize' =& 28, 'maxSize' =& 32, 'font' =& 'StayPuft.ttf'),
'Times'
=& array('spacing' =& -2, 'minSize' =& 28, 'maxSize' =& 34, 'font' =& 'TimesNewRomanBold.ttf'),
'VeraSans' =& array('spacing' =& -1, 'minSize' =& 20, 'maxSize' =& 28, 'font' =& 'VeraSansBold.ttf'),
/** Wave configuracion in X and Y axes */
public $Yperiod
public $Yamplitude = 14;
public $Xperiod
public $Xamplitude = 5;
/** letter rotation clockwise */
public $maxRotation = 8;
* Internal image size factor (for better image quality)
* 1: low, 2: medium, 3: high
public $scale = 2;
* Blur effect for better image quality (but slower image processing).
* Better image results with scale=3
public $blur =
/** Debug? */
public $debug =
/** Image format: jpeg or png */
public $imageFormat = 'jpeg';
/** GD image */
public function __construct($config = array()) {
public function CreateImage() {
$ini = microtime(true);
/** Initialization */
$this-&ImageAllocate();
/** Text insertion */
$text = $this-&GetCaptchaText();
= $this-&fonts[array_rand($this-&fonts)];
$this-&WriteText($text, $fontcfg);
$_SESSION[$this-&session_var] = $
/** Transformations */
$this-&WaveImage();
if ($this-&blur && function_exists('imagefilter')) {
imagefilter($this-&im, IMG_FILTER_GAUSSIAN_BLUR);
$this-&ReduceImage();
if ($this-&debug) {
imagestring($this-&im, 1, 1, $this-&height-8,
&$text {$fontcfg['font']} &.round((microtime(true)-$ini)*1000).&ms&,
$this-&GdFgColor
/** Output */
$this-&WriteImage();
$this-&Cleanup();
* Creates the image resources
protected function ImageAllocate() {
// Cleanup
if (!empty($this-&im)) {
imagedestroy($this-&im);
$this-&im = imagecreatetruecolor($this-&width*$this-&scale, $this-&height*$this-&scale);
// Background color
$this-&GdBgColor = imagecolorallocate($this-&im,
$this-&backgroundColor[0],
$this-&backgroundColor[1],
$this-&backgroundColor[2]
imagefilledrectangle($this-&im, 0, 0, $this-&width*$this-&scale, $this-&height*$this-&scale, $this-&GdBgColor);
// Foreground color
= $this-&colors[mt_rand(0, sizeof($this-&colors)-1)];
$this-&GdFgColor = imagecolorallocate($this-&im, $color[0], $color[1], $color[2]);
// Shadow color
if (!empty($this-&shadowColor) && is_array($this-&shadowColor) && sizeof($this-&shadowColor) &= 3) {
$this-&GdShadowColor = imagecolorallocate($this-&im,
$this-&shadowColor[0],
$this-&shadowColor[1],
$this-&shadowColor[2]
* Text generation
* @return string Text
protected function GetCaptchaText() {
$text = $this-&GetDictionaryCaptchaText();
if (!$text) {
$text = $this-&GetRandomCaptchaText();
* Random text generation
* @return string Text
protected function GetRandomCaptchaText($length = null) {
if (empty($length)) {
$length = rand($this-&minWordLength, $this-&maxWordLength);
= &abcdefghijlmnopqrstvwyz&;
$vocals = &aeiou&;
$vocal = rand(0, 1);
for ($i=0; $i&$ $i++) {
if ($vocal) {
$text .= substr($vocals, mt_rand(0, 4), 1);
$text .= substr($words, mt_rand(0, 22), 1);
$vocal = !$
* Random dictionary word generation
* @param boolean $extended Add extended &fake& words
* @return string Word
function GetDictionaryCaptchaText($extended = false) {
if (empty($this-&wordsFile)) {
// Full path of words file
if (substr($this-&wordsFile, 0, 1) == '/') {
$wordsfile = $this-&wordsF
$wordsfile = $this-&wordsF
= fopen($wordsfile, &r&);
$length = strlen(fgets($fp));
if (!$length) {
= rand(1, (filesize($wordsfile)/$length)-2);
if (fseek($fp, $length*$line) == -1) {
$text = trim(fgets($fp));
fclose($fp);
/** Change ramdom volcals */
if ($extended) {
= preg_split('//', $text, -1, PREG_SPLIT_NO_EMPTY);
$vocals = array('a', 'e', 'i', 'o', 'u');
foreach ($text as $i =& $char) {
if (mt_rand(0, 1) && in_array($char, $vocals)) {
$text[$i] = $vocals[mt_rand(0, 4)];
$text = implode('', $text);
* Text insertion
protected function WriteText($text, $fontcfg = array()) {
if (empty($fontcfg)) {
// Select the font configuration
= $this-&fonts[array_rand($this-&fonts)];
// Full path of font file
$fontfile = 'fonts/'.$fontcfg['font'];
/** Increase font-size for shortest words: 9% for each glyp missing */
$lettersMissing = $this-&maxWordLength-strlen($text);
$fontSizefactor = 1+($lettersMissing*0.09);
// Text generation (char by char)
= 20*$this-&
= round(($this-&height*27/40)*$this-&scale);
$length = strlen($text);
for ($i=0; $i&$ $i++) {
= rand($this-&maxRotation*-1, $this-&maxRotation);
$fontsize = rand($fontcfg['minSize'], $fontcfg['maxSize'])*$this-&scale*$fontS
= substr($text, $i, 1);
if ($this-&shadowColor) {
$coords = imagettftext($this-&im, $fontsize, $degree,
$x+$this-&scale, $y+$this-&scale,
$this-&GdShadowColor, $fontfile, $letter);
$coords = imagettftext($this-&im, $fontsize, $degree,
$this-&GdFgColor, $fontfile, $letter);
$x += ($coords[2]-$x) + ($fontcfg['spacing']*$this-&scale);
* Wave filter
protected function WaveImage() {
// X-axis wave generation
$xp = $this-&scale*$this-&Xperiod*rand(1,3);
$k = rand(0, 100);
for ($i = 0; $i & ($this-&width*$this-&scale); $i++) {
imagecopy($this-&im, $this-&im,
$i-1, sin($k+$i/$xp) * ($this-&scale*$this-&Xamplitude),
$i, 0, 1, $this-&height*$this-&scale);
// Y-axis wave generation
$k = rand(0, 100);
$yp = $this-&scale*$this-&Yperiod*rand(1,2);
for ($i = 0; $i & ($this-&height*$this-&scale); $i++) {
imagecopy($this-&im, $this-&im,
sin($k+$i/$yp) * ($this-&scale*$this-&Yamplitude), $i-1,
0, $i, $this-&width*$this-&scale, 1);
* Reduce the image to the final size
protected function ReduceImage() {
// Reduzco el tama駉 de la imagen
$imResampled = imagecreatetruecolor($this-&width, $this-&height);
imagecopyresampled($imResampled, $this-&im,
0, 0, 0, 0,
$this-&width, $this-&height,
$this-&width*$this-&scale, $this-&height*$this-&scale
imagedestroy($this-&im);
$this-&im = $imR
* File generation
protected function WriteImage() {
if ($this-&imageFormat == 'png' && function_exists('imagepng')) {
header(&Content-type: image/png&);
imagepng($this-&im);
header(&Content-type: image/jpeg&);
imagejpeg($this-&im, null, 80);
protected function Cleanup() {
imagedestroy($this-&im);
Index: fonts/AntykwaBold.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/AntykwaBold.ttf
===================================================================
--- fonts/AntykwaBold.ttf (revision 0)
+++ fonts/AntykwaBold.ttf (revision 3)
Property changes on: fonts/AntykwaBold.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: fonts/StayPuft.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/StayPuft.ttf
===================================================================
--- fonts/StayPuft.ttf (revision 0)
+++ fonts/StayPuft.ttf (revision 3)
Property changes on: fonts/StayPuft.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: fonts/Jura.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/Jura.ttf
===================================================================
--- fonts/Jura.ttf (revision 0)
+++ fonts/Jura.ttf (revision 3)
Property changes on: fonts/Jura.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: fonts/VeraSansBold.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/VeraSansBold.ttf
===================================================================
--- fonts/VeraSansBold.ttf (revision 0)
+++ fonts/VeraSansBold.ttf (revision 3)
Property changes on: fonts/VeraSansBold.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: fonts/Candice.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/Candice.ttf
===================================================================
--- fonts/Candice.ttf (revision 0)
+++ fonts/Candice.ttf (revision 3)
Property changes on: fonts/Candice.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: fonts/Heineken.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/Heineken.ttf
===================================================================
--- fonts/Heineken.ttf (revision 0)
+++ fonts/Heineken.ttf (revision 3)
Property changes on: fonts/Heineken.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: fonts/TimesNewRomanBold.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/TimesNewRomanBold.ttf
===================================================================
--- fonts/TimesNewRomanBold.ttf (revision 0)
+++ fonts/TimesNewRomanBold.ttf (revision 3)
Property changes on: fonts/TimesNewRomanBold.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: fonts/Ding-DongDaddyO.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/Ding-DongDaddyO.ttf
===================================================================
--- fonts/Ding-DongDaddyO.ttf (revision 0)
+++ fonts/Ding-DongDaddyO.ttf (revision 3)
Property changes on: fonts/Ding-DongDaddyO.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: fonts/Duality.ttf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fonts/Duality.ttf
===================================================================
--- fonts/Duality.ttf (revision 0)
+++ fonts/Duality.ttf (revision 3)
Property changes on: fonts/Duality.ttf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
(C)&&2013&&Alibaba&&Inc.&&All&&rights&&resvered.
Powered bySupplier Directory | Yantai Lifude Industries Trade Co., Ltd. - Yaoan Plastic Machinery Co., Ltd. — Panjiva
Welcome to the Panjiva Supplier Directory
Find the supplier you're searching for in the list of million just click on their name for more detailed information. Or better yet use the powerful
to find the suppliers that meet your needs.
Yantai Lifude Industries Trade Co., Ltd. — Yaoan Plastic Machinery Co., Ltd.
安提瓜和巴布达
维尔京群岛(英国)
维尔京群岛(英国)
维尔京群岛(英国)
特里尼达和多巴哥
维尔京群岛(英国)
特里尼达和多巴哥
维尔京群岛(英国)
维尔京群岛(英国)
萨摩亚(独立)
萨摩亚(独立)
萨摩亚(独立)我是二中毕业生吧-百度贴吧--我是二中人,我爱上高。
感谢你与本吧的一同成长
签到排名:今日本吧第个签到,
本吧因你更精彩,明天继续来努力!
本吧排名:
本吧签到人数:2
可签7级以上的吧50个
本月漏签0次!
成为超级会员,赠送8张补签卡
连续签到:天&&累计签到:天
超级会员单次开通12个月以上,赠送连续签到卡3张
我是二中人,我爱上高。
啊啊啊!!人生的第一场首映啊!!!就献给郭敬明了!!
@rainwingwenyi
一楼 致我们终将逝去的童年 ——我还踮着脚思念
刚刚发现这个吧 我也是二中毕业生
678,录取吧,学弟学妹们加油。
要考试了,还没开始预习怎么破…… 每天都做实验,各种实验报告写不完,没时间预习怎么破要挂的节奏
@time呵呵呵222 @Usedtolove @大头31191
我说的没错吧
肯德基全家桶半价!
我是有多无聊……
好无聊的说~
你们都在干嘛
人好少……估计没人会看的吧 正好最近想码字了~
晚会赞助 收入 1.五谷村 3000元+舞台背景(650元) 2.南影传媒艺考培训营 3000元 3.国贸超市 1000元+10箱果冻 4.金鹰装饰 1000元 5.上高17.5影城银海
想说要不要搞个水楼~可以每日一水!!~ @Usetolvoe 吧主求给力!~
裕丰花苑坐落在农民南街朗润超市后面,坐拥黄金地段,出行无忧,完善的餐饮。银行。购物。娱乐等生活设备。有意买房子的可以到售楼部看看,农民南街君
我居然睡着了啊啊啊啊啊啊!
把与文化季有关的东西都汇整一下啦啦~ QQ:; 微信公众平台:erzhonger_SG 人人:毕业生in二中 http://www.renren.com/
可是为啥只有一个!!不幸福!!!
快拉人来啊!!!@Usedtolove @大头31191
少年时观影活动:《小时代2青木时代》 还记得那些年我们一起在课堂上偷偷看过的《小时代》吗? 还记得善良简单的林萧吗?还记得孤傲坚强的顾里吗?还
悲剧啊!!! ——我还踮着脚思念
求解救啊!!!好想回家 ——我还踮着脚思念
~来自百度贴吧for小米 4.2.1~
发现每次都是自己还蛮喜欢的科目成绩超低。。。 还有资格说喜欢么。。。 ——我还踮着脚思念
@Usedtolove @大头31191 吧主求建议
真心觉得这张阿信好帅!!!
本吧两个吧主都是字母党。。。来个非字母的吧!! @Usedtolove 我们来齐心协力壮大本吧吧!!!
贴吧快火起来!!!
你可能感兴趣的吧...
发贴红色标题
签到六倍经验
兑换本吧会员
赠送补签卡1张,获得
助攻总额: 43W
贴吧热议榜
发表后自动分享本贴
使用签名档&

我要回帖

更多关于 拳皇wing 的文章

 

随机推荐