(legacy) remove isAjax

This commit is contained in:
Ad Schellevis 2015-11-22 19:00:34 +00:00
parent 33394bdc8a
commit 8cccf2e838

View File

@ -290,10 +290,6 @@ function display_error_form($http_code, $desc)
{
global $config, $g;
$g['theme'] = get_current_theme();
if (isAjax()) {
printf(gettext('Error: %s, Description: %s'), $http_code, $desc);
return;
}
?><!doctype html>
<!--[if IE 8 ]><html lang="en" class="ie ie8 lte9 lte8 no-js"><![endif]-->
@ -339,11 +335,6 @@ function display_login_form()
unset($input_errors);
if (isAjax()) {
exit;
}
/* Check against locally configured IP addresses, which will catch when someone
port forwards WebGUI access from WAN to an internal IP on the router. */
// fix, local ip check was previously done using "filter_generate_optcfg_array" which basically includes alomst everything here.