@@ -38,6 +38,14 @@ if ($action == 'post') { | |||||
exit(); | exit(); | ||||
} | } | ||||
$addvar = $addvalue = ''; | $addvar = $addvalue = ''; | ||||
//验证码校验 | |||||
$validate = empty($validate) ? '' : strtolower(trim($validate)); | |||||
$svali = strtolower(GetCkVdValue()); | |||||
if ($validate=='' || $validate != $svali) { | |||||
ResetVdValue(); | |||||
ShowMsg('验证码不正确', '-1'); | |||||
exit(); | |||||
} | |||||
if (!empty($dede_fields)) { | if (!empty($dede_fields)) { | ||||
$link = $_SERVER['HTTP_REFERER']; | $link = $_SERVER['HTTP_REFERER']; | ||||
$date = GetDateTimeMk(time()); | $date = GetDateTimeMk(time()); | ||||
@@ -27,7 +27,14 @@ | |||||
<table class="table mb-0"> | <table class="table mb-0"> | ||||
<?php echo $postform;?> | <?php echo $postform;?> | ||||
<tr> | <tr> | ||||
<td align="center"> | |||||
<td>验证码</td> | |||||
<td> | |||||
<input type="text" name="validate" class="form-control admin-input-lg"> | |||||
<img src="/apps/vdimgck.php" onclick="this.src='/apps/vdimgck.php?tag='+Math.random();" style="cursor:pointer"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2" align="center"> | |||||
<button type="submit" name="submit" class="btn btn-success btn-sm">提交</button> | <button type="submit" name="submit" class="btn btn-success btn-sm">提交</button> | ||||
<button type="reset" name="reset" class="btn btn-outline-success btn-sm">重置</button> | <button type="reset" name="reset" class="btn btn-outline-success btn-sm">重置</button> | ||||
</td> | </td> | ||||