Show correct calculation of the montlhy usage time.
authorkkalev <kkalev>
Mon, 6 Oct 2003 09:30:17 +0000 (09:30 +0000)
committerkkalev <kkalev>
Mon, 6 Oct 2003 09:30:17 +0000 (09:30 +0000)
dialup_admin/Changelog
dialup_admin/htdocs/user_admin.php3

index beacd14..55b58a8 100644 (file)
@@ -48,6 +48,7 @@ Ver 1.63:
   it in user_admin if monthly_limit != 'none' or if this directive is set.
   Based on a report by "apellido jr., wilfredo p"
 * Add more comments in the admin.conf file
+* Show correct calculation of the montlhy usage time.
 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
index e2eb392..1217aa2 100644 (file)
@@ -196,7 +196,7 @@ if ($link){
                        $remaining = $tmp;
                $log_color = ($remaining) ? 'green' : 'red';
        }
-       if ($config[counter_monthly_calculate_usage] == 'true'){
+       if ($monthly_limit != 'none' || $config[counter_monthly_calculate_usage] == 'true'){
                $monthly_used = time2str($monthly_used);
                if ($monthly_limit != 'none' && !$tmp)
                        $monthly_used = "<font color=red>$monthly_used</font>";