aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2010-12-17 11:53:05 +0100
committerroot <root@diekershoff.homeunix.net>2010-12-17 11:53:05 +0100
commitf6ee615a79eaab03adc540704ab17b8a44a3d9e8 (patch)
treec92b91abd9e84d32bcfebda77529b68887b16c9b /index.php
parent79ab5b2ff87ef171a9baf604179080861d64d788 (diff)
parentd1261e50c6a804d329b674dfba66574419c5f6c5 (diff)
downloadvolse-hubzilla-f6ee615a79eaab03adc540704ab17b8a44a3d9e8.tar.gz
volse-hubzilla-f6ee615a79eaab03adc540704ab17b8a44a3d9e8.tar.bz2
volse-hubzilla-f6ee615a79eaab03adc540704ab17b8a44a3d9e8.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index 2f56d5414..eac3b66df 100644
--- a/index.php
+++ b/index.php
@@ -131,6 +131,11 @@ if(strlen($a->module)) {
$a->module_loaded = true;
}
else {
+ if((x($_SERVER,'QUERY_STRING')) && ($_SERVER['QUERY_STRING'] === 'q=internal_error.html') && isset($dreamhost_error_hack)) {
+ logger('index.php: dreamhost_error_hack invoked');
+ goaway($a->get_baseurl() . $_SERVER['REQUEST_URI']);
+ }
+
logger('index.php: page not found: ' . $_SERVER['REQUEST_URI'] . ' QUERY: ' . $_SERVER['QUERY_STRING'], LOGGER_DEBUG);
header($_SERVER["SERVER_PROTOCOL"] . ' 404 ' . t('Not Found'));
notice( t('Page not found.' ) . EOL);