start api implementation

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-15 07:47:35 +01:00
parent 5c30961d3c
commit dd371c72a2
9 changed files with 339 additions and 13 deletions

View File

@@ -25,7 +25,7 @@
* @author Florian Lippert <flo@syscp.org>
* @author Ron Brand <ron.brand@web.de>
*/
function standard_error($errors = '', $replacer = '') {
function standard_error($errors = '', $replacer = '', $throw_exception = false) {
global $userinfo, $s, $header, $footer, $lng, $theme;
@@ -60,6 +60,9 @@ function standard_error($errors = '', $replacer = '') {
}
}
if ($throw_exception) {
throw new Exception($error);
}
eval("echo \"" . getTemplate('misc/error', '1') . "\";");
exit;
}