118 Star 203 Fork 108

大灰狼 / WCMS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 792 Bytes
一键复制 编辑 原始数据 按行查看 历史
wolf 提交于 2015-12-19 10:15 . 删除不不必要的文件
<?php
session_start();
@header("Content-type: text/html; charset=utf-8");
//关闭错误提示 0关闭 1开启
ini_set('display_errors', 1);
error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT); //php5.4报错 E_STRICT
//配置时区
date_default_timezone_set('Asia/Shanghai');
define('ROOT', realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR);
define('APP', './app/');
//配置加载路径
set_include_path(implode(PATH_SEPARATOR, array(
realpath('./lib'),
realpath('./config'),
realpath('./lang'),
get_include_path())));
//引入多语言
if (! isset($_COOKIE['lang'])) {
setcookie("lang", "cn", time() + 3600 * 10, "/");
}
//是否捕获fatal error:non-object错误
define('NONOBJECT', 1);
require_once 'App.php';
$app = App::getInstance();
$app->run();
PHP
1
https://gitee.com/wcms/WCMS.git
git@gitee.com:wcms/WCMS.git
wcms
WCMS
WCMS
11

搜索帮助