-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.php
47 lines (37 loc) · 2.27 KB
/
loader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* MiraiEz Copyright (c) 2021-2024 NKXingXh
* License AGPLv3.0: GNU AGPL Version 3 <https://www.gnu.org/licenses/agpl-3.0.html>
* This is free software: you are free to change and redistribute it.
* There is NO WARRANTY, to the extent permitted by law.
*
* Github: https://github.com/nkxingxh/MiraiEz
*/
if (defined('mdm_cli') || !empty(__FUNCTION__)) { //如果在 mdm_cli 中运行 (或在函数中运行) 则定义全局变量
global $baseDir, $dataDir;
}
$baseDir = __DIR__;
define('baseDir', $baseDir); //定义站点目录
$coreDir = "$baseDir/core";
if (!defined("webhook")) define("webhook", false);
require_once "$baseDir/config/adapter.php";
require_once "$baseDir/config/debug.php";
require_once "$coreDir/pfa.php";
require_once "$coreDir/errorHandle.php";
require_once "$coreDir/string.php";
require_once "$coreDir/curl.php";
require_once "$coreDir/easyMirai.php";
require_once "$coreDir/pluginsHelp.php";
require_once "$coreDir/OneBotBridge.php";
if (file_exists(baseDir . '/vendor/autoload.php'))
require_once baseDir . '/vendor/autoload.php';
$dataDir = getDataDir();
// define('dataDir', $dataDir);
const MIRAIEZ_VERSION = '2.4.2';
require_once "$coreDir/adapter.php";
require_once "$coreDir/core.php";
if (MIRAIEZ_PFA) $pfa_loadedTime = microtime(true);
$TypedArt = "\n███╗ ███╗██╗██████╗ █████╗ ██╗███████╗███████╗\n████╗ ████║██║██╔══██╗██╔══██╗██║██╔════╝╚══███╔╝\n██╔████╔██║██║██████╔╝███████║██║█████╗ ███╔╝ \n██║╚██╔╝██║██║██╔══██╗██╔══██║██║██╔══╝ ███╔╝ \n██║ ╚═╝ ██║██║██║ ██║██║ ██║██║███████╗███████╗\n╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝\n\nMiraiEz " . MIRAIEZ_VERSION . " - Copyright (c) 2021-2024 NKXingXh\n\n";
if (defined('MIRAIEZ_RUNNING_MODE') && MIRAIEZ_RUNNING_MODE == 2) {
echo $TypedArt;
}