<?php 


/** 
***************************************************
*欢迎使用免费版SiteTeam企业建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.SiteTeam.cn 
***************************************************
**/




if(!defined('IN_SITETEAM')) { exit('Access Denied'); } if (!file_exists($user_keywords_external_data_file) || time() - filemtime($user_keywords_external_data_file) > 3600 * 24 * 7) { save_array_to_file(keywords_external_parse(), $user_keywords_external_data_file, "words_external_data"); } include $user_keywords_external_data_file; $words = empty($_GET['words']) ? empty($_POST['words']) ? '' : $_POST['words'] : $_GET['words']; $words = rawurldecode($words); if (!empty($words)) { if (array_key_exists($words, $words_external_data)) { $temp = baidu_words_link($words); if (is_array($temp) && count($temp)) { $words_external_data[$words] = array(); foreach ($temp as $v) { $words_external_data[$words][] = $v['url']; } save_array_to_file($words_external_data, $user_keywords_external_data_file, "words_external_data"); } echo '<font color="#FF0000">' . count($words_external_data[$words]) . '</font>'; } else { echo '<font color="#FF0000">Error...</font>'; } } else { include "admin/tpl/keywords_external_list.tpl.php"; } ?>