创业网站大全餐饮9TBHCOM大学生创业实施计划书20230202.H3T4B6. E
ժҪ
οվʵǰȷվѾֻ̬ܡ Ļ߸ļ֮ǰ뱸ݺ̨ļ \dede\task_do.phpdedeʾĺ̨Ŀ¼ 1̨-ϵͳãӱ :cfg_makemobile:(Y/N)˵:ƶɾ̬ļֵ:Y
οվʵǰȷվѾֻ̬ܡ
Ļ߸ļ֮ǰ뱸ݺ̨ļ dede ask_do.phpdedeʾĺ̨Ŀ¼
1̨-ϵͳãӱ
:cfg_makemobile
:(Y/N)
˵:ƶɾ̬ļ
ֵ:Y
:վ
2dede ask_do.php ҵ
if(is_array($nextRow))
{
$envs['aid'] = $nextRow['id'];
$arc = new Archives($nextRow['id']);
$arc->MakeHtml();
}
//ºԶƶҳһƪһƪ ʼ
if($cfg_makemobile == 'Y')
{
define('DEDEMOB', 'Y');
$arc = new Archives($aid);
$arc->MakeHtml();
if(is_array($preRow))
{
$envs['aid'] = $preRow['id'];
$arc = new Archives($preRow['id']);
$arc->MakeHtml();
}
if(is_array($nextRow))
{
$envs['aid'] = $nextRow['id'];
$arc = new Archives(nextRow['id']);
$arc->MakeHtml();
}
}
//ºԶƶҳһƪһƪ
ҵ
$pv->SaveToHtml($homeFile);
//ºԶƶҳ ʼ
if($cfg_makemobile == 'Y')
{
$templet = str_replace("{style}", $cfg_df_style, $row['templet']);
$templet = str_replace('.htm','_m.htm',$templet);
$homeFile = dirname(__FILE__).'/'.str_replace("../", '../m/',$row['position']);
$homeFile = str_replace("//", "/", str_replace("\", "/", $homeFile));
$fp = fopen($homeFile, 'w') or die("ƶҳ$homeFile λ");
fclose($fp);
$tpl = $cfg_basedir.$cfg_templets_dir.'/'.$templet;
if(!file_exists($tpl))
{
$tpl = $cfg_basedir.$cfg_templets_dir.'/default/index_m.htm';
if(!file_exists($tpl)) exit("ҵƶҳģ壺$tpl ");
}
$GLOBALS['_arclistEnv'] = 'index';
$pv->SetTemplet($tpl);
$pv->SaveToHtml($homeFile);
}
//ºԶƶҳ
ҵ
require_once(DEDEINC."/arc.listview.class.php");
$lv = new ListView($tid);
$lv->CountRecord();
$lv->MakeHtml();
$lv->Close();
//ºԶƶбҳ ʼ
if($cfg_makemobile == 'Y')
{
define('DEDEMOB', 'Y');
$lv = new ListView($tid);
$lv->CountRecord();
$lv->MakeHtml();
$lv->Close();
}
//ºԶƶбҳ
ȫ
ǩ