diff --git a/api.php b/api.php index 6f03d7a..e543209 100644 --- a/api.php +++ b/api.php @@ -4,10 +4,6 @@ require_once 'mojotrollz/autoload.inc'; require_once '/home/web/web/config/get_config.php'; \SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__))); -\SYSTEM\system::include_ExceptionShortcut(); -\SYSTEM\system::include_ResultShortcut(); -\SYSTEM\system::register_errorhandler_dbwriter(); -\SYSTEM\system::register_errorhandler_jsonoutput(); echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_mojotrollz',array_merge($_POST,$_GET)); new \SYSTEM\LOG\COUNTER("API was called sucessfully."); \ No newline at end of file diff --git a/index.php b/index.php index 330ce87..e14185a 100644 --- a/index.php +++ b/index.php @@ -4,10 +4,6 @@ require_once 'mojotrollz/autoload.inc'; require_once '/home/web/web/config/get_config.php'; \SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__))); -\SYSTEM\system::include_ExceptionShortcut(); -\SYSTEM\system::include_ResultShortcut(); -\SYSTEM\system::register_errorhandler_dbwriter(); -\SYSTEM\system::register_errorhandler_jsonoutput(); echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_mojotrollz', array_merge($_POST,$_GET), 1, false, true); new \SYSTEM\LOG\COUNTER("Page was called sucessfully."); \ No newline at end of file diff --git a/sai.php b/sai.php index 2df5895..e609540 100644 --- a/sai.php +++ b/sai.php @@ -4,10 +4,5 @@ require_once 'mojotrollz/autoload.inc'; require_once '/home/web/web/config/get_config.php'; \SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__))); -SYSTEM\system::include_ExceptionShortcut(); //allow ERROR() instead of \SYSTEM\LOG\ERROR() -SYSTEM\system::include_ResultShortcut(); //allow JsonResult() instead of \SYSTEM\LOG\JsonResult() -SYSTEM\system::register_errorhandler_dbwriter(); //write errors to database (must be first errorhandler to register) -SYSTEM\system::register_errorhandler_jsonoutput(); //print errors as json to caller -$sai = new SYSTEM\SAI\saigui(); -echo $sai->html(); \ No newline at end of file +echo (new SYSTEM\SAI\saigui())->html(); \ No newline at end of file diff --git a/setup.php b/setup.php index 6475aee..3d6b2e6 100644 --- a/setup.php +++ b/setup.php @@ -4,9 +4,5 @@ require_once 'mojotrollz/autoload.inc'; require_once '/home/web/web/config/get_config.php'; \SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__))); -\SYSTEM\system::include_ExceptionShortcut(); -\SYSTEM\system::include_ResultShortcut(); -\SYSTEM\system::register_errorhandler_dbwriter(); -\SYSTEM\system::register_errorhandler_jsonoutput(); echo \SYSTEM\SQL\setup::install(); \ No newline at end of file