X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=1d0aabb8bb375ea0592ba138e2b3a0ca72a9e5c7;hb=2e77cbfa8672b2d93ea5058930179fd1bbabd2ab;hp=98ad54a1fc9b7512b2528ebc23454b630930d2eb;hpb=4c6803a0540243c2ae1e36b6fafc8728e69473cc;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 98ad54a1fc..1d0aabb8bb 100644 --- a/index.php +++ b/index.php @@ -203,7 +203,7 @@ function setupRW() function isLoginAction($action) { - static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds', 'otp', 'opensearch', 'rsd', 'hostmeta'); + static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds', 'otp', 'opensearch', 'rsd'); $login = null; @@ -242,8 +242,6 @@ function main() } global $user, $action; - Snapshot::check(); - if (!_have_config()) { $msg = sprintf( // TRANS: Error message displayed when there is no StatusNet configuration file. @@ -288,7 +286,6 @@ function main() // If the request is HTTP and it should be HTTPS... if ($site_ssl != 'never' && !StatusNet::isHTTPS() && common_is_sensitive($args['action'])) { common_redirect(common_local_url($args['action'], $args)); - return; } $args = array_merge($args, $_REQUEST); @@ -299,7 +296,6 @@ function main() if (!$action || !preg_match('/^[a-zA-Z0-9_-]*$/', $action)) { common_redirect(common_local_url('public')); - return; } // If the site is private, and they're not on one of the "public" @@ -326,7 +322,6 @@ function main() common_set_returnto(common_local_url($action, $rargs)); common_redirect(common_local_url('login')); - return; } $action_class = ucfirst($action).'Action';