文章时间:2019年9月17日 03:47:17 解决问题:织梦直接进入默认首页,不跳转index.html页面
<?php
if(!file_exists(dirname(__FILE__).'/data/common.inc.php'))
if(!file_exists(dirname(__FILE__).'/data/common.inc.php'))
{
{
header('Location:install/index.php');
header('Location:install/index.php');
exit();
exit();
}
}
require_once (dirname(__FILE__) . "/include/common.inc.php");
require_once (dirname(__FILE__) . "/include/common.inc.php");
require_once DEDEINC."/arc.partview.class.php";
require_once DEDEINC."/arc.partview.class.php";
$GLOBALS['_arclistEnv'] = 'index';
$GLOBALS['_arclistEnv'] = 'index';
$row = $dsql->GetOne("Select * From `dede_homepageset`");
$row = $dsql->GetOne("Select * From `dede_homepageset`");
$row['templet'] = MfTemplet($row['templet']);
$row['templet'] = MfTemplet($row['templet']);
$pv = new PartView();
$pv = new PartView();
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']);
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']);
$pv->Display();
$pv->Display();
?>