Patch for Statistics page

Matt Vollmar matt at vollmars.com
Thu Oct 13 20:47:15 CEST 2005


I was having problems with the statistics page only displaying the from 
date and the to date, rather than all of the dates in between.  Come to 
find out, the reason is that the wrong "date config" variable is used in 
stats.php3.  You basically just change sql_date_format to 
sql_full_date_format.  Here is what to change:

Lines 35 and 36 should be:
        $before = date($config[sql_full_date_format], $now + 86400);
$after = ($after != '') ? "$after" : date($config[sql_full_date_format], 
$now - 604800 );


If you don't want to change the code, change the variable 
"sql_date_format" to look like "sql_full_date_format" in the admin.conf.

Hope this helps someone.

Matt



More information about the Freeradius-Users mailing list