-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
64 lines (53 loc) · 1.44 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
include_once("head.php");
//--判斷使用MVC框架
if ($_SETUP['MVC']){
//--控制器操作
$console->controller('console');
//--輸出樣板
$tploutput = $console->design->views;
}else{
if($page_name=="") $page_name='index';
if ($page_name=='index'){
switch ($_GET["class"]){
default:
//--首頁最新消息
$lang = ' and lang="'.$_SESSION["mode_lang"].'"';
$data["title_img"] = $_SETUP["title_img"][$_GET["j_set_patten"]];
$temp = $conn->GetArray("select * from ".PREFIX."data_list where type='news'".$lang." order by sort");
$data["news"] = $temp;
//edm
$temp = $conn->GetRow("select * from ".PREFIX."data_list where type='EDM'".$lang);
$data["EDM"] = explode('|__|',dequotes($temp["pic"],-1));
$design->load('index');
break;
}
$tploutput = $design->views;
}
}
//--進行輸出註解去除處理
ob_start();
if ($_SETUP['MVC'])
$console->tpl->display("string:".$tploutput);
else
$tpl->display("string:".$tploutput);
$smarty_output = ob_get_contents(); //接收快取頁面
ob_end_clean();
//--檔案授權參數
$_SESSION['file_auth']['jones_demo'] = '1';
$_SESSION["fileauth_array"]['jones_demo']=array();
$_SESSION["fileauth_time_array"]['jones_demo']=array();
//--seo處理
if ($_SETUP['MVC']){
$console->seo->work($smarty_output);
$console->seo->output();
}else{
$seo->work($smarty_output);
$seo->output();
}
$conn->close();
unset($design);
unset($mail);
unset($tpl);
unset($conn);
?>