diff --git a/main/admin/statistics/index.php b/main/admin/statistics/index.php index 01c0637c44..90482c9a6a 100755 --- a/main/admin/statistics/index.php +++ b/main/admin/statistics/index.php @@ -1,29 +1,8 @@ - - For a full list of contributors, see "credits.txt". - The full license can be read in "license.txt". - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - See the GNU General Public License for more details. - - Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com -============================================================================== -*/ +/* For licensing terms, see /license.txt */ /** -============================================================================== -* This tool allows the use statistics -* @package dokeos.statistics -============================================================================== +* This tool show global statistics on general platform events +* @package chamilo.statistics */ // Language files that need to be included $language_file = array('admin', 'tracking'); @@ -39,8 +18,7 @@ $tool_name = get_lang('Statistics'); Display::display_header($tool_name); api_display_tool_title($tool_name); -if(!$_configuration['tracking_enabled']) -{ +if (!$_configuration['tracking_enabled']) { Display::display_warning_message(get_lang('TrackingDisabled')); Display::display_footer(); exit; @@ -76,27 +54,23 @@ $tools[$strSocial]['action=messagereceived'] = get_lang('MessagesReceived'); $tools[$strSocial]['action=friends'] = get_lang('CountFriends'); echo '
';
- echo ''.$section.'';
- echo '
| ';
+foreach ($tools as $section => $items) {
+ echo '';
+ echo ''.$section.'';
+ echo '
| ';
}
echo '