crmeb index

位置:首頁 / 新聞中心 / 知識(shí)教程

知識(shí)教程 Admin 2024-02-28 17:47:31 1275

<?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>

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


// [ 應(yīng)用入口文件 ]

namespace think;


define('DS', DIRECTORY_SEPARATOR);


//檢測是否已安裝

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

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

        exit("請?jiān)谟蛎夸浵掳惭b,如:<br/> www.xxx.com/index.php 正確 <br/>  www.xxx.com/www/index.php 錯(cuò)誤,域名后面不能圈套目錄, 但項(xiàng)目沒有根目錄存放限制,可以放在任意目錄,apache虛擬主機(jī)配置一下即可");

    }

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

    exit();

}


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


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

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


$response = $http->run();


$response->send();


$http->end($response);


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

15934152105 掃描微信