<?php
class CaptchaSecurityImages {
var $font = './monofont.ttf';
function CaptchaSecurityImages($width='48',$height='19',$characters) {
$code = $characters;
/* font size will be 90% of the image height */
$font_size = $height * 0.80;
$image = imagecreate($width, $height) or die('Cannot initialize new GD image stream');
/* set the colours */
$background_color = imagecolorallocate($image, 255, 255, 255);
$text_color = imagecolorallocate($image, 0, 0, 0);
$noise_color = imagecolorallocate($image, 140, 140, 140);
/* generate random dots in background */
for( $i=0; $i<($width*$height)/3; $i++ ) {
imagefilledellipse($image, mt_rand(0,$width), mt_rand(0,$height), 1, 1, $noise_color);
}
/* generate random lines in background */
for( $i=0; $i<($width*$height)/100; $i++ ) {
imageline($image, mt_rand(0,$width), mt_rand(0,$height), mt_rand(0,$width), mt_rand(0,$height), $noise_color);
}
/* create textbox and add text */
$textbox = imagettfbbox($font_size, 0, $this->font, $code) or die('Error in imagettfbbox function');
$x = ($width - $textbox[4])/2;
$y = ($height - $textbox[5])/2;
imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font , $code) or die('Error in imagettftext function');
/* output captcha image to browser */
header('Content-Type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
}
}
$width = "50";
$height = "20";
$captcha = new CaptchaSecurityImages($width,$height,$_GET['c']);
?>
没有合适的资源?快使用搜索试试~ 我知道了~
黑色复古仿皮具笔记本个人博客模板_黑色 复古 皮具 笔记本 个人 博客 blog 二栏 左栏 作品 展示 整站.rar
共233个文件
png:152个
jpg:18个
js:17个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 14 浏览量
2023-04-27
14:54:23
上传
评论
收藏 1.13MB RAR 举报
温馨提示
黑色复古仿皮具笔记本个人博客模板_黑色 复古 皮具 笔记本 个人 博客 blog 二栏 左栏 作品 展示 整站
资源推荐
资源详情
资源评论
收起资源包目录
黑色复古仿皮具笔记本个人博客模板_黑色 复古 皮具 笔记本 个人 博客 blog 二栏 左栏 作品 展示 整站.rar (233个子文件)
style.css 33KB
jquery.fancybox-1.3.4.css 9KB
nivo-slider.css 2KB
reset.css 1KB
styler-farbtastic.css 683B
sansation.css 422B
stop_ie.css 122B
Thumbs.db 9KB
Thumbs.db 8KB
Thumbs.db 7KB
Sansation_Regular-webfont.eot 36KB
loading.gif 2KB
preloader.gif 2KB
nivo-slider-bg.gif 2KB
table_bg.gif 2KB
blog_small_pic.gif 1KB
search_button.gif 1KB
sep.gif 1KB
avatar_bg.gif 1KB
styler-cb2.gif 64B
post_info_sep.gif 58B
code_bg.gif 55B
styler-cb1.gif 54B
list1-bullet.gif 45B
blank.gif 43B
dots.gif 43B
hr2.gif 43B
blog-1.html 13KB
portfolio-2c.html 12KB
portfolio-3c.html 12KB
blog-2.html 12KB
index.html 10KB
post.html 10KB
gallery.html 10KB
stylings-tabs_toggles.html 10KB
stylings-table_columns.html 8KB
stylings-texts.html 8KB
stylings-contact_buttons.html 7KB
stylings-images_videos.html 7KB
video_startimage.jpg 51KB
bgslider-3.jpg 49KB
bgslider-2.jpg 48KB
bgslider-1.jpg 46KB
pic-medium.jpg 37KB
pic-tn-small.jpg 19KB
themeprince.jpg 11KB
nivoslider2.jpg 6KB
nivoslider3.jpg 6KB
nivoslider1.jpg 6KB
pic-tn-large.jpg 4KB
post1-med.jpg 2KB
pfolio-1-2c-tn.jpg 2KB
tabs_carousel_pic.jpg 2KB
pfolio-1-3c-tn.jpg 2KB
gallery-1-tn.jpg 2KB
post1.jpg 2KB
post-tn1.jpg 772B
jquery-ui-1.8.17.custom.min.js 206KB
jquery.min.js 93KB
jquery.fancybox-1.3.4.js 29KB
jquery.fancybox-1.3.4.js 29KB
jquery.nivo.slider.js 25KB
jquery.fancybox-1.3.4.pack.js 15KB
jquery.quicksand.js 14KB
farbtastic.js 8KB
jquery.easing-1.3.pack.js 7KB
contact_form.js 5KB
jquery.tinycarousel.js 5KB
quicksand_call.js 4KB
basic.js 4KB
preloader.js 2KB
styler.js 2KB
jquery.bgslider.js 2KB
jquery.mousewheel-3.0.4.pack.js 1KB
captcha.php 2KB
sendmail.php 616B
sidebar-texture-leather.png 318KB
fancybox.png 15KB
wheel.png 12KB
logo.png 12KB
fancy_loading.png 10KB
sidebar-light.png 9KB
menu_icons.png 5KB
styler_bg.png 4KB
blog_small_pic.png 4KB
mask.png 4KB
stumbleupon.png 4KB
wordpress.png 4KB
picasa.png 4KB
rss.png 4KB
technorati.png 4KB
youtube.png 4KB
blogger.png 4KB
myspace.png 4KB
vimeo.png 4KB
delicious.png 4KB
twitter.png 4KB
gmail.png 4KB
mail.png 4KB
linkedin.png 4KB
共 233 条
- 1
- 2
- 3
资源评论
紫微前端
- 粉丝: 4311
- 资源: 869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功