Minor - Cleaning files

skala
Julio Montoya 15 years ago
parent 93a191420a
commit 1b1adb40e2
  1. 40
      main/admin/statistics.php
  2. 12
      main/admin/statistics/index.php

@ -1,46 +1,20 @@
<?php // $Id: statistics.php 10811 2007-01-22 08:26:40Z elixir_julian $ <?php // $Id: statistics.php 10811 2007-01-22 08:26:40Z elixir_julian $
/* /* For licensing terms, see /license.txt */
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL)
Copyright (c) Olivier Brouckaert
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
==============================================================================
*/
/** /**
============================================================================== * @package chamilo.admin
* @package dokeos.admin
==============================================================================
*/ */
/* /*
============================================================================== INIT SECTION
INIT SECTION
==============================================================================
*/ */
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file='admin'; $language_file='admin';
$cidReset=true; $cidReset=true;
include('../inc/global.inc.php'); require_once '../inc/global.inc.php';
$this_section=SECTION_PLATFORM_ADMIN; $this_section=SECTION_PLATFORM_ADMIN;
api_protect_admin_script(); api_protect_admin_script();
include_once(api_get_path(LIBRARY_PATH).'fileManage.lib.php'); require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php';
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin')); $interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('Statistics'); $tool_name = get_lang('Statistics');
@ -49,15 +23,11 @@ Display::display_header($tool_name);
//api_display_tool_title($tool_name); //api_display_tool_title($tool_name);
/* /*
==============================================================================
MAIN CODE MAIN CODE
==============================================================================
*/ */
/* /*
==============================================================================
FOOTER FOOTER
==============================================================================
*/ */
Display::display_footer(); Display::display_footer();
?> ?>

@ -8,7 +8,7 @@
$language_file = array('admin', 'tracking'); $language_file = array('admin', 'tracking');
$cidReset = true; $cidReset = true;
require '../../inc/global.inc.php'; require_once '../../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'sortabletable.class.php'; require_once api_get_path(LIBRARY_PATH).'sortabletable.class.php';
api_protect_admin_script(); api_protect_admin_script();
@ -26,10 +26,11 @@ if (!$_configuration['tracking_enabled']) {
require_once ('statistics.lib.php'); require_once ('statistics.lib.php');
$strCourse = get_lang('Courses'); $strCourse = get_lang('Courses');
$strUsers = get_lang('Users'); $strUsers = get_lang('Users');
$strSystem = get_lang('System'); $strSystem = get_lang('System');
$strSocial = get_lang('Social'); $strSocial = get_lang('Social');
$strSession = get_lang('Session');
// courses ... // courses ...
$tools[$strCourse]['action=courses'] = get_lang('CountCours'); $tools[$strCourse]['action=courses'] = get_lang('CountCours');
@ -53,6 +54,7 @@ $tools[$strSocial]['action=messagesent'] = get_lang('MessagesSent');
$tools[$strSocial]['action=messagereceived'] = get_lang('MessagesReceived'); $tools[$strSocial]['action=messagereceived'] = get_lang('MessagesReceived');
$tools[$strSocial]['action=friends'] = get_lang('CountFriends'); $tools[$strSocial]['action=friends'] = get_lang('CountFriends');
echo '<table><tr>'; echo '<table><tr>';
foreach ($tools as $section => $items) { foreach ($tools as $section => $items) {
echo '<td valign="top">'; echo '<td valign="top">';

Loading…
Cancel
Save