X-Git-Url: https://git.cweiske.de/phancap.git/blobdiff_plain/aff10bd3ebdabe6efe7f1ffdb9df7177c6334135..00e918bc6ce0439f9245ce6335925d8e1e042cc2:/www/get.php diff --git a/www/get.php b/www/get.php index 739aaf8..f78c3b5 100644 --- a/www/get.php +++ b/www/get.php @@ -1,8 +1,18 @@ + * @copyright 2014 Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @link http://cweiske.de/phancap.htm */ +namespace phancap; + header('HTTP/1.0 500 Internal Server Error'); if (file_exists(__DIR__ . '/../src/phancap/Autoloader.php')) { @@ -50,6 +60,7 @@ try { } } catch (\Exception $e) { //FIXME: handle 404s and so properly + //FIXME: send out error image if images are preferred header('HTTP/1.0 500 Internal Server error'); header('Content-type: text/plain'); echo $e->getMessage() . "\n";