X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/d4b4ac3445388cb47ecd0098a6b932a4491074b7..d4fc5883a123ce28c56a963e77c700db04e26ac9:/edit.php diff --git a/edit.php b/edit.php index 1285959..9532e42 100755 --- a/edit.php +++ b/edit.php @@ -5,6 +5,10 @@ function abort($status, $body) { exit; } +require 'auth.inc.php'; +if (!$editable) + abort('401 unauthorised', "geen beheersrechten"); + if (!$_POST) abort('405 post error', "niets te doen"); if (!isset($_SERVER['PATH_INFO']) or strlen($_SERVER['PATH_INFO']) <= 1)