itxsy

首頁生成靜態(tài)頁方法

\admin\control\tool_control.class.php

第15行
!empty($_POST['filecache']) && $this->un_filecache();
下面增加:

//xiongshouyue 首頁生成靜態(tài)頁
            $cfg = $this->runtime->xget();
            $webdomain='http://'.$cfg['webdomain'];
            ob_start();
            @readfile($webdomain."/index.php");
            $text = ob_get_flush();
            $myfile = fopen("../index.html","w");
            $text =
            str_replace ("{counent}",$string,$text);
            fwrite($myfile,$text);
            ob_clean();
            //xiongshouyue 首頁生成靜態(tài)頁 完

確定你的根目錄可以寫。
點后臺更新緩存的時候就會同時生成index.html到根目錄
#1樓
發(fā)帖時間:2015-8-30   |   查看數(shù):0   |   回復(fù)數(shù):11
itxsy
好東西
2015-8-30 #2樓
qq420483556
好東西
2015-11-5 #3樓
307791065@qq.com
謝謝您的無私分享
2015-12-7 #4樓
yikuang
不還意思 沒有金幣了
2015-12-7 #5樓
yikuang
不還意思 沒有金幣了
2015-12-7 #6樓
yikuang
不還意思 沒有金幣了
2015-12-7 #7樓
yikuang
不還意思 沒有金幣了
2015-12-7 #8樓
yikuang
不還意思 沒有金幣了
2015-12-7 #9樓
986285227
不錯哦
2015-12-22 #10樓
yikuang
謝謝您的無私分享
2016-1-2 #11樓
romeshow
謝謝您的無私分享
2021-3-4 #12樓
游客組