-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
47 lines (37 loc) · 1.07 KB
/
index.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
/*
* This file is part of MMLC - ModifiedModuleLoaderClient.
*
* (c) Robin Wieschendorf <mail@robinwieschendorf.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
define('LOADED_FROM_INDEX', true);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require 'vendor/autoload.php';
use RobinTheHood\Debug\Debug;
use RobinTheHood\ModifiedModuleLoaderClient\App;
use RobinTheHood\ModifiedModuleLoaderClient\Config;
use RobinTheHood\ModifiedModuleLoaderClient\ExceptionMonitorFactory;
$exceptionMonitor = ExceptionMonitorFactory::getExceptionMonitor();
$exceptionMonitor->register();
function debugOut($value)
{
Debug::out($value);
}
function debugDie($value)
{
Debug::out($value);
die();
}
function debugLog($value)
{
$str = date('Y-m-d H:i:s');
$str .= ': ' . print_r($value, true) . "\n";
file_put_contents(App::getRoot() . '/log.txt', $str, FILE_APPEND);
}
App::setModulesDir(Config::getModulesLocalDir());
App::start();