* 网站框架首页文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF */ require_once 'config/config.inc.php'; $objWebInit = new ArthurXF(); if (empty($arrGPdoDB['db_name']) || empty($arrGPdoDB['db_user'])) { header("Location: {$arrGWeb['WEB_ROOT_pre']}/install/"); exit; } //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); $objWebInit->db(); //smarty参数 $objWebInit->arrGSmarty = $arrGSmarty; // 新闻 include 'news/block/top_index.php'; // 供求 include 'car_ad/block/top_index.php'; include 'Community_ad/block/top_index.php'; include 'multimedia_ad/block/top_index.php'; include 'Newspapers_magazines/block/top_index.php'; include 'outdoor_ad/block/top_index.php'; include 'Personality_customization/block/top_index.php'; include 'plane_ad/block/top_index.php'; include 'Planning_production/block/top_index.php'; include 'read_ad/block/top_index.php'; include 'shelter_ad/block/top_index.php';
$arrModuleDirs[$k]['state'] = 2; } else { $arrModuleDirs[$k]['state'] = 0; } $arrModuleDirs[$k]['id'] = $v; include '../' . $v . '/config/var.inc.php'; $arrModuleDirs[$k]['name'] = $arrGWeb['module_name']; } $arrMOutput["smarty_assign"]['arrModuleDirs'] = $arrModuleDirs; $arrMOutput["smarty_assign"]['step'] = 5; $arrMOutput["smarty_assign"]['info'] = '选择需要安装的栏目'; $arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['main_dir'] . 'step5.html'; $arrMOutput['smarty_assign']['Title'] = $arrMOutput["smarty_assign"]['info'] . ' - BIWEB WMS安装第五步'; } elseif ($_GET['step'] == 6) { //数据库连接 $objWebInit->db(); $charset = str_replace('-', '', $arrGWeb['charset']); $extend = $objWebInit->db->getAttribute(PDO::ATTR_SERVER_VERSION) > '4.1' ? " DEFAULT CHARSET={$charset} " : ""; //写入频道数组 $strWEB_ROOT_pre = $arrGWeb['WEB_ROOT_pre']; unset($arrGWeb); $strFilename = __WEB_ROOT . '/data/webconfig.inc.php'; @(include $strFilename); if (!is_file(__WEB_ROOT . '/data/install.lock')) { $arrGMeta = array(); $arrGMeta['index']['name'] = '网站首页'; $arrGMeta['index']['meta'] = array('Title' => '', 'Description' => '', 'Keywords' => ''); $arrGMeta['user']['name'] = '用户系统'; $arrGMeta['user']['admin'] = array(array('href' => '../mcenter/admin/', 'name' => '用户中心管理')); $arrGMeta['user']['meta'] = array('Title' => $arrGMeta['user']['name'], 'Description' => $arrGMeta['user']['name'], 'Keywords' => $arrGMeta['user']['name']); $arrGWeb['templates_id'] = '1';