📄 正在查看:twcms/control/index_control.class.php
大小:802 字节 · 修改:2014-01-23 01:42:52 · 行数:33
1<?php
2/**
3 * (C)2012-2014 twcms.com TongWang Inc.
4 * Author: wuzhaohuan <kongphp@gmail.com>
5 */
6
7defined('TWCMS_PATH') or exit;
8
9class index_control extends control{
10 public $_cfg = array(); // 全站参数
11 public $_var = array(); // 首页参数
12
13 public function index() {
14 // hook index_control_index_before.php
15
16 $this->_cfg = $this->runtime->xget();
17 $this->_cfg['titles'] = $this->_cfg['webname'].(empty($this->_cfg['seo_title']) ? '' : ' - '.$this->_cfg['seo_title']);
18 $this->_var['topcid'] = 0;
19
20 $this->assign('tw', $this->_cfg);
21 $this->assign('tw_var', $this->_var);
22
23 $GLOBALS['run'] = &$this;
24
25 // hook index_control_index_after.php
26
27 $_ENV['_theme'] = &$this->_cfg['theme'];
28 $this->display('index.htm');
29 }
30
31 // hook index_control_after.php
32}
33