Initial commit (as a partial copy of md:quality)
This commit is contained in:
23
provideEnv.php
Normal file
23
provideEnv.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?PHP
|
||||
/**
|
||||
* This file sets up the quality accessment interface.
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
/*
|
||||
* MYSQL // Wrappers around mysqli functions
|
||||
*/
|
||||
require_once __DIR__ . "/constants.php";
|
||||
require_once __DIR__ . "/functions.php";
|
||||
|
||||
// Report all PHP errors
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// Set autoloader
|
||||
spl_autoload_register("mdConcAutoloader");
|
||||
|
||||
// Set exception handler for errors of log level E_USER_NOTICE
|
||||
// The handler logs the errors to a log file.
|
||||
|
||||
set_error_handler("mdConcErrorHandler", E_USER_NOTICE);
|
||||
set_exception_handler("mdConcExceptionHandler");
|
Reference in New Issue
Block a user