$dedecms = false;$dedecms->id = 999;$dedecms->typename = '织梦链';if($type == 'dedecms') $row[] = $dedecms;二、dedecmsV5.6去除友情链接中“织梦链投放”连接的方法:
$cache_file = DEDEDATA.'/cache/dedelink.txt';if(file_exists($cache_file)){$result = unserialize(file_get_contents($cache_file));}if(!isset($result['result']) OR $result['timeout'] < time()){$linkUrl = DedeGetHtml("http://flink.dedecms.com/server_url.php")."flink_v56.php?lang={$cfg_soft_lang}&site={$_SERVER['SERVER_NAME']}&version=".$cfg_version;$linkInfo = DedeGetHtml($linkUrl);$result = array();$result['result'] = $linkInfo;$result['timeout'] = time() + 60 * 60 * 3; // 缓存3个小时file_put_contents($cache_file, serialize($result));} else {$linkInfo = $result['result'];}记得一定要重新生成HTML才行。
新闻热点
疑难解答