query("SELECT * FROM `lylme_groups` WHERE `group_pwd` = 0"); if (!empty($url = isset($_GET['url']) ? $_GET['url'] : null)) { header('Content-Type:application/json'); //获取网站信息 $head = get_head($_GET['url']); $head = json_encode($head, JSON_UNESCAPED_UNICODE); //将合并后的数组转换为json exit($head); //输出json } elseif (isset($_GET['submit']) == 'post') { if (isset($_REQUEST['authcode'])) { session_start(); if (strtolower($_REQUEST['authcode']) == $_SESSION['authcode']) { $status = isset($conf["apply"]) ? $conf["apply"] : 0; if ($status == 2) { exit('{"code": "400", "msg": "网站已关闭收录"}'); } exit(apply($_POST['name'], $_POST['url'], $_POST['icon'], $_POST['group_id'], $status)); } else { exit('{"code": "-6", "msg": "验证码错误"}'); } } exit(); } ?>
URL
地址,如:http://www.xxx.com/logo.png