2008-08-12 Esteban Sanchez <estebans@artica.es>

* godmode/db/db_purge.php: Use print_help_tip() to show help tip.

        * godmode/profiles/profile_list.php: Use print_help_tip(). Removed
        deprecated $help_label.

        * godmode/users/configure_user.php: Better code to show user level
        radio buttons and help.

        * include/functions_db.php: Removed deprecated function
        load_lang_file().

        * operation/agentes/datos_agente.php, ajax.php,
        operation/reporting/reporting_viewer_pdf.php, reporting/stat_win.php,
        operation/agentes/exportdata.php: Removed inclusion of old
        language files.

        * include/languages/index.pot: Regenerated and added header.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1009 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Esteban Sanchez 2008-08-12 14:41:53 +00:00
parent 8ccc09bad8
commit 6d7ce4d60c
11 changed files with 122 additions and 125 deletions

View File

@ -1,3 +1,23 @@
2008-08-12 Esteban Sanchez <estebans@artica.es>
* godmode/db/db_purge.php: Use print_help_tip() to show help tip.
* godmode/profiles/profile_list.php: Use print_help_tip(). Removed
deprecated $help_label.
* godmode/users/configure_user.php: Better code to show user level
radio buttons and help.
* include/functions_db.php: Removed deprecated function
load_lang_file().
* operation/agentes/datos_agente.php, ajax.php,
operation/reporting/reporting_viewer_pdf.php, reporting/stat_win.php,
operation/agentes/exportdata.php: Removed inclusion of old
language files.
* include/languages/index.pot: Regenerated and added header.
2008-08-12 Evi Vanoost <vanooste@rcbi.rochester.edu> 2008-08-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operation/menu.php: Made short tag, normal tag * operation/menu.php: Made short tag, normal tag

View File

@ -20,20 +20,11 @@
// Silk icon set 1.3 (cc) Mark James, http://www.famfamfam.com/lab/icons/silk/ // Silk icon set 1.3 (cc) Mark James, http://www.famfamfam.com/lab/icons/silk/
// Pandora FMS uses Pear Image::Graph code // Pandora FMS uses Pear Image::Graph code
if ((! file_exists("include/config.php")) || (! is_readable("include/config.php"))) { if ((! file_exists("include/config.php")) || (! is_readable("include/config.php"))) {
exit; exit;
} }
require_once ('include/config.php'); require_once ('include/config.php');
// Check for correct language file presence
if (file_exists ('include/languages/language_'.$config['language'].'.php')) {
include 'include/languages/language_'.$config['language'].'.php';
} else {
include "include/languages/language_en.php";
}
require_once ('include/functions.php'); require_once ('include/functions.php');
require_once ('include/functions_db.php'); require_once ('include/functions_db.php');

View File

@ -119,9 +119,10 @@ while ($row=mysql_fetch_array($result_t)){
} }
?> ?>
</select> </select>
<a href="#" class="tip">&nbsp;<span><?php echo $help_label["db_purge0"] ?></span></a>
<?php print_help_tip (__("This button refresh info about database usage among time")); ?>
<td><input class='sub upd' type='submit' name='purgedb_ag' value='<?php echo __('Get data') ?>'> <td><input class='sub upd' type='submit' name='purgedb_ag' value='<?php echo __('Get data') ?>'>
<a href="#" class="tip">&nbsp;<span><?php echo $help_label["db_purge1"] ?></span></a> <?php print_help_tip (__("Use this combo to select agent for operation. You need to select an agent to purge data and to get info about database usage")); ?>
</table><br> </table><br>
<?php <?php

View File

@ -206,47 +206,48 @@ if (isset ($id_perfil)){ // There are values defined, let's show form with data
} else { // View list data } else { // View list data
$color = 1; $color = 1;
?> echo "<table cellpadding='4' cellspacing='4' class='databox' width='750px'>";
<table cellpadding='4' cellspacing='4' class='databox' width='750px'>
<?php $sql = "SELECT * FROM tperfil";
$query_del1="SELECT * FROM tperfil"; $result = mysql_query ($sql);
$resq1=mysql_query($query_del1);
echo "<tr>"; echo "<tr>";
echo "<th width='180px'><font size=1>".__('Profiles'); echo "<th width='180px'><font size=1>".__('Profiles');
echo "</th><th width='40px'> echo "</th><th width='40px'>IR";
<font size=1>IR<a href='#' class='tipp'>&nbsp;<span>".__("System Incidents Reading rights")."</span></a>"; print_help_tip (__('System incidents reading'));
echo "</th><th width='40px'> echo "</th><th width='40px'>IW";
<font size=1>IW<a href='#' class='tipp'>&nbsp;<span>".__("System Incidents Writing rights")."</span></a>"; print_help_tip (__('System incidents writing'));
echo "</th><th width='40px'> echo "</th><th width='40px'>IM";
<font size=1>IM<a href='#' class='tipp'>&nbsp;<span>".__("System Incidents Management rights")."</span></a>"; print_help_tip (__('System incidents management'));
echo "</th><th width='40px'> echo "</th><th width='40px'>AR";
<font size=1>AR<a href='#' class='tipp'>&nbsp;<span>".__("Agents Reading rights")."</span></a>"; print_help_tip (__('Agents reading'));
echo "</th><th width='40px'> echo "</th><th width='40px'>AW";
<font size=1>AW<a href='#' class='tipp'>&nbsp;<span>".__("Agents Writing rights")."</span></a>"; print_help_tip (__('Agents management'));
echo "</th><th width='40px'> echo "</th><th width='40px'>LW";
<font size=1>LW<a href='#' class='tipp'>&nbsp;<span>".__("Alerts Edition rights")."</span></a>"; print_help_tip (__('Alerts edition'));
echo "</th><th width='40px'> echo "</th><th width='40px'>UM";
<font size=1>UM<a href='#' class='tipp'>&nbsp;<span>".__("Users Management rights")."</span></a>"; print_help_tip (__('Users management'));
echo "</th><th width='40px'> echo "</th><th width='40px'>DM";
<font size=1>DM<a href='#' class='tipp'>&nbsp;<span>".__("Database Management rights")."</span></a>"; print_help_tip (__('Database management'));
echo "</th><th width='40px'> echo "</th><th width='40px'>LM";
<font size=1>LM<a href='#' class='tipp'>&nbsp;<span>".__("Alerts Management rights")."</span></a>"; print_help_tip (__('Alerts anagement'));
echo "</th><th width='40px'> echo "</th><th width='40px'>PM";
<font size=1>PM<a href='#' class='tipp'>&nbsp;<span>".__("Pandora System Management rights")."</span></a>"; print_help_tip (__('Pandora system management'));
echo "</th><th width='40px'>".__('Delete')."</th></tr>"; echo "</th><th width='40px'>".__('Delete')."</th></tr>";
while ($rowdup=mysql_fetch_array($resq1)){
$id_perfil = $rowdup["id_perfil"]; while (profile = mysql_fetch_array ($result)) {
$nombre=$rowdup["name"]; $id_perfil = profile["id_perfil"];
$incident_view = $rowdup["incident_view"]; $nombre=profile["name"];
$incident_edit = $rowdup["incident_edit"]; $incident_view = profile["incident_view"];
$incident_management = $rowdup["incident_management"]; $incident_edit = profile["incident_edit"];
$agent_view = $rowdup["agent_view"]; $incident_management = profile["incident_management"];
$agent_edit =$rowdup["agent_edit"]; $agent_view = profile["agent_view"];
$alert_edit = $rowdup["alert_edit"]; $agent_edit =profile["agent_edit"];
$user_management = $rowdup["user_management"]; $alert_edit = profile["alert_edit"];
$db_management = $rowdup["db_management"]; $user_management = profile["user_management"];
$alert_management = $rowdup["alert_management"]; $db_management = profile["db_management"];
$pandora_management = $rowdup["pandora_management"]; $alert_management = profile["alert_management"];
$pandora_management = profile["pandora_management"];
if ($color == 1) { if ($color == 1) {
$tdcolor = "datos"; $tdcolor = "datos";
$color = 0; $color = 0;

View File

@ -197,14 +197,14 @@ echo '<tr><td class="datos">E-Mail</td>';
<td class="datos"> <td class="datos">
<?php <?php
if ($nivel == "1") { echo __('Administrator');
echo __('Administrator').'<input type="radio" class="chk" name="nivel" value="1" checked><a href="#" class="tip">&nbsp;<span>'.$help_label["users_msg1"].'</span></a>&nbsp;'; print_radio_button ('nivel', '1', '', $nivel);
echo __('Standard user').'<input type="radio" class="chk" name="nivel" value="0"><a href="#" class="tip">&nbsp;<span>'.$help_label["users_msg2"].'</span></a>'; print_help_tip (__("This user has permissions to manage all. This is admin user and overwrites all permissions given in profiles/groups"));
} else { print __('Standard user');
echo __('Administrator').'<input type="radio" class="chk" name="nivel" value="1"><a href="#" class="tip">&nbsp;<span>'.$help_label["users_msg1"].'</span></a>&nbsp;'; print_radio_button ('nivel', '0', '', $nivel);
echo __('Standard user').'<input type="radio" class="chk" name="nivel" value="0" checked><a href="#" class="tip">&nbsp;<span>'.$help_label["users_msg2"].'</span></a>'; print_help_tip (__("This user has separated permissions to view data in his group agents, create incidents belong to his groups, add notes in another incidents, create personal assignments or reviews and other tasks, on different profiles"));
}
?> ?>
<tr><td class="datos2" colspan="2"><?php echo __('Comments') ?></td> <tr><td class="datos2" colspan="2"><?php echo __('Comments') ?></td>
<tr><td class="datos" colspan="2"> <tr><td class="datos" colspan="2">
<textarea name="comentarios" cols="60" rows="4"><?php echo $comentarios ?></textarea> <textarea name="comentarios" cols="60" rows="4"><?php echo $comentarios ?></textarea>

View File

@ -1716,21 +1716,6 @@ function get_agent_module_value_sumatory ($id_agent_module, $period, $date = 0)
return (float) $sum; return (float) $sum;
} }
/**
* Loads a language file.
*
* Check existance of file.
*
* @param file Filename of language definitions to load.
*/
function load_lang_file ($file) {
global $config;
if (file_exists ($file))
require_once ($config["homedir"]."/include/languages/language_".$config["language"].".php");
}
/** /**
* Get a translated string (alias version of lang_string(). * Get a translated string (alias version of lang_string().
* *

View File

@ -1,17 +1,23 @@
# SOME DESCRIPTIVE TITLE. # Pandora Flexible Monitor System
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) 2005-2008 Artica Soluciones Tecnologicas S.L, info@artica.es
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # Sancho Lerena, slerena@artica.es, 2005
# Raul Mateos, raulofpandora@gmail.com, 2005
# Esteban Sanchez, estebans@artica.es, 2006
# Jorge Gonzalez, jorge.gonzalez@artica.es, 2008
# Ramon Novoa, ramon.novoa@artica.es, 2008
# Evi Vanoost, vanooste@rcbi.rochester.edu, 2008
# #
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: Pandora FMS 2.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-08-12 13:52+0200\n" "POT-Creation-Date: 2008-08-12 15:43+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: en <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
@ -91,7 +97,7 @@ msgid "Critical"
msgstr "" msgstr ""
#: ../../reporting/fgraph.php:1342 ../../operation/events/events.php:412 #: ../../reporting/fgraph.php:1342 ../../operation/events/events.php:412
#: ../../include/functions.php:1119 ../../include/functions_db.php:1996 #: ../../include/functions.php:1119 ../../include/functions_db.php:1981
msgid "System" msgid "System"
msgstr "" msgstr ""
@ -311,7 +317,7 @@ msgstr ""
#: ../../operation/agentes/estado_alertas.php:57 #: ../../operation/agentes/estado_alertas.php:57
#: ../../operation/servers/view_server.php:53 #: ../../operation/servers/view_server.php:53
#: ../../include/functions_reporting_pdf.php:329 #: ../../include/functions_reporting_pdf.php:329
#: ../../include/functions_db.php:1790 #: ../../include/functions_db.php:1775
msgid "Name" msgid "Name"
msgstr "" msgstr ""
@ -478,7 +484,7 @@ msgstr ""
#: ../../operation/agentes/estado_alertas.php:288 #: ../../operation/agentes/estado_alertas.php:288
#: ../../operation/servers/view_server.php:59 #: ../../operation/servers/view_server.php:59
#: ../../include/functions_reporting.php:485 #: ../../include/functions_reporting.php:485
#: ../../include/functions_db.php:1906 #: ../../include/functions_db.php:1891
msgid "Type" msgid "Type"
msgstr "" msgstr ""
@ -1140,7 +1146,7 @@ msgstr ""
#: ../../godmode/servers/manage_recontask_form.php:160 #: ../../godmode/servers/manage_recontask_form.php:160
#: ../../godmode/servers/manage_recontask_form.php:163 #: ../../godmode/servers/manage_recontask_form.php:163
#: ../../include/functions.php:800 ../../include/functions.php:889 #: ../../include/functions.php:800 ../../include/functions.php:889
#: ../../include/functions_db.php:1862 #: ../../include/functions_db.php:1847
msgid "No" msgid "No"
msgstr "" msgstr ""
@ -1149,7 +1155,7 @@ msgstr ""
#: ../../godmode/servers/manage_recontask_form.php:159 #: ../../godmode/servers/manage_recontask_form.php:159
#: ../../godmode/servers/manage_recontask_form.php:164 #: ../../godmode/servers/manage_recontask_form.php:164
#: ../../include/functions.php:798 ../../include/functions.php:887 #: ../../include/functions.php:798 ../../include/functions.php:887
#: ../../include/functions_db.php:1860 #: ../../include/functions_db.php:1845
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
@ -1388,7 +1394,7 @@ msgstr ""
#: ../../operation/events/events.php:306 #: ../../operation/events/events.php:306
#: ../../operation/snmpconsole/snmp_view.php:202 #: ../../operation/snmpconsole/snmp_view.php:202
#: ../../include/functions_reporting.php:241 #: ../../include/functions_reporting.php:241
#: ../../include/functions_db.php:1909 #: ../../include/functions_db.php:1894
msgid "User ID" msgid "User ID"
msgstr "" msgstr ""
@ -1466,7 +1472,7 @@ msgstr ""
#: ../../godmode/agentes/modificar_agente.php:195 #: ../../godmode/agentes/modificar_agente.php:195
#: ../../operation/events/events.php:303 #: ../../operation/events/events.php:303
#: ../../operation/agentes/estado_generalagente.php:61 #: ../../operation/agentes/estado_generalagente.php:61
#: ../../include/functions_db.php:1908 #: ../../include/functions_db.php:1893
msgid "Agent name" msgid "Agent name"
msgstr "" msgstr ""
@ -1898,8 +1904,8 @@ msgstr ""
#: ../../godmode/setup/news.php:99 ../../include/functions.php:783 #: ../../godmode/setup/news.php:99 ../../include/functions.php:783
#: ../../include/functions.php:807 ../../include/functions.php:896 #: ../../include/functions.php:807 ../../include/functions.php:896
#: ../../include/functions.php:940 ../../include/functions_db.php:1846 #: ../../include/functions.php:940 ../../include/functions_db.php:1831
#: ../../include/functions_db.php:1868 #: ../../include/functions_db.php:1853
msgid "Text" msgid "Text"
msgstr "" msgstr ""
@ -1915,7 +1921,7 @@ msgstr ""
#: ../../operation/agentes/estado_ultimopaquete.php:56 #: ../../operation/agentes/estado_ultimopaquete.php:56
#: ../../operation/snmpconsole/snmp_view.php:203 #: ../../operation/snmpconsole/snmp_view.php:203
#: ../../include/functions_reporting.php:242 #: ../../include/functions_reporting.php:242
#: ../../include/functions_db.php:1910 #: ../../include/functions_db.php:1895
#: ../../extensions/update_manager/main.php:56 #: ../../extensions/update_manager/main.php:56
msgid "Timestamp" msgid "Timestamp"
msgstr "" msgstr ""
@ -2250,7 +2256,7 @@ msgstr ""
#: ../../include/functions_reporting.php:562 #: ../../include/functions_reporting.php:562
#: ../../include/functions_reporting.php:587 ../../include/functions.php:714 #: ../../include/functions_reporting.php:587 ../../include/functions.php:714
#: ../../include/functions.php:719 ../../include/functions.php:722 #: ../../include/functions.php:719 ../../include/functions.php:722
#: ../../include/functions_db.php:1840 #: ../../include/functions_db.php:1825
msgid "N/A" msgid "N/A"
msgstr "" msgstr ""
@ -2426,7 +2432,7 @@ msgstr ""
#: ../../godmode/agentes/alert_manager_editor.php:365 #: ../../godmode/agentes/alert_manager_editor.php:365
#: ../../godmode/agentes/alert_manager.php:182 #: ../../godmode/agentes/alert_manager.php:182
#: ../../include/functions_db.php:1791 #: ../../include/functions_db.php:1776
msgid "Oper" msgid "Oper"
msgstr "" msgstr ""
@ -2454,7 +2460,7 @@ msgstr ""
#: ../../godmode/agentes/alert_manager_editor.php:369 #: ../../godmode/agentes/alert_manager_editor.php:369
#: ../../godmode/agentes/alert_manager.php:110 #: ../../godmode/agentes/alert_manager.php:110
#: ../../godmode/agentes/alert_manager.php:186 #: ../../godmode/agentes/alert_manager.php:186
#: ../../include/functions_db.php:1794 #: ../../include/functions_db.php:1779
msgid "Time" msgid "Time"
msgstr "" msgstr ""
@ -2570,10 +2576,6 @@ msgstr ""
msgid "To Agent(s):" msgid "To Agent(s):"
msgstr "" msgstr ""
#: ../../godmode/agentes/manage_config_remote.php:141
msgid "Replicate configuration"
msgstr ""
#: ../../godmode/agentes/module_manager_editor_plugin.php:79 #: ../../godmode/agentes/module_manager_editor_plugin.php:79
msgid "Plugin server module" msgid "Plugin server module"
msgstr "" msgstr ""
@ -2749,7 +2751,7 @@ msgstr ""
#: ../../operation/snmpconsole/snmp_view.php:204 #: ../../operation/snmpconsole/snmp_view.php:204
#: ../../operation/snmpconsole/snmp_alert.php:143 #: ../../operation/snmpconsole/snmp_alert.php:143
#: ../../operation/snmpconsole/snmp_alert.php:262 #: ../../operation/snmpconsole/snmp_alert.php:262
#: ../../include/functions_db.php:1998 #: ../../include/functions_db.php:1983
msgid "Alert" msgid "Alert"
msgstr "" msgstr ""
@ -3731,13 +3733,13 @@ msgstr ""
msgid "RSS Events" msgid "RSS Events"
msgstr "" msgstr ""
#: ../../operation/events/events.php:300 ../../include/functions_db.php:1905 #: ../../operation/events/events.php:300 ../../include/functions_db.php:1890
msgid "St" msgid "St"
msgstr "" msgstr ""
#: ../../operation/events/events.php:302 #: ../../operation/events/events.php:302
#: ../../include/functions_reporting.php:240 #: ../../include/functions_reporting.php:240
#: ../../include/functions_db.php:1907 #: ../../include/functions_db.php:1892
msgid "Event name" msgid "Event name"
msgstr "" msgstr ""
@ -4271,7 +4273,7 @@ msgstr ""
#: ../../operation/agentes/estado_alertas.php:256 #: ../../operation/agentes/estado_alertas.php:256
#: ../../operation/agentes/estado_alertas.php:279 #: ../../operation/agentes/estado_alertas.php:279
#: ../../include/functions.php:953 ../../include/functions.php:1114 #: ../../include/functions.php:953 ../../include/functions.php:1114
#: ../../include/functions_db.php:1880 #: ../../include/functions_db.php:1865
msgid "Alert fired" msgid "Alert fired"
msgstr "" msgstr ""
@ -4280,7 +4282,7 @@ msgstr ""
#: ../../operation/agentes/estado_alertas.php:191 #: ../../operation/agentes/estado_alertas.php:191
#: ../../operation/agentes/estado_alertas.php:258 #: ../../operation/agentes/estado_alertas.php:258
#: ../../operation/agentes/estado_alertas.php:281 #: ../../operation/agentes/estado_alertas.php:281
#: ../../include/functions.php:964 ../../include/functions_db.php:1882 #: ../../include/functions.php:964 ../../include/functions_db.php:1867
msgid "Alert not fired" msgid "Alert not fired"
msgstr "" msgstr ""
@ -4654,7 +4656,7 @@ msgid "months"
msgstr "" msgstr ""
#: ../../include/functions.php:825 ../../include/functions.php:912 #: ../../include/functions.php:825 ../../include/functions.php:912
#: ../../include/functions_db.php:1796 #: ../../include/functions_db.php:1781
msgid "Recovery" msgid "Recovery"
msgstr "" msgstr ""
@ -4719,31 +4721,31 @@ msgstr ""
msgid "Wrong module type" msgid "Wrong module type"
msgstr "" msgstr ""
#: ../../include/functions_db.php:1792 #: ../../include/functions_db.php:1777
msgid "Tt" msgid "Tt"
msgstr "" msgstr ""
#: ../../include/functions_db.php:1793 #: ../../include/functions_db.php:1778
msgid "Firing" msgid "Firing"
msgstr "" msgstr ""
#: ../../include/functions_db.php:1795 #: ../../include/functions_db.php:1780
msgid "Desc" msgid "Desc"
msgstr "" msgstr ""
#: ../../include/functions_db.php:1797 #: ../../include/functions_db.php:1782
msgid "MinMax.Al" msgid "MinMax.Al"
msgstr "" msgstr ""
#: ../../include/functions_db.php:1798 #: ../../include/functions_db.php:1783
msgid "Days" msgid "Days"
msgstr "" msgstr ""
#: ../../include/functions_db.php:1799 #: ../../include/functions_db.php:1784
msgid "Fired" msgid "Fired"
msgstr "" msgstr ""
#: ../../include/functions_db.php:1903 #: ../../include/functions_db.php:1888
msgid "Latest events" msgid "Latest events"
msgstr "" msgstr ""
@ -4760,12 +4762,12 @@ msgstr ""
msgid "More info" msgid "More info"
msgstr "" msgstr ""
#: ../../extensions/update_manager.php:88 #: ../../extensions/update_manager.php:86
#: ../../extensions/update_manager/main.php:14 #: ../../extensions/update_manager/main.php:14
msgid "Update manager" msgid "Update manager"
msgstr "" msgstr ""
#: ../../extensions/update_manager.php:89 #: ../../extensions/update_manager.php:87
msgid "Update manager settings" msgid "Update manager settings"
msgstr "" msgstr ""

View File

@ -31,7 +31,6 @@ if (give_acl ($config['id_user'], 0, "AR")!=1) {
function datos_raw ($id_agente_modulo, $periodo) { function datos_raw ($id_agente_modulo, $periodo) {
global $config; global $config;
require("include/languages/language_".$config["language"].".php");
$periodo_label = $periodo; $periodo_label = $periodo;
switch ($periodo) { switch ($periodo) {

View File

@ -56,7 +56,7 @@ function give_average_from_module ($id_agente, $id_agente_modulo, $hour, $day, $
function generate_average_table ($id_de_mi_agente, $id_agente_modulo, $fecha_inicio, $fecha_fin){ function generate_average_table ($id_de_mi_agente, $id_agente_modulo, $fecha_inicio, $fecha_fin){
// Genera una tabla con los promedios de los datos de un módulo no-string // Genera una tabla con los promedios de los datos de un módulo no-string
require ("include/config.php"); require ("include/config.php");
require ("include/languages/language_".$language_code.".php");
$dias_de_la_semana = array (__('Sunday'),__('Monday'), __('Tuesday'), __('Wednesday'), __('Thurdsday'), __('Friday'), __('Saturday')); $dias_de_la_semana = array (__('Sunday'),__('Monday'), __('Tuesday'), __('Wednesday'), __('Thurdsday'), __('Friday'), __('Saturday'));
$nombre_modulo = dame_nombre_modulo_agentemodulo($id_agente_modulo); $nombre_modulo = dame_nombre_modulo_agentemodulo($id_agente_modulo);

View File

@ -21,7 +21,6 @@
require ("../../include/config.php"); require ("../../include/config.php");
require_once ("../../include/functions.php"); require_once ("../../include/functions.php");
require_once ("../../include/functions_db.php"); require_once ("../../include/functions_db.php");
require_once ("../../include/languages/language_".$config["language"].".php");
require_once ("../../include/functions_reporting_pdf.php"); require_once ("../../include/functions_reporting_pdf.php");
if (! isset ($_SESSION["id_usuario"])) { if (! isset ($_SESSION["id_usuario"])) {

View File

@ -29,7 +29,6 @@ if (! isset($_SESSION["id_user"])) {
require_once ('../include/functions.php'); require_once ('../include/functions.php');
require_once ('../include/functions_db.php'); require_once ('../include/functions_db.php');
require_once ('../include/languages/language_'.$config['language'].'.php');
check_login (); check_login ();