diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-02-26 10:12:56 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-02-26 10:12:56 -0300 |
commit | ae52d165da3aa89188b3806643cf3d5b4b207bd7 (patch) | |
tree | 1bd00d76e4bf492756a6c1ef87c00436ca75ec5a /etc/inc/auth.inc | |
parent | ae3b187af6527179034e5ecfa342a833559041cc (diff) | |
download | pfsense-ae52d165da3aa89188b3806643cf3d5b4b207bd7.zip pfsense-ae52d165da3aa89188b3806643cf3d5b4b207bd7.tar.gz |
Fix indent and remove some unecessary ()
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index a19a20c..2cb2ff1 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -73,11 +73,11 @@ if (function_exists("display_error_form") && !isset($config['system']['webgui'][ $http_host = $http_host[0]; } if (is_ipaddr($http_host) or $_SERVER['SERVER_ADDR'] == "127.0.0.1" or - strcasecmp($http_host, "localhost") == 0 or $_SERVER['SERVER_ADDR'] == "::1") { + strcasecmp($http_host, "localhost") == 0 or $_SERVER['SERVER_ADDR'] == "::1") { $found_host = true; } if (strcasecmp($http_host, $config['system']['hostname'] . "." . $config['system']['domain']) == 0 or - strcasecmp($http_host, $config['system']['hostname']) == 0) { + strcasecmp($http_host, $config['system']['hostname']) == 0) { $found_host = true; } @@ -134,8 +134,8 @@ if (function_exists("display_error_form") && !isset($config['system']['webgui'][ $referrer_host = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST); $referrer_host = str_replace(array("[", "]"), "", $referrer_host); if ($referrer_host) { - if (strcasecmp($referrer_host, $config['system']['hostname'] . "." . $config['system']['domain']) == 0 - || strcasecmp($referrer_host, $config['system']['hostname']) == 0) { + if (strcasecmp($referrer_host, $config['system']['hostname'] . "." . $config['system']['domain']) == 0 || + strcasecmp($referrer_host, $config['system']['hostname']) == 0) { $found_host = true; } @@ -1492,7 +1492,7 @@ function session_auth() { if (isset($_POST['login']) && !empty($_POST['usernamefld']) && !empty($_POST['passwordfld'])) { $authcfg = auth_get_authserver($config['system']['webgui']['authmode']); if (authenticate_user($_POST['usernamefld'], $_POST['passwordfld'], $authcfg) || - authenticate_user($_POST['usernamefld'], $_POST['passwordfld'])) { + authenticate_user($_POST['usernamefld'], $_POST['passwordfld'])) { // Generate a new id to avoid session fixation session_regenerate_id(); $_SESSION['Logged_In'] = "True"; |