From 2665a743672f5444767f82a1aafd7b25dbecd8c2 Mon Sep 17 00:00:00 2001 From: kkalev Date: Fri, 12 Sep 2003 13:38:46 +0000 Subject: [PATCH] Consider the account locked either if Dialup-Access == FALSE or if it is not set at all --- Changelog | 1 + htdocs/user_admin.php3 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 00d41e3..f5f4407 100644 --- a/Changelog +++ b/Changelog @@ -40,6 +40,7 @@ Ver 1.63: * Change AcctStopTime = '0' with AcctStopTime IS NULL * Add a few more attribute help pages from Ulrich Walcher * Also check for $server != '' in stats.php3. Bug noted by Ulrich Walcher +* Consider the account locked either if Dialup-Access == FALSE or if it is not set at all Ver 1.62: * Remove one sql query from user_admin which was not needed. * Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime diff --git a/htdocs/user_admin.php3 b/htdocs/user_admin.php3 index 732a4ac..e9a44c1 100644 --- a/htdocs/user_admin.php3 +++ b/htdocs/user_admin.php3 @@ -243,7 +243,7 @@ $daily_limit = (is_numeric($daily_limit)) ? time2str($daily_limit) : $daily_limi $session_limit = (is_numeric($session_limit)) ? time2str($session_limit) : $session_limit; $remaining = (is_numeric($remaining)) ? time2str($remaining) : $remaining; -if ($item_vals['Dialup-Access'][0] == 'FALSE') +if ($item_vals['Dialup-Access'][0] == 'FALSE' || (!isset($item_vals['Dialup-Access'][0]) && $attrmap['Dialup-Access'] != '')) $msg =<< The user account is locked EON; -- 2.39.5