diff --git a/apply/index.php b/apply/index.php
index 57b9cd3..b9d2a41 100644
--- a/apply/index.php
+++ b/apply/index.php
@@ -2,8 +2,8 @@
include("../include/common.php");
if(!empty($url = isset($_GET['url']) ? $_GET['url'] : null)) {
function get_head($url) {
- $get_heads = array();
- $opts = array(
+ ini_set("user_agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36 Edg/101.0.1210.39 Lylme/11.24");
+ $opts = array(
'http'=>array(
'method'=>"GET",
'timeout'=>4
@@ -13,6 +13,7 @@ if(!empty($url = isset($_GET['url']) ? $_GET['url'] : null)) {
preg_match('/
(.*?)<\/title>/is',$contents,$title); // 获取网站标题
preg_match('//is', $contents,$icon); // 获取网站icon
preg_match('/query("SELECT * FROM `lylme_groups`");
if(isset($_REQUEST['authcode'])) {
@@ -70,10 +72,10 @@ if(isset($_REQUEST['authcode'])) {
if($DB->query($sql)) {
switch ($status) {
case 0:
- echo '';
+ echo '';
break;
case 1:
- $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 . "');";
if($DB->query($sql1)) {
echo '';
@@ -104,88 +106,33 @@ if(isset($_REQUEST['authcode'])) {
- 
-正在获取....
-';}
- else{ echo '';}?>
+

正在获取....
+';}
+ else{ echo '
';}
+?>
');
+ exit(''. $conf['apply_gg']. '
');
}
?>
@@ -193,13 +140,14 @@ if(isset($_REQUEST['authcode'])) {