summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-08 01:42:55 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-08 01:42:55 +0000
commit6944790a8fc6213019fdab1a1d837a2a13c97d57 (patch)
treec847ff50500441a54f1e733b18499907aff3ae2a /etc/inc/auth.inc
parent64eae27903f3c45de99d26e2073fe9e03dab91e5 (diff)
downloadpfsense-6944790a8fc6213019fdab1a1d837a2a13c97d57.zip
pfsense-6944790a8fc6213019fdab1a1d837a2a13c97d57.tar.gz
* Minior tab alignments
* We're in 2006, toto
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 0306a53..a13faaf 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1,7 +1,7 @@
<?php
/* $Id$ */
/*
- Copyright (C) 2005 Bill Marquette <bill.marquette@gmail.com>
+ Copyright (C) 2005-2006 Bill Marquette <bill.marquette@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -61,7 +61,7 @@ function passwd_backed_basic_auth() {
/* Check to see if user even exists */
$username = $HTTP_SERVER_VARS['AUTH_USER'];
- if(!($line = array_shift(preg_grep("/^$username:.*$/", $authfile))))
+ if(!($line = array_shift(preg_grep("/^$username:.*$/", $authfile))))
continue;
/* Get crypted password */
@@ -89,13 +89,14 @@ function htpasswd_backed_basic_auth() {
$authfile = file("/var/run/htpasswd");
- /* sanity check to ensure that /usr/local/www/.htpasswd doesn't exist */
- unlink_if_exists("/usr/local/www/.htpasswd");
+ /* sanity check to ensure that /usr/local/www/.htpasswd doesn't exist */
+ unlink_if_exists("/usr/local/www/.htpasswd");
/* Prompt three times and give up */
for($attempt = 0; $attempt <= 3; basic_auth_prompt()){
$attempt++;
- /* Check for AUTH_USER */
+
+ /* Check for AUTH_USER */
if ($HTTP_SERVER_VARS['PHP_AUTH_USER'] <> "") {
$HTTP_SERVER_VARS['AUTH_USER'] = $HTTP_SERVER_VARS['PHP_AUTH_USER'];
$HTTP_SERVER_VARS['AUTH_PW'] = $HTTP_SERVER_VARS['PHP_AUTH_PW'];
OpenPOWER on IntegriCloud