parent
8785e2ce50
commit
36251d5230
|
@ -40,7 +40,6 @@ for ($i=0;$i<4;$i++) {
|
||||||
//设置线的颜色
|
//设置线的颜色
|
||||||
|
|
||||||
imageline($image, rand(1, 149), rand(1, 39), rand(1, 299), rand(1, 149), $linecolor);
|
imageline($image, rand(1, 149), rand(1, 39), rand(1, 299), rand(1, 149), $linecolor);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//因为有些浏览器,访问的content-type会是文本型,所以我们需要设置成图片的格式类型
|
//因为有些浏览器,访问的content-type会是文本型,所以我们需要设置成图片的格式类型
|
||||||
|
|
|
@ -48,7 +48,6 @@ if (isset($_REQUEST['code'])) {
|
||||||
</script>';
|
</script>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<form class="form-horizontal" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" onsubmit="return md5_post()">
|
<form class="form-horizontal" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" onsubmit="return md5_post()">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -72,7 +71,6 @@ if (isset($_REQUEST['code'])) {
|
||||||
<input class="form-control" type="text" name="code" value="" placeholder="请输入上方4位数验证码 - 注意大小写" />
|
<input class="form-control" type="text" name="code" value="" placeholder="请输入上方4位数验证码 - 注意大小写" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-sm-offset-2 col-sm-10">
|
<div class="col-sm-offset-2 col-sm-10">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
|
@ -88,7 +86,6 @@ if (isset($_REQUEST['code'])) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script src="<?php static_cdn(); ?>/public/static/md5.min.js"></script>
|
<script src="<?php static_cdn(); ?>/public/static/md5.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function md5_post() {
|
function md5_post() {
|
||||||
|
@ -99,6 +96,5 @@ if (isset($_REQUEST['code'])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once APP_ROOT . '/application/footer.php';
|
require_once APP_ROOT . '/application/footer.php';
|
||||||
|
|
Loading…
Reference in New Issue