$config, 'mod' => false, 'hide_dashboard_link' => true, 'title' => _("Statistics") . ($board?" for /" . $board . "/":""), 'subtitle' => _("Last Updated : ") . gmstrftime($config['public_stats']['date']), 'nojavascript' => true, 'boardlist' => createBoardlist(false), 'body' => Element('mod/statistics.html', array( 'root' => $config['root'], 'mod' => false, 'boards' => $boards, 'stat_filename' => $stat_file, 'public_hourly' => $config['public_stats']['hourly'], 'statistics_table' => Statistics::getPostStatistics($boards), 'statistics_24h' => $statistics_hour, 'statistics_week_labels' => Statistics::get_stat_week_labels($this_week), 'statistics_week' => Statistics::get_stat_week_jsdata($this_week), 'statistics_week_past' => Statistics::get_stat_week_jsdata($prev_week) )) )); } function in_array_r($needle, $haystack, $strict = false) { foreach ($haystack as $item) { if (($strict ? $item === $needle : $item == $needle) || (is_array($item) && in_array_r($needle, $item, $strict))) { return true; } } return false; } ?>