Changeset 1271
- Timestamp:
- 07/25/07 13:16:59 (6 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 2 modified
-
CHANGELOG (modified) (1 diff)
-
wifidog/classes/Statistics.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/CHANGELOG
r1269 r1271 4 4 * StatisticGraph.php: Fix a bad return by reference that prevented graphs from being displayed. Thanks to Daniel Lemay for finding it. 5 5 * Content.php: Fix warning when selecting owners. Fix dangling metadata objects when deleting an object. 6 * Statistics::getDateRangeUI(): Make days end a minute before midnight, not a minute before noon, DOH! 6 7 7 8 2007-07-22 Benoit Grégoire <bock@step.polymtl.ca> -
trunk/wifidog-auth/wifidog/classes/Statistics.php
r1261 r1271 151 151 $from_presets = array ( 152 152 _("No restriction..." 153 ) => "", _("yesterday") => strftime("%Y-%m-%d 00:00", strtotime("-1 day")), _("today") => strftime("%Y-%m-%d 00:00", time()), _("2 days ago") => strftime("%Y-%m-%d 00:00", strtotime("-2 days")), _("3 days ago") => strftime("%Y-%m-%d 00:00", strtotime("-3 days")), _("1 week ago") => strftime("%Y-%m-%d 00:00", strtotime("-1 week")), _("2 weeks ago") => strftime("%Y-%m-%d 00:00", strtotime("-2 weeks")), _("3 weeks ago") => strftime("%Y-%m-%d 00:00", strtotime("-3 weeks")), _("1 month ago") => strftime("%Y-%m-%d 00:00", strtotime("-1 month")), _("2 months ago") => strftime("%Y-%m-%d 00:00", strtotime("-2 months")), _("6 months ago") => strftime("%Y-%m-%d 00:00", strtotime("-6 months")), _("1 year ago") => strftime("%Y-%m-%d 00:00", strtotime("-1 year")), _("-") => "", _("Select from and to...") => "", _("yesterday (whole day)") => strftime("%Y-%m-%d 00:00", strtotime("-1 day")) . "," . strftime("%Y-%m-%d 11:59", strtotime("-1 day")), _("today (whole day)") => strftime("%Y-%m-%d 00:00", time()) . "," . strftime("%Y-%m-%d %H:%M", time()), _("this month") => strftime("%Y-%m-01 00:00", time()) . "," . strftime("%Y-%m-%d %H:%M", time()), _("last month") => strftime("%Y-%m-01 00:00", strtotime("-1 month")) . "," . strftime("%Y-%m-01 00:00", time()), _("this year") => strftime("%Y-01-01 00:00", time()) . "," . strftime("%Y-%m-%d %H:%M", time()), _("forever") => "1970-01-01 00:00," . strftime("%Y-%m-%d %H:%M", time()));153 ) => "", _("yesterday") => strftime("%Y-%m-%d 00:00", strtotime("-1 day")), _("today") => strftime("%Y-%m-%d 00:00", time()), _("2 days ago") => strftime("%Y-%m-%d 00:00", strtotime("-2 days")), _("3 days ago") => strftime("%Y-%m-%d 00:00", strtotime("-3 days")), _("1 week ago") => strftime("%Y-%m-%d 00:00", strtotime("-1 week")), _("2 weeks ago") => strftime("%Y-%m-%d 00:00", strtotime("-2 weeks")), _("3 weeks ago") => strftime("%Y-%m-%d 00:00", strtotime("-3 weeks")), _("1 month ago") => strftime("%Y-%m-%d 00:00", strtotime("-1 month")), _("2 months ago") => strftime("%Y-%m-%d 00:00", strtotime("-2 months")), _("6 months ago") => strftime("%Y-%m-%d 00:00", strtotime("-6 months")), _("1 year ago") => strftime("%Y-%m-%d 00:00", strtotime("-1 year")), _("-") => "", _("Select from and to...") => "", _("yesterday (whole day)") => strftime("%Y-%m-%d 00:00", strtotime("-1 day")) . "," . strftime("%Y-%m-%d 23:59", strtotime("-1 day")), _("today (whole day)") => strftime("%Y-%m-%d 00:00", time()) . "," . strftime("%Y-%m-%d %H:%M", time()), _("this month") => strftime("%Y-%m-01 00:00", time()) . "," . strftime("%Y-%m-%d %H:%M", time()), _("last month") => strftime("%Y-%m-01 00:00", strtotime("-1 month")) . "," . strftime("%Y-%m-01 00:00", time()), _("this year") => strftime("%Y-01-01 00:00", time()) . "," . strftime("%Y-%m-%d %H:%M", time()), _("forever") => "1970-01-01 00:00," . strftime("%Y-%m-%d %H:%M", time())); 154 154 155 155 $to_presets = array ( 156 156 _("No restriction..." 157 ) => "", _("yesterday") => strftime("%Y-%m-%d 11:59", strtotime("-1 day")), _("today") => strftime("%Y-%m-%d 11:59", time()), _("2 days ago") => strftime("%Y-%m-%d 11:59", strtotime("-2 days")), _("3 days ago") => strftime("%Y-%m-%d 11:59", strtotime("-3 days")), _("1 week ago") => strftime("%Y-%m-%d 11:59", strtotime("-1 week")), _("2 weeks ago") => strftime("%Y-%m-%d 11:59", strtotime("-2 weeks")), _("3 weeks ago") => strftime("%Y-%m-%d 11:59", strtotime("-3 weeks")), _("1 month ago") => strftime("%Y-%m-%d 11:59", strtotime("-1 month")), _("2 months ago") => strftime("%Y-%m-%d 11:59", strtotime("-2 months")), _("6 months ago") => strftime("%Y-%m-%d 11:59", strtotime("-6 months")), _("1 year ago") => strftime("%Y-%m-%d 11:59", strtotime("-1 year")), _("-") => "", _("Select from and to...") => "", _("yesterday (whole day)") => strftime("%Y-%m-%d 11:59", strtotime("-1 day")) . "," . strftime("%Y-%m-%d 00:00", strtotime("-1 day")), _("today (whole day)") => strftime("%Y-%m-%d %H:%M", time()) . "," . strftime("%Y-%m-%d 00:00", time()), _("this month") => strftime("%Y-%m-%d %H:%M", time()) . "," . strftime("%Y-%m-01 00:00", time()), _("last month") => strftime("%Y-%m-01 00:00", time()) . "," . strftime("%Y-%m-01 00:00", strtotime("-1 month")), _("this year") => strftime("%Y-%m-%d %H:%M", time()) . "," . strftime("%Y-01-01 00:00", time()), _("forever") => strftime("%Y-%m-%d %H:%M", time()) . ",1970-01-01 00:00");157 ) => "", _("yesterday") => strftime("%Y-%m-%d 23:59", strtotime("-1 day")), _("today") => strftime("%Y-%m-%d 23:59", time()), _("2 days ago") => strftime("%Y-%m-%d 23:59", strtotime("-2 days")), _("3 days ago") => strftime("%Y-%m-%d 23:59", strtotime("-3 days")), _("1 week ago") => strftime("%Y-%m-%d 23:59", strtotime("-1 week")), _("2 weeks ago") => strftime("%Y-%m-%d 23:59", strtotime("-2 weeks")), _("3 weeks ago") => strftime("%Y-%m-%d 23:59", strtotime("-3 weeks")), _("1 month ago") => strftime("%Y-%m-%d 23:59", strtotime("-1 month")), _("2 months ago") => strftime("%Y-%m-%d 23:59", strtotime("-2 months")), _("6 months ago") => strftime("%Y-%m-%d 23:59", strtotime("-6 months")), _("1 year ago") => strftime("%Y-%m-%d 23:59", strtotime("-1 year")), _("-") => "", _("Select from and to...") => "", _("yesterday (whole day)") => strftime("%Y-%m-%d 23:59", strtotime("-1 day")) . "," . strftime("%Y-%m-%d 00:00", strtotime("-1 day")), _("today (whole day)") => strftime("%Y-%m-%d %H:%M", time()) . "," . strftime("%Y-%m-%d 00:00", time()), _("this month") => strftime("%Y-%m-%d %H:%M", time()) . "," . strftime("%Y-%m-01 00:00", time()), _("last month") => strftime("%Y-%m-01 00:00", time()) . "," . strftime("%Y-%m-01 00:00", strtotime("-1 month")), _("this year") => strftime("%Y-%m-%d %H:%M", time()) . "," . strftime("%Y-01-01 00:00", time()), _("forever") => strftime("%Y-%m-%d %H:%M", time()) . ",1970-01-01 00:00"); 158 158 159 159 $html .= "<table class='admin_element_list'>";
