summaryrefslogtreecommitdiff
path: root/app.php
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-02 16:31:02 +0200
committerRaindropsSys <contact@minteck.org>2023-06-02 16:31:02 +0200
commit48afc99d05c7bcd54231f340635f5102a03fbda4 (patch)
treebdad312490ee42b84dde71d5c49266f1b7fc792e /app.php
parent82ef2e6f4fadb6ed721a0de79ec4d2fcfdc3f426 (diff)
downloadpluralconnect-48afc99d05c7bcd54231f340635f5102a03fbda4.tar.gz
pluralconnect-48afc99d05c7bcd54231f340635f5102a03fbda4.tar.bz2
pluralconnect-48afc99d05c7bcd54231f340635f5102a03fbda4.zip
Updated 7 files, added error.php and deleted 39 files (automated)
Diffstat (limited to 'app.php')
-rw-r--r--app.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/app.php b/app.php
index ec85fbe..8033207 100644
--- a/app.php
+++ b/app.php
@@ -1,5 +1,10 @@
<?php
+ob_start();
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/error.php";
+set_error_handler("ch_error");
+
$start = microtime(true);
$GLOBALS["ColdHazeStart"] = microtime(true);
$GLOBALS["ColdHazePerformance"] = [];
@@ -104,4 +109,8 @@ if (in_array($toplevel, ["editor", "icons", "species", "uploads"])) {
}
}
}
-} \ No newline at end of file
+}
+
+$output = ob_get_contents();
+ob_end_clean();
+echo($output); \ No newline at end of file