用w88建站会手机站主页不更新的苦恼,每次PC更新,要去删去m目录下的index.html,手机站主页才会更新,这样很费事,通过以下修正,让手机站主页是动态的,不生成index.html,PC端更新后,手机端主页主动更新。
把\m\index.php里边的
$row['showmod'] = isset($row['showmod'])? $row['showmod'] : 0; if ($row['showmod'] == 1) { $pv->SaveToHtml(dirname(__FILE__).'/index.html'); include(dirname(__FILE__).'/index.html'); exit(); } else { $pv->Display(); exit(); }
改成
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); $pv->Display(); exit();
w88二次开发QQ群
本站客服QQ号:,群号(383578617) 假如您有任何w88问题,请把问题发到群里,阁主将为您写处理教程!