/** * show_head * * * * * * */ function show_head($head_content = '', $config = '') { // get default config from database if needed if (empty($config)) { $config = get_settings(); /* $config['site']['meta'] = $config['meta']; unset($config['meta']); $config_site = $config['site']; unset($config); */ } // doctype echo !empty($head_content['doctype']) ? $head_content['doctype'] : declare_doctype($config['site']['doctype']); // html lang echo !empty($head_content['html_lang']) ? $head_content['html_lang'] : declare_html_lang($config['site']['html_lang'], $config['site']['xml_namespaces']); // start head section $title = !empty($config['site']['meta_title']) ? $config['site']['meta_title'] : $config['site']['title']; echo "\n" . '<head> <title>' . $title . '</title>'; // base href echo ' <base href="' . constant('WW_WEB_ROOT') . '" />' . "\n"; // meta tags echo !empty($head_content['meta']) ? $head_content['meta'] : declare_meta($config['meta']); // head links $links_array = isset($config['site']['link']) ? $config['site']['link'] : array(); echo !empty($head_content['links']) ? $head_content['links'] : insert_links($links_array); // favicon echo !empty($head_content['favicon']) ? $head_content['favicon'] : insert_favicon($config['site']['theme']); // css echo !empty($head_content['css']) ? $head_content['css'] : insert_css($config['site']['theme']); // js echo !empty($head_content['js']) ? $head_content['js'] : insert_js($config['site']['theme']); // analytics if (!empty($config['connections']['google_analytics'])) { echo insert_google_analytics($config['connections']['google_analytics']); } // close head section echo "\n" . '</head>'; return; }
function GetUrl_AllSite($in_url) { global $db; $query = $db->query("select * from ve123_links_temp where url like '%" . $in_url . "%' and updatetime<='" . (time() - 86400 * 30) . "'"); while ($row = $db->fetch_array($query)) { @$db->query("update ve123_links_temp set updatetime='" . time() . "' where url='" . $row["url"] . "'"); insert_links($row["url"]); //sleep(3); } //sleep(5); GetUrl_AllSite($in_url); }
<link rel="stylesheet" href="xp.css" type="text/css"> <?php set_time_limit(0); //error_reporting(0); require "global.php"; echo "正在检查网址中...<br>"; print str_repeat(" ", 4096); ob_flush(); flush(); sleep(1); $url = $_GET["url"]; if (empty($url)) { echo tips("网址不能为空!"); die; } insert_links($url); GetUrl_AllSite(GetSiteUrl($url)); $db->close();