diff --git a/webapp/index.php b/webapp/index.php index b6263b95..f1a7ab11 100644 --- a/webapp/index.php +++ b/webapp/index.php @@ -11,7 +11,13 @@ if (empty($_REQUEST['c']) || empty($_REQUEST['a'])) { function autoload_controller__($classname) { - require_once "controller/$classname.class.php"; + $fileName = "controller/$classname.class.php"; + if (!file_exists($fileName)) { + if (SERVER_ENV == _ONLINE) { + die(); + } + } + require_once $fileName; spl_autoload_unregister('autoload_controller__'); } spl_autoload_register('autoload_controller__');