2010-10-06 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: added in function "process_config" added lines code to check unset 'autoupdate' in $config. * operation/incidents/incident_statistics.php, godmode/users/user_list.php: cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3353 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b46c9ce64e
commit
ca42767944
|
@ -1,3 +1,11 @@
|
|||
2010-10-06 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_config.php: added in function "process_config" added
|
||||
lines code to check unset 'autoupdate' in $config.
|
||||
|
||||
* operation/incidents/incident_statistics.php, godmode/users/user_list.php:
|
||||
cleaned source code style.
|
||||
|
||||
2010-10-06 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/agentes/status_monitor.php,
|
||||
|
|
|
@ -209,7 +209,8 @@ if ($config["admin_can_add_user"] !== false) {
|
|||
print_input_hidden ('new_user', 1);
|
||||
print_submit_button (__('Create user'), "crt", false, 'class="sub next"');
|
||||
echo '</form>';
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
echo '<i>'.__('The current authentication scheme doesn\'t support creating users from Pandora FMS').'</i>';
|
||||
}
|
||||
echo '</div>';
|
||||
|
|
|
@ -559,6 +559,10 @@ function process_config () {
|
|||
if (!isset ($config['rintegria_pass'])) {
|
||||
update_config_value ( 'rintegria_pass', '');
|
||||
}
|
||||
|
||||
if (!isset ($config['autoupdate'])) {
|
||||
update_config_value ( 'autoupdate', 0);
|
||||
}
|
||||
|
||||
/* Finally, check if any value was overwritten in a form */
|
||||
update_config ();
|
||||
|
|
|
@ -31,31 +31,36 @@ echo '<table width="90%">
|
|||
<tr><td valign="top"><h3>'.__('Incidents by status').'</h3>';
|
||||
if ($config['flash_charts']) {
|
||||
echo graph_incidents_status ();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
echo '<img src="include/fgraph.php?tipo=estado_incidente" border="0"></td>';
|
||||
}
|
||||
echo '<td valign="top"><h3>'.__('Incidents by priority').'</h3>';
|
||||
if ($config['flash_charts']) {
|
||||
echo grafico_incidente_prioridad ();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
echo '<img src="include/fgraph.php?tipo=prioridad_incidente" border="0"></td></tr>';
|
||||
}
|
||||
echo '<tr><td><h3>'.__('Incidents by group').'</h3>';
|
||||
if ($config['flash_charts']) {
|
||||
echo graphic_incident_group ();
|
||||
} else {
|
||||
echo grafico_incidente_prioridad ();
|
||||
}
|
||||
else {
|
||||
echo '<img src="include/fgraph.php?tipo=group_incident" border="0"></td>';
|
||||
}
|
||||
echo '<td><h3>'.__('Incidents by user').'</h3>';
|
||||
if ($config['flash_charts']) {
|
||||
echo graphic_incident_user ();
|
||||
} else {
|
||||
echo grafico_incidente_prioridad ();
|
||||
}
|
||||
else {
|
||||
echo '<img src="include/fgraph.php?tipo=user_incident" border="0"></td></tr>';
|
||||
}
|
||||
echo '<tr><td><h3>'.__('Incidents by source').'</h3>';
|
||||
if ($config['flash_charts']) {
|
||||
echo graphic_incident_source ();
|
||||
} else {
|
||||
echo grafico_incidente_prioridad ();
|
||||
}
|
||||
else {
|
||||
echo '<img src="include/fgraph.php?tipo=source_incident" border="0"></td></tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
|
|
Loading…
Reference in New Issue