<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]

// 定义应用目录
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
define('APP_PATH', __DIR__ . '/../application/');  // D:\phpStudy\PHPTutorial\WWW\meijiang\public/../application/
define('__ROOT__', __DIR__ . '/../');  // D:\phpStudy\PHPTutorial\WWW\meijiang\public/../
define('__PUBLIC__', __DIR__ . '/');  // D:\phpStudy\PHPTutorial\WWW\meijiang\public/
define('PROJECT_PATH', '/'.basename(dirname(__DIR__ ))); // /meijiang   相对路径从
define('DIR_PATH', dirname(__DIR__ ));  // D:\phpStudy\PHPTutorial\WWW\meijiang  物理路径使用
define('DIR_PUBLIC', (__DIR__ ));  // D:\phpStudy\PHPTutorial\WWW\meijiang  物理路径使用
//define('UPLOAD_PATH', __DIR__ . '/../data/upload/');


if(!file_exists(__PUBLIC__.DS.'install'.DS.'installed.lock'))
{
    header('Location: /install/index.php');
    exit;
}

// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';
