CApp::rip(); } // Login OK redirection for popup authentication $redirect = CValue::request("redirect"); $dialog = CValue::request("dialog"); parse_str($redirect, $parsed_redirect); if ($ok && $dialog && isset($parsed_redirect["login_info"])) { $redirect = "m=system&a=login_ok&dialog=1"; } // Actual refirection if ($redirect) { CAppUI::redirect($redirect); } // Empty post data only if we login by POST (with the login page) if (isset($_POST["login"])) { CApp::emptyPostData(); } } CMbPerformance::mark("auth"); // Default view $index = "index"; // Don't output anything. Usefull for fileviewers, ajax requests, exports, etc. $suppressHeaders = CValue::request("suppressHeaders"); // WSDL if often stated as final with no value (&wsdl) wrt client compat $wsdl = CValue::request("wsdl"); if (isset($wsdl)) { $suppressHeaders = 1; $index = $wsdl; $wsdl = 1; } // Info output for view reflexion purposes