metremark/web/index.class.php

33 lines
817 B
PHP

<?php
defined('IN_MET') or exit ('No permission');
load::sys_class('web');
class index extends web
{
public function __construct()
{
global $_M;
parent::__construct();
ini_set("display_errors", "On");
error_reporting(E_ALL & ~E_NOTICE);
}
//应用入口
public function doindex()
{
global $_M;
$_M['url']['site'] = '';//首页使用相对路径
load::mod_class('user/user_url', 'new')->insert_m(); //首页重新给会员链接赋值
$_M['config']['met_weburl'] = '';
$title = $_M['config']['met_hometitle'] ? $_M['config']['met_hometitle'] : $_M['config']['met_webname'] . '-' . $_M['config']['met_keywords'];
$this->seo_title($title);
$this->view('app/index', $this->input);
}
}
?>