crmeb index

位置:首頁 / 新聞中心 / 知識教程

知識教程 Admin 2024-02-28 17:47:31 1343

<?php

// +----------------------------------------------------------------------

// | ThinkPHP [ WE CAN DO IT JUST THINK ]

// +----------------------------------------------------------------------

// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.

// +----------------------------------------------------------------------

// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )

// +----------------------------------------------------------------------

// | Author: liu21st <liu21st@gmail.com>

// +----------------------------------------------------------------------


// [ 應用入口文件 ]

namespace think;


define('DS', DIRECTORY_SEPARATOR);


//檢測是否已安裝

    if($_SERVER['PHP_SELF'] != '/index.php'){

        header("Content-type: text/html; charset=utf-8");

        exit("請在域名根目錄下安裝,如:<br/> www.xxx.com/index.php 正確 <br/>  www.xxx.com/www/index.php 錯誤,域名后面不能圈套目錄, 但項目沒有根目錄存放限制,可以放在任意目錄,apache虛擬主機配置一下即可");

    }

    header('Location:/install/index.php');

    exit();

}


require __DIR__ . '/../vendor/autoload.php';


// 執(zhí)行HTTP應用并響應

$http = (new App())->http;


$response = $http->run();


$response->send();


$http->end($response);


以上就是“crmeb index”的詳細內(nèi)容,更多請關注木子天禾科技其它相關文章!

15934152105 掃描微信