Sfoglia il codice sorgente

加强搜索判断

tags/6.5.6
叙述、别离 1 mese fa
parent
commit
ad730a174c
2 ha cambiato i file con 2 aggiunte e 6 eliminazioni
  1. +2
    -2
      src/apps/diy.php
  2. +0
    -4
      src/apps/search.php

+ 2
- 2
src/apps/diy.php Vedi File

@@ -67,12 +67,12 @@ if ($action == 'post') {
}
}
//判断$name是否输入违禁词,在后台-系统设置:禁用关键词添加,$name改成您表单字段标识,恢复注释代码使用
/*if ($name != '' && preg_match("#".$cfg_notallowstr."#i", $name)) {
/*if ($name === '' && preg_match("#".$cfg_notallowstr."#i", $name)) {
ShowMsg("您输入的信息存在违禁,请重新填写", "-1");
exit();
}*/
//判断$message是否大于70字符则提交失败,$message改成您表单字段标识,恢复注释代码使用
/*if ($message != '' && strlen($message) > 70) {
/*if ($message === '' && strlen($message) > 70) {
showmsg('您输入的信息太多了,请重新填写', '-1');
exit();
}*/


+ 0
- 4
src/apps/search.php Vedi File

@@ -61,10 +61,6 @@ if ($keyword != '' && ($cfg_notallowstr != '' && preg_match("#".$cfg_notallowstr
ShowMsg("您输入的关键词存在违禁,请重新填写", "-1");
exit();
}
if (($keyword != '' && strlen($keyword) < 2) && empty($typeid)) {
ShowMsg('您输入的关键词太少了,请重新填写', '-1');
exit();
}
//检查搜索间隔时间
$ip = GetIP();
$now = time();


Loading…
Annulla
Salva