diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..104c9a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/images/ +/temp/* +data/config.php + diff --git a/data/config.php b/data/config.php index b5f3a90..1741da1 100755 --- a/data/config.php +++ b/data/config.php @@ -24,6 +24,11 @@ $session = "1440"; $hb_test = '0'; +$category = [ + 'c1' => '', + 'c2' => '' +]; + define('EC_CHARSET','utf-8'); if(!defined('ADMIN_PATH')) diff --git a/index.php b/index.php index 3c3029e..b7f08b8 100755 --- a/index.php +++ b/index.php @@ -48,6 +48,7 @@ if($site_type=='web'){ $smarty->assign('ad3_list', get_rand5_ad3($site_id)); $smarty->assign('ad4_list', get_all_ad4($site_id)); $smarty->assign('footer_text', $_CFG['footer_text']); + $smarty->assign('category', $category); if($site_id>0){ $sql = 'SELECT * FROM ' . $GLOBALS['ecs']->table('portal') . diff --git a/themes/vr/portal/portal.html b/themes/vr/portal/portal.html index f869c88..47d8cf9 100755 --- a/themes/vr/portal/portal.html +++ b/themes/vr/portal/portal.html @@ -70,7 +70,9 @@ -
依景點分類 +
+ + {$category.c2} +