代码拉取完成,页面将自动刷新
同步操作将从 王东祥/HongYuDSC 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
//QQ:1527200768 鸿宇科技 禁止倒卖 一经发现停止任何服务
if (!$smarty->is_cached('homeindex.dwt', $cache_id) || $preview == 1) {
assign_template();
$position = assign_ur_here();
$smarty->assign('ur_here', $position['ur_here']);
$seo = get_seo_words('index');
foreach ($seo as $key => $value) {
$seo[$key] = str_replace(array('{sitename}', '{key}', '{description}'), array($position['title'], $_CFG['shop_keywords'], $_CFG['shop_desc']), $value);
}
if (!empty($seo['keywords'])) {
$smarty->assign('keywords', htmlspecialchars($seo['keywords']));
}
else {
$smarty->assign('keywords', htmlspecialchars($_CFG['shop_keywords']));
}
if (!empty($seo['description'])) {
$smarty->assign('description', htmlspecialchars($seo['description']));
}
else {
$smarty->assign('description', htmlspecialchars($_CFG['shop_desc']));
}
if (!empty($seo['title'])) {
$smarty->assign('page_title', htmlspecialchars($seo['title']));
}
else {
$smarty->assign('page_title', $position['title']);
}
$smarty->assign('flash_theme', $_CFG['flash_theme']);
$smarty->assign('feed_url', $_CFG['rewrite'] == 1 ? 'feed.xml' : 'feed.php');
$smarty->assign('warehouse_id', $region_id);
$smarty->assign('area_id', $area_id);
$smarty->assign('helps', get_shop_help());
assign_dynamic('homeindex', $region_id, $area_id);
$replace_data = array('http://localhost/ecmoban_dsc2.0.5_20170518/', 'http://localhost/ecmoban_dsc2.2.6_20170727/', 'http://localhost/ecmoban_dsc2.3/', 'http://localhost/dsc30/');
$page = get_html_file($dir . '/pc_html.php');
$nav_page = get_html_file($dir . '/nav_html.php');
$topBanner = get_html_file($dir . '/topBanner.php');
$topBanner = str_replace($replace_data, $ecs->url(), $topBanner);
$page = str_replace($replace_data, $ecs->url(), $page);
if ($GLOBALS['_CFG']['open_oss'] == 1) {
$bucket_info = get_bucket_info();
$endpoint = $bucket_info['endpoint'];
}
else {
$endpoint = !empty($GLOBALS['_CFG']['site_domain']) ? $GLOBALS['_CFG']['site_domain'] : '';
}
/* if ($page && $endpoint) {
$desc_preg = get_goods_desc_images_preg($endpoint, $page);
$page = $desc_preg['goods_desc'];
}
if ($topBanner && $endpoint) {
$desc_preg = get_goods_desc_images_preg($endpoint, $topBanner);
$topBanner = $desc_preg['goods_desc'];
} */
$user_id = !empty($_SESSION['user_id']) ? $_SESSION['user_id'] : 0;
if (!defined('THEME_EXTENSION')) {
$categories_pro = get_category_tree_leve_one();
$smarty->assign('categories_pro', $categories_pro);
}
$pc_page['tem'] = $suffix;
$smarty->assign('pc_page', $pc_page);
$smarty->assign('nav_page', $nav_page);
$smarty->assign('page', $page);
$smarty->assign('topBanner', $topBanner);
$smarty->assign('user_id', $user_id);
$smarty->assign('site_domain', $_CFG['site_domain']);
$bg_image = getleft_attr('content', 0, $pc_page['tem'], $GLOBALS['_CFG']['template']);
$smarty->assign('bg_image', $bg_image);
}
if ($preview == 1) {
$smarty->display('homeindex.dwt');
}
else {
$smarty->display('homeindex.dwt', $cache_id);
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。