$dedecms = false; $dedecms->id = 999; $dedecms->typename = '織夢(mèng)鏈'; if($type == 'dedecms') $row[] = $dedecms;二、dedecmsV5.6去除友情鏈接中“織夢(mèng)鏈投放”連接的方法:
$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個(gè)小時(shí) file_put_contents($cache_file, serialize($result)); } else { $linkInfo = $result['result']; }記得一定要重新生成HTML才行。
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 織夢(mèng)dedecms去掉友情鏈接中“織夢(mèng)鏈”的方法