From 825c9662ddc1c534712056c458c8f6d71b81b921 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 30 Apr 2014 19:09:47 +0200 Subject: [PATCH] add separate setupcheck file --- README.rst | 3 +++ www/.htaccess | 1 + www/setup.php | 18 ++++++++++++++++++ www/www-header.php | 1 + 4 files changed, 23 insertions(+) create mode 100644 www/setup.php diff --git a/README.rst b/README.rst index f70796a..07babec 100644 --- a/README.rst +++ b/README.rst @@ -286,6 +286,8 @@ URLs Shows form for new paste ``/login`` Login page for protecting site +``/setup`` + Check if everything is setup correctly and all dependencies are installed ``/user`` Edit logged-in user information @@ -331,5 +333,6 @@ If you use nginx, place the following lines into your ``server`` block: rewrite ^/search/([0-9]+)$ /search.php?page=$1; rewrite ^/login$ /login.php; + rewrite ^/setup$ /setup.php; rewrite ^/user$ /user.php; } diff --git a/www/.htaccess b/www/.htaccess index c076e6c..94a6979 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -30,4 +30,5 @@ RewriteRule ^search$ search.php RewriteRule ^search/([0-9]+)$ search.php?page=$1 RewriteRule ^login$ login.php +RewriteRule ^setup$ setup.php RewriteRule ^user$ user.php diff --git a/www/setup.php b/www/setup.php new file mode 100644 index 0000000..b042339 --- /dev/null +++ b/www/setup.php @@ -0,0 +1,18 @@ + diff --git a/www/www-header.php b/www/www-header.php index 1d59b1c..d763742 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -27,6 +27,7 @@ set_exception_handler( if (!isset($GLOBALS['twig'])) { echo '

Exception

'; echo '

' . $e->getMessage() . '

'; + echo "\n"; exit(); } -- 2.30.2