--- a/include/common.inc.php +++ b/include/common.inc.php @@ -4,11 +4,9 @@ $basePath = ""; if (strstr($_SERVER['PHP_SELF'], "alaveteli/") - || strstr($_SERVER['PHP_SELF'], "myway/") + || strstr($_SERVER['PHP_SELF'], "admin/") || strstr($_SERVER['PHP_SELF'], "lib/") - || strstr($_SERVER['PHP_SELF'], "geo/") - || strstr($_SERVER['PHP_SELF'], "include/") - || strstr($_SERVER['PHP_SELF'], "servicealerts/")) + || strstr($_SERVER['PHP_SELF'], "include/")) $basePath = "../"; include_once ('couchdb.inc.php');