Browse Source

验证码从include迁移到plus

tags/6.0.0
llgoer 4 years ago
parent
commit
52ea3943f5
24 changed files with 32 additions and 32 deletions
  1. +2
    -2
      src/dede/templets/login.htm
  2. +1
    -1
      src/member/templets/album_add.htm
  3. +1
    -1
      src/member/templets/album_edit.htm
  4. +1
    -1
      src/member/templets/archives_add.htm
  5. +1
    -1
      src/member/templets/archives_edit.htm
  6. +1
    -1
      src/member/templets/archives_sg_add.htm
  7. +1
    -1
      src/member/templets/archives_sg_edit.htm
  8. +1
    -1
      src/member/templets/article_add.htm
  9. +1
    -1
      src/member/templets/article_edit.htm
  10. +1
    -1
      src/member/templets/buy.htm
  11. +1
    -1
      src/member/templets/edit_baseinfo.htm
  12. +2
    -2
      src/member/templets/index-notlogin.htm
  13. +1
    -1
      src/member/templets/js/changeAuthCode.js
  14. +1
    -1
      src/member/templets/js/reg_new.js
  15. +2
    -2
      src/member/templets/login.htm
  16. +1
    -1
      src/member/templets/pm-send.htm
  17. +2
    -2
      src/member/templets/reg-new.htm
  18. +1
    -1
      src/member/templets/reg-new2.htm
  19. +2
    -2
      src/member/templets/resetpassword.htm
  20. +1
    -1
      src/member/templets/resetpassword2.htm
  21. +2
    -2
      src/member/templets/resetpassword3.htm
  22. +1
    -1
      src/member/templets/soft_add.htm
  23. +1
    -1
      src/member/templets/soft_edit.htm
  24. +3
    -3
      src/plus/vdimgck.php

+ 2
- 2
src/dede/templets/login.htm View File

@@ -14,7 +14,7 @@ function changeAuthCode() {
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}
@@ -39,7 +39,7 @@ function changeAuthCode() {
{
?>
<dt>验证码:</dt>
<dd><input id="vdcode" type="text" name="validate" style="text-transform:uppercase;"/><img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../include/vdimgck.php"/>
<dd><input id="vdcode" type="text" name="validate" style="text-transform:uppercase;"/><img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../plus/vdimgck.php"/>
<a href="#" onClick="changeAuthCode();">看不清? </a></dd>
<?php
}


+ 1
- 1
src/member/templets/album_add.htm View File

@@ -114,7 +114,7 @@
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<?php }?>
<p>


+ 1
- 1
src/member/templets/album_edit.htm View File

@@ -156,7 +156,7 @@ startNum = <?php echo $j; ?>;
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<?php
}


+ 1
- 1
src/member/templets/archives_add.htm View File

@@ -107,7 +107,7 @@
<p class="cellBg">
<label>验证码:</label>
<input class="text" name="vdcode" type="text" id="vdcode" size="10" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" width="70" height="25" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" width="70" height="25" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<?php }?>
<p>


+ 1
- 1
src/member/templets/archives_edit.htm View File

@@ -102,7 +102,7 @@
<p class="cellBg">
<label>验证码:</label>
<input class="intxt" name="vdcode" type="text" id="vdcode" size="10" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" width="70" height="25" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" width="70" height="25" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<?php }?>
<p>


+ 1
- 1
src/member/templets/archives_sg_add.htm View File

@@ -75,7 +75,7 @@
<p class="cellBg" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<?php }?>
<p>


+ 1
- 1
src/member/templets/archives_sg_edit.htm View File

@@ -67,7 +67,7 @@
<p class="cellBg" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<?php }?>
<p>


+ 1
- 1
src/member/templets/article_add.htm View File

@@ -97,7 +97,7 @@
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></p>
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></p>
<?php }?>
<p>
<button class="button2" type="submit">提交</button>


+ 1
- 1
src/member/templets/article_edit.htm View File

@@ -97,7 +97,7 @@
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<?php }?>
<p>


+ 1
- 1
src/member/templets/buy.htm View File

@@ -62,7 +62,7 @@
<tr>
<td align="right" valign="top">验证码:</td>
<td><input name="vdcode" type="text" id="vdcode" size="8" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</td>
</tr>
</tbody>


+ 1
- 1
src/member/templets/edit_baseinfo.htm View File

@@ -129,7 +129,7 @@
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" style='width:50px;text-transform:uppercase;' class="intxt" />
<img src="../include/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
<img src="../plus/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer" onclick="this.src=this.src+'?'" />
</p>
<p>
<button class="button2" type="submit">更新</button>


+ 2
- 2
src/member/templets/index-notlogin.htm View File

@@ -13,7 +13,7 @@ function changeAuthCode() {
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}
@@ -66,7 +66,7 @@ document.write("午夜好,");
</li>
<li> <span>验证码:</span>
<input id="vdcode" class="text login_from3" type="text" style="width: 50px; text-transform: uppercase;" name="vdcode"/>
<img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../include/vdimgck.php"/>
<img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../plus/vdimgck.php"/>
看不清? <a href="#" onclick="changeAuthCode();">点击更换</a> </li>
<li> <span>有效期:</span>
<input type="radio" value="2592000" name="keeptime" id="ra1"/>


+ 1
- 1
src/member/templets/js/changeAuthCode.js View File

@@ -9,7 +9,7 @@ function changeAuthCode() {
$('#ver_code').css('top', toppos+'px');
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}


+ 1
- 1
src/member/templets/js/reg_new.js View File

@@ -119,7 +119,7 @@ $(document).ready(function()
});
$("a[href*='#vdcode'],#vdimgck").bind("click", function(){
$("#vdimgck").attr("src","../include/vdimgck.php?tag="+Math.random());
$("#vdimgck").attr("src","../plus/vdimgck.php?tag="+Math.random());
return false;
});
});

+ 2
- 2
src/member/templets/login.htm View File

@@ -12,7 +12,7 @@ function changeAuthCode() {
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}
@@ -75,7 +75,7 @@ document.write("午夜好,");
</li>
<li> <span>验证码:</span>
<input id="vdcode" class="text login_from3" type="text" style="width: 50px; text-transform: uppercase;" name="vdcode"/>
<img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../include/vdimgck.php"/>
<img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../plus/vdimgck.php"/>
看不清? <a href="#" onclick="changeAuthCode();">点击更换</a> </li>
<li> <span>有效期:</span>
<input type="radio" value="2592000" name="keeptime" id="ra1"/>


+ 1
- 1
src/member/templets/pm-send.htm View File

@@ -93,7 +93,7 @@
?>
<p>
<label>验证码:</label>
<input type="text" class="intxt w200" style="width: 50px; text-transform: uppercase;" id="vdcode" name="vdcode"/><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../include/vdimgck.php"/>
<input type="text" class="intxt w200" style="width: 50px; text-transform: uppercase;" id="vdcode" name="vdcode"/><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../plus/vdimgck.php"/>
看不清? <a href="javascript:void(0)" onclick="changeAuthCode();">点击更换</a></li>
</p>
<?php }?>


+ 2
- 2
src/member/templets/reg-new.htm View File

@@ -18,7 +18,7 @@ function changeAuthCode() {
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}
@@ -173,7 +173,7 @@ document.write("午夜好,");
if(preg_match("/1/",$safe_gdopen)){
?>
<li><span>验证码:</span>
<input type="text" class="intxt w200" style="width: 50px; text-transform: uppercase;" id="vdcode" name="vdcode"/><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../include/vdimgck.php"/>
<input type="text" class="intxt w200" style="width: 50px; text-transform: uppercase;" id="vdcode" name="vdcode"/><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../plus/vdimgck.php"/>
看不清? <a href="javascript:void(0)" onclick="changeAuthCode();">点击更换</a></li>
<?php }?>
</ul>


+ 1
- 1
src/member/templets/reg-new2.htm View File

@@ -18,7 +18,7 @@ function changeAuthCode() {
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}


+ 2
- 2
src/member/templets/resetpassword.htm View File

@@ -12,7 +12,7 @@ function changeAuthCode() {
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}
@@ -102,7 +102,7 @@ document.write("午夜好,");
</li>
<li> <span>验证码:</span>
<input id="vdcode" class="text login_from3" type="text" style="width: 50px; text-transform: uppercase;" name="vdcode"/>
<div id="ver_code" class="vermenu" style="visibility: hidden;"><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../include/vdimgck.php"/></div>
<div id="ver_code" class="vermenu" style="visibility: hidden;"><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../plus/vdimgck.php"/></div>
看不清? <a href="#" onclick="changeAuthCode();">点击更换</a> </li>
<li> <span>取回方式:</span>


+ 1
- 1
src/member/templets/resetpassword2.htm View File

@@ -12,7 +12,7 @@ function changeAuthCode() {
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}


+ 2
- 2
src/member/templets/resetpassword3.htm View File

@@ -12,7 +12,7 @@ function changeAuthCode() {
num = num + rand;
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}
@@ -106,7 +106,7 @@ document.write("午夜好,");
</li>
<li><span>验证码:</span>
<input id="vdcode" class="text login_from3" type="text" style="width: 50px; text-transform: uppercase;" name="vdcode"/>
<div id="ver_code" class="vermenu" style="visibility: hidden;"><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../include/vdimgck.php"/></div>
<div id="ver_code" class="vermenu" style="visibility: hidden;"><img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换" src="../plus/vdimgck.php"/></div>
看不清? <a href="#" onclick="changeAuthCode();">点击更换</a> </li>
<li><span>&nbsp;</span>
<button class="button2" id="btnSignCheck" type="submit">确定</button>


+ 1
- 1
src/member/templets/soft_add.htm View File

@@ -216,7 +216,7 @@ function ShowHideAddr()
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></p>
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></p>
<?php }?>
<p>
<button class="button2" type="submit">提交</button>


+ 1
- 1
src/member/templets/soft_edit.htm View File

@@ -230,7 +230,7 @@ function ShowHideAddr()
<p class="cellBg">
<label>验证码:</label>
<input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
<img src="../include/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></p>
<img src="../plus/vdimgck.php" alt="看不清?点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></p>
<?php }?>
<p>
<button class="button2" type="submit">提交</button>


src/include/vdimgck.php → src/plus/vdimgck.php View File

@@ -8,7 +8,7 @@
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once (dirname(__FILE__).'/common.inc.php');
require_once (dirname(__FILE__).'/../include/common.inc.php');
require_once (DEDEDATA.'/safe/inc_safe_config.php');
require_once (DEDEDATA.'/config.cache.inc.php');
$config = array(
@@ -17,8 +17,8 @@ $config = array(
'word_type' => (int)$safe_codetype, // 1:数字 2:英文 3:单词
'img_width' => $safe_wwidth,
'use_boder' => TRUE,
'font_file' => dirname(__FILE__).'/data/fonts/'.mt_rand(1,3).'.ttf',
'wordlist_file' => dirname(__FILE__).'/data/words/words.txt',
'font_file' => DEDEINC.'/data/fonts/'.mt_rand(1,3).'.ttf',
'wordlist_file' => DEDEINC.'/data/words/words.txt',
'filter_type' => 5);
$enkey = substr(md5(substr($cfg_cookie_encode,0,5)),0,10);

Loading…
Cancel
Save