-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.inc.php
More file actions
37 lines (27 loc) · 846 Bytes
/
Copy pathcommon.inc.php
File metadata and controls
37 lines (27 loc) · 846 Bytes
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
<?php
//前台缓存开关
define('IS_CAHCE',true);
//模板句柄
global $_tpl,$_cache;
if (IS_CAHCE && !$_cache->noCache()) {
ob_start();
$_tpl->cache(Tool::tplName().'.tpl');
}
$_nav = new NavAction($_tpl);
$_nav->showfront(); //列出主导航
$_cookie = new Cookie('user');
if (IS_CAHCE) {
$_tpl->assign('header','<script type="text/javascript">getHeader();</script>');
} else {
if ($_cookie->getCookie()) {
$_tpl->assign('header',$_cookie->getCookie().',您好! <a href="register.php?action=logout">退出</a> ');
} else {
$_tpl->assign('header',' <a href="register.php?action=reg" class="user">注册</a> <a href="register.php?action=login" class="user">登录</a>');
}
}
$_link = new FriendLinkAction($_tpl);
$_link->index();
$_tag = new TagAction($_tpl);
$_tag->getFiveTag();
$_tpl->assign('webname',WEBNAME);
?>