Show logs through the web interface

This commit is contained in:
Gilles Crettenand
2015-06-04 09:35:17 +02:00
parent 164c1c78b3
commit dccbbb98e5
6 changed files with 72 additions and 17 deletions

View File

@@ -2,20 +2,7 @@
namespace BSR;
ini_set('display_errors', 'On');
// register an autoloader to automatically load classes
// the namespace for the class must begin with BSR and
// otherwise respect the PSR-4 standard
spl_autoload_register(function ($class) {
$class = substr($class, strlen('BSR'));
$path = sprintf('%s/%s.php', __DIR__, str_replace('\\', '/', $class));
if (file_exists($path)) {
/** @noinspection PhpIncludeInspection */
require $path;
}
});
require_once('Lib/autoloader.php');
$web = new NetBiblio();
$web->Run();