Watch 3 Star 7 Fork 4

mz / php_mzdnsPHPApache-2.0

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
站群,大量域名 通过 dns 服务商 api 批量添加 ip 工具。你懂的~ 基于 mzphp2 框架。 spread retract

http://www.quncool.com/

Clone or download
index.php 783 Bytes
Copy Edit Web IDE Raw Blame History
mz authored 2015-02-16 17:26 . init project
<?php
define('DEBUG', ((isset($argc) && $argc) || strstr($_SERVER['REQUEST_URI'], 'debug')) ? 1:1);
// 站点根目录,在单元测试时候,此文件可能被包含
define('ROOT_PATH', str_replace('\\', '/', dirname(__FILE__)).'/');
if(!($conf = include(ROOT_PATH.'conf/conf.php'))) {
exit('config file not exists');
}
// 框架的物理路径
define('FRAMEWORK_PATH', ROOT_PATH.'../mzphp/');
// 临时目录
define('FRAMEWORK_TMP_PATH', $conf['tmp_path']);
// 日志目录
define('FRAMEWORK_LOG_PATH', $conf['log_path']);
//扩展核心目录(该目录文件会一起打包入runtime.php文件中)
define('FRAMEWORK_EXTEND_PATH', ROOT_PATH.'lib/');
// 包含核心框架文件,转交给框架进行处理。
include FRAMEWORK_PATH.'mzphp.php';
core::run($conf);
?>

Comment ( 0 )

You need to Sign in for post a comment

Help Search