i18n->fields ) ) { $filters[$key] = urlencode( $_GET[$key] ); } } if ( isset( $_GET["new_filter_field"] ) && array_key_exists( $_GET["new_filter_field"], $config->i18n->fields ) && isset( $_GET["new_filter_value"] ) ) { $filters["filter_".$_GET["new_filter_field"]] = urlencode( $_GET["new_filter_value"] ); } ksort( $filters ); $today_dt_start = SlimStat::to_user_time( time() ); $today_dt_start = SlimStat::to_server_time( mktime( 0, 0, 0, date( "n", $today_dt_start ), date( "d", $today_dt_start ), date( "Y", $today_dt_start ) ) ); $today_dt_end = SlimStat::to_user_time( time() ); $today_dt_end = SlimStat::to_server_time( mktime( 23, 59, 59, date( "n", $today_dt_end ), date( "d", $today_dt_end ), date( "Y", $today_dt_end ) ) ); $thisweek_dt_start = SlimStat::to_user_time( $today_dt_start ); while ( date( "w", $thisweek_dt_start ) != $config->week_start_day ) { // move back to start of week $thisweek_dt_start = mktime( 0, 0, 0, date( "n", $thisweek_dt_start ), date( "d", $thisweek_dt_start ) - 1, date( "Y", $thisweek_dt_start ) ); } $thisweek_dt_end = SlimStat::to_server_time( mktime( 23, 59, 59, date( "n", $thisweek_dt_start ), date( "d", $thisweek_dt_start ) + 6, date( "Y", $thisweek_dt_start ) ) ); $thisweek_dt_start = SlimStat::to_server_time( $thisweek_dt_start ); $thismonth_dt_start = SlimStat::to_server_time( mktime( 0, 0, 0, date( "n", SlimStat::to_user_time( time() ) ), 1, date( "Y", SlimStat::to_user_time( time() ) ) ) ); $thismonth_dt_end = SlimStat::to_server_time( mktime( 23, 59, 59, date( "n", SlimStat::to_user_time( time() ) ) + 1, 0, date( "Y", SlimStat::to_user_time( time() ) ) ) ); if ( isset( $filters["filter_dt_start"] ) && isset( $filters["filter_dt_end"] ) ) { $dt_start = min( intval( $filters["filter_dt_start"] ), intval( $filters["filter_dt_end"] ) ); $dt_end = max( intval( $filters["filter_dt_start"] ), intval( $filters["filter_dt_end"] ) ); if ( $dt_start > 0 && $dt_end > 0 ) { $filters["filter_dt_start"] = $dt_start; $filters["filter_dt_end"] = $dt_end; if ( !isset( $_GET["show"] ) && sizeof( $filters ) == 2 ) { if ( $dt_start == $today_dt_start && $dt_end == $today_dt_end ) { $_GET["show"] = "today"; } elseif ( $dt_start == $thisweek_dt_start && $dt_end == $thisweek_dt_end ) { $_GET["show"] = "thisweek"; } elseif ( $dt_start == $thismonth_dt_start && $dt_end == $thismonth_dt_end ) { $_GET["show"] = "thismonth"; } } } else { unset( $filters["filter_dt_start"] ); unset( $filters["filter_dt_end"] ); } } elseif ( isset( $_GET["show"] ) && $_GET["show"] == "today" ) { $filters["filter_dt_start"] = $today_dt_start; $filters["filter_dt_end"] = $today_dt_end; } elseif ( isset( $_GET["show"] ) && $_GET["show"] == "thisweek" ) { $filters["filter_dt_start"] = $thisweek_dt_start; $filters["filter_dt_end"] = $thisweek_dt_end; } elseif ( isset( $_GET["show"] ) && $_GET["show"] == "thismonth" ) { $filters["filter_dt_start"] = $thismonth_dt_start; $filters["filter_dt_end"] = $thismonth_dt_end; } if ( isset( $filters["filter_dt_start"] ) && isset( $filters["filter_dt_end"] ) ) { $days_spanned = ceil( ( $filters["filter_dt_end"] - $filters["filter_dt_start"] ) / $config->day ); $hours_spanned = ceil( ( $filters["filter_dt_end"] - $filters["filter_dt_start"] ) / $config->hour ); } ?> <?php print $config->i18n->app_title; ?>

i18n->app_title; ?>

/*
Today there were hits and uniques.
*/
SlimStat vversion; ?> © 2006 Stephen Wettone. Based on ShortStat by Shaun Inman. CSS was modified by Andrei Korchagin.
This application uses the IP-to-Country Database provided by webhosting.info