From bc0ed096c45e6dd3b31859cb8adc577b6a548d39 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Mon, 5 Nov 2012 08:29:09 +0000 Subject: remove error logs and few fixes. --- server.php | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'server.php') diff --git a/server.php b/server.php index 889812614..7ebe70dd4 100755 --- a/server.php +++ b/server.php @@ -4,36 +4,29 @@ require_once('openid_server_include.php'); require_once 'lib/session.php'; require_once 'lib/actions.php'; -error_log('translations: '.print_r($CONFIG->translations,true)); +if (elgg_get_viewtype() == 'xrds') { + echo elgg_view_page($title, $body); + exit(0); +} -error_log('in server.php - trying to get server $_SESSION = '.print_r($_SESSION,true)); $store = getOpenIDServerStore(); $server =& getServer(); -error_log('in server.php - trying to decode request, action='.getAction()); - $request = $server->decodeRequest(); -//error_log('in server.php - request:'.print_r($request,true)); setRequestInfo($request); -error_log('in server.php - after setRequestInfo'); + $action = getAction(); if (!function_exists($action)) { $action = 'action_default'; } -error_log('in server.php - dispatching action '.$action); - $resp = $action(); - -writeResponse($resp); -/*if (isloggedin()) { - error_log('in server.php - about to forward'); - forward($CONFIG->wwwroot.'mod/openid_server/actions/trust.php'); +if (!empty($resp)) { + writeResponse($resp); } else { - error_log('in server.php - not logged in'); - system_message(elgg_echo('openid_server:not_logged_in')); - forward(); -}*/ + echo elgg_view_page($title, $body); + exit(0); +} ?> -- cgit v1.2.3