]> git.mxchange.org Git - friendica.git/blobdiff - index.php
post branch fixes
[friendica.git] / index.php
index e27d6f04fa5efb51ed2b49ca087f48b777b6d493..2353355f0cb0717c16eafd2c181d934bcbd89ede 100644 (file)
--- a/index.php
+++ b/index.php
@@ -36,6 +36,7 @@ if(strlen($a->module)) {
                $a->module_loaded = true;
        }
        else {
+               header($_SERVER["SERVER_PROTOCOL"] . ' 404 ' . t('Not Found'));
                notice( t('Page not found' ) . EOL);
        }
 }
@@ -88,6 +89,11 @@ if(x($_SESSION,'sysmsg')) {
        unset($_SESSION['sysmsg']);
 }
 
+if(stristr($_SESSION['sysmsg'], t('Permission denied'))) {
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 ' . t('Permission denied.'));
+}
+
+
 // Feel free to comment out this line on production sites.
 $a->page['content'] .= $debug_text;