Significantly catch syntax errors in editor saves.
--- /dev/null
+<?php
+http_response_code(500);
+?>
+<h2>Scriptfout</h2>
+
+<p>Er ging iets mis: <pre class="warn"><?php print $error; ?></pre>
+Waarschijnlijk wordt hier aan gewerkt, maar als het probleem aanhoudt
+geef het dan aan <a href="/contact">ons</a> door.
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
+set_exception_handler(function ($error) {
+ include_once 'page.inc.php';
+ include_once '500.php';
+});
+
include_once 'auth.inc.php';
$Edit = isset($_GET['edit']);