mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 14:34:08 +08:00
修复 自动通过收录失效
This commit is contained in:
parent
f7c4d2e7cd
commit
f55ebb8bd8
@ -9,7 +9,7 @@ function dstrpos($string, $arr)
|
|||||||
if(empty($string)) {
|
if(empty($string)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
foreach((array)$arr as $v) {
|
foreach((array) $arr as $v) {
|
||||||
if(strpos($string, $v) !== false) {
|
if(strpos($string, $v) !== false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -359,7 +359,7 @@ function ins_link($name, $url, $icon, $group_id, $status)
|
|||||||
$userip = get_real_ip();
|
$userip = get_real_ip();
|
||||||
$date = date("Y-m-d H:i:s");
|
$date = date("Y-m-d H:i:s");
|
||||||
$link_order = $DB->count('select MAX(id) from `lylme_links`') + 1;
|
$link_order = $DB->count('select MAX(id) from `lylme_links`') + 1;
|
||||||
$sql1 = "INSERT INTO `lylme_links` (`id`, `name`, `group_id`, `url`, `icon`, `PS`,`link_order`) VALUES (NULL, '" . $name . "', '" . $group_id . "', '" . $url . "', '" . $icon . "', '" . $userip . "的提交 ', '" . $link_order . "');";
|
$sql1 = "INSERT INTO `lylme_links` (`id`, `name`, `group_id`, `url`, `icon`, `link_desc`,`link_order`) VALUES (NULL, '" . $name . "', '" . $group_id . "', '" . $url . "', '" . $icon . "', '" . $userip . "的提交 ', '" . $link_order . "');";
|
||||||
if($DB->query($sql1)) {
|
if($DB->query($sql1)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user