2009-03-31 16:32:58 +02:00
< ? php
2009-06-08 20:21:21 +02:00
// Pandora FMS - http://pandorafms.com
// ==================================================
2010-03-04 17:08:09 +01:00
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
2009-06-08 20:21:21 +02:00
// Please see http://pandorafms.org for full contribution list
2009-03-31 16:32:58 +02:00
// 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 for version 2.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// Load global vars
2010-03-03 18:10:37 +01:00
global $config ;
2009-03-31 16:32:58 +02:00
check_login ();
2011-02-27 Miguel de Dios <miguel.dedios@artica.es>
* extensions/users_connected.php: fixed the double negation in the
check_acl.
* include/functions_events.php, include/functions_modules.php,
include/functions_reporting.php, include/functions_filemanager.php,
include/functions_config.php, include/ajax/reporting.ajax.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
include/fgraph.php, include/functions.php, include/functions_db.php,
include/functions_alerts.php, include/functions_reports.php,
extensions/insert_data.php, extensions/system_info.php,
extensions/pandora_logs.php, extensions/agents_modules.php,
extensions/dbmanager.php, extensions/resource_registration.php,
extensions/update_manager/settings.php, extensions/update_manager/main.php,
extensions/plugin_registration.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php, operation/extensions.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/agentes/status_monitor.php,
operation/agentes/export_csv.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php,
operation/agentes/graphs.php, operation/agentes/agent_fields.php,
operation/agentes/group_view.php, operation/agentes/networkmap.php,
operation/servers/view_server.php, operation/servers/view_server_detail.php,
operation/menu.php, operation/snmpconsole/snmp_view.php,
operation/users/user_edit.php, operation/events/event_statistics.php,
operation/events/export_csv.php, operation/events/sound_events.php,
operation/events/events_validate.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/events/events.php,
operation/search_reports.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php, operation/search_maps.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php, mobile/index.php,
general/ui/agents_list.php, godmode/groups/modu_group_list.php,
godmode/groups/configure_group.php, godmode/groups/configure_modu_group.php,
godmode/groups/group_list.php, godmode/admin_access_logs.php,
godmode/extensions.php, godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php, godmode/db/db_info.php,
godmode/db/db_event.php, godmode/db/db_purge.php,
godmode/agentes/fields_manager.php, godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php, godmode/servers/recon_script.php,
godmode/servers/plugin.php, godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php, godmode/menu.php,
godmode/alerts/alert_list.list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
godmode/setup/os.list.php, godmode/setup/news.php,
godmode/setup/gis_step_2.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/setup/os.php,
godmode/setup/performance.php, godmode/setup/setup_auth.php,
godmode/setup/gis.php, godmode/setup/os.builder.php,
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/users/configure_profile.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_add_action_alerts.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/visual_console_builder.preview.php,
godmode/reporting/graph_builder.graph_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/graph_builder.preview.php: replaced obsolete "give_acl" to
"check_acl" and erased the "give_acl".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-28 13:02:08 +01:00
if ( ! check_acl ( $config [ 'id_user' ], 0 , " PM " ) && ! is_user_admin ( $config [ 'id_user' ])) {
* include/functions_graph.php
include/functions_html.php
include/functions_messages.php
include/db/postgresql.php
include/db/mysql.php
include/db/oracle.php
include/functions_reporting.php
include/functions_filemanager.php
include/functions_gis.php
include/auth/ldap.php
include/auth/mysql.php
include/functions_networkmap.php
include/functions_network_components.php
include/ajax/skins.ajax.php
include/ajax/reporting.ajax.php
include/ajax/visual_console_builder.ajax.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_config.php
include/functions_api.php
include/help/en/help_timesource.php
include/help/es/help_timesource.php
include/help/ja/help_timesource.php
include/config_process.php
include/functions_ui.php
include/functions_custom_graphs.php
include/fgraph.php
include/functions_incidents.php
include/api.php
include/functions_reports.php
include/functions_ui_renders.php
extensions/insert_data.php
extensions/system_info.php
extensions/extension_uploader.php
extensions/pandora_logs.php
extensions/agents_modules.php
extensions/update_manager.php
extensions/ssh_console.php
extensions/dbmanager.php
extensions/vnc_view.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/users_connected.php
extensions/module_groups.php
extensions/update_manager/load_updatemanager.php
extensions/update_manager/lib/libupdate_manager_client.php
extensions/update_manager/lib/libupdate_manager.php
extensions/update_manager/lib/libupdate_manager_components.php
extensions/update_manager/lib/libupdate_manager_updates.php
extensions/update_manager/settings.php
extensions/update_manager/main.php
extensions/plugin_registration.php
operation/incidents/incident.php
operation/incidents/incident_detail.php
operation/incidents/incident_statistics.php
operation/search_modules.php
operation/visual_console/render_view.php
operation/visual_console/index.php
operation/extensions.php
operation/agentes/status_monitor.php
operation/agentes/export_csv.php
operation/agentes/estado_ultimopaquete.php
operation/agentes/datos_agente.php
operation/agentes/alerts_status.php
operation/agentes/estado_generalagente.php
operation/agentes/custom_fields.php
operation/agentes/estado_agente.php
operation/agentes/networkmap.topology.php
operation/agentes/networkmap.groups.php
operation/agentes/sla_view.php
operation/agentes/exportdata.php
operation/agentes/gis_view.php
operation/agentes/estado_monitores.php
operation/agentes/ver_agente.php
operation/agentes/graphs.php
operation/agentes/agent_fields.php
operation/agentes/tactical.php
operation/agentes/group_view.php
operation/agentes/networkmap.php
operation/agentes/stat_win.php
operation/servers/view_server.php
operation/servers/view_server_detail.php
operation/menu.php
operation/search_agents.php
operation/search_graphs.php
operation/snmpconsole/snmp_view.php
operation/users/user_edit.php
operation/gis_maps/render_view.php
operation/gis_maps/ajax.php
operation/integria_incidents/incident.php
operation/integria_incidents/incident_detail.php
operation/integria_incidents/incident_statistics.php
operation/events/event_statistics.php
operation/events/events_rss.php
operation/events/export_csv.php
operation/events/sound_events.php
operation/events/events_validate.php
operation/events/events_list.php
operation/events/events_marquee.php
operation/events/events.php
operation/search_alerts.php
operation/messages/message.php
operation/reporting/reporting_xml.php
operation/reporting/reporting_viewer.php
operation/reporting/graph_viewer.php
operation/search_reports.php
operation/search_maps.php
operation/search_users.php
extras/pandora_diag.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/events/events.php
mobile/index.php
general/error_authconfig.php
general/links_menu.php
general/logon_ok.php
general/error_dbconfig.php
general/ui/agents_list.php
general/header.php
godmode/groups/modu_group_list.php
godmode/groups/configure_group.php
godmode/groups/configure_modu_group.php
godmode/groups/group_list.php
godmode/admin_access_logs.php
godmode/db/db_main.php
godmode/db/db_audit.php
godmode/db/db_sanity.php
godmode/db/db_refine.php
godmode/db/db_info.php
godmode/db/db_event.php
godmode/db/db_purge.php
godmode/extensions.php
godmode/agentes/agent_template.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/fields_manager.php
godmode/agentes/agent_conf_gis.php
godmode/agentes/module_manager_editor_prediction.php
godmode/agentes/module_manager.php
godmode/agentes/modificar_agente.php
godmode/agentes/configurar_agente.php
godmode/agentes/configure_field.php
godmode/agentes/module_manager_editor.php
godmode/agentes/planned_downtime.php
godmode/agentes/manage_config_remote.php
godmode/agentes/agent_manager.php
godmode/servers/recon_script.php
godmode/servers/plugin.php
godmode/servers/manage_recontask.php
godmode/servers/modificar_server.php
godmode/servers/manage_recontask_form.php
godmode/alerts/alert_list.list.php
godmode/alerts/configure_alert_compound.php
godmode/alerts/alert_compounds.php
godmode/alerts/alert_list.php
godmode/alerts/configure_alert_template.php
godmode/alerts/alert_templates.php
godmode/alerts/configure_alert_action.php
godmode/alerts/configure_alert_command.php
godmode/alerts/alert_actions.php
godmode/alerts/alert_list.builder.php
godmode/alerts/alert_commands.php
godmode/setup/file_manager.php
godmode/setup/os.list.php
godmode/setup/news.php
godmode/setup/gis_step_2.php
godmode/setup/links.php
godmode/setup/setup.php
godmode/setup/os.php
godmode/setup/performance.php
godmode/setup/setup_auth.php
godmode/setup/gis.php
godmode/setup/os.builder.php
godmode/setup/setup_visuals.php
godmode/snmpconsole/snmp_alert.php
godmode/snmpconsole/snmp_filters.php
godmode/users/user_list.php
godmode/users/configure_profile.php
godmode/gis_maps/configure_gis_map.php
godmode/gis_maps/index.php
godmode/massive/massive_add_alerts.php
godmode/massive/massive_copy_modules.php
godmode/massive/massive_delete_agents.php
godmode/massive/massive_enable_disable_alerts.php
godmode/massive/massive_operations.php
godmode/massive/massive_delete_profiles.php
godmode/massive/massive_edit_agents.php
godmode/massive/massive_delete_action_alerts.php
godmode/massive/massive_delete_modules.php
godmode/massive/massive_add_profiles.php
godmode/massive/massive_delete_alerts.php
godmode/massive/massive_edit_modules.php
godmode/massive/massive_standby_alerts.php
godmode/massive/massive_add_action_alerts.php
godmode/modules/manage_network_components_form.php
godmode/modules/manage_nc_groups_form.php
godmode/modules/manage_network_templates.php
godmode/modules/module_list.php
godmode/modules/manage_network_components_form_common.php
godmode/modules/manage_network_components_form_network.php
godmode/modules/manage_network_templates_form.php
godmode/modules/manage_network_components_form_wmi.php
godmode/modules/manage_network_components.php
godmode/modules/manage_nc_groups.php
godmode/reporting/visual_console_builder.wizard.php
godmode/reporting/graph_builder.main.php
godmode/reporting/reporting_builder.list_items.php
godmode/reporting/visual_console_builder.php
godmode/reporting/reporting_builder.preview.php
godmode/reporting/reporting_builder.main.php
godmode/reporting/visual_console_builder.data.php
godmode/reporting/visual_console_builder.elements.php
godmode/reporting/graph_builder.php
godmode/reporting/visual_console_builder.preview.php
godmode/reporting/graph_builder.graph_editor.php
godmode/reporting/reporting_builder.php
godmode/reporting/visual_console_builder.editor.php
godmode/reporting/reporting_builder.item_editor.php
godmode/reporting/map_builder.php
godmode/reporting/graphs.php
godmode/reporting/graph_builder.preview.php
include/functions_db.php: Added some includes and functions of this code have "db_" prefix.
* include/functions.php: Moved function check_login(), check_acl(),
dame_nombre_pluginid(), get_os_name() from functions_db.php to functions.php.
* include/functions_groups.php: Moved functions get_childrens(), safe_acl_group()
and get_parents(), give_disabled_group(), isAllGroups(), get_group_icon(), get_all_groups(),
get_id_groups_recursive(), get_user_groups_tree_recursive(), get_group_status(),
get_group_name(), get_group_users() from functions_db.php to this code.
* include/functions_profile.php: New library with profile functions. Moved functions
get_profile_name(), get_profiles(), create_user_profile(), delete_user_profile(),
delete_profile() from functions_db.php to this code. Added new parameter in function
get_profile() to retrieve profiles with filter conditions applied.
* include/functions_users.php: New library with users functions. Moved functions
get_users_info(), get_all_model_groups(), get_user_groups(), get_user_groups_tree(),
get_user_first_group(), user_access_to_agent() from funtions_db.php to this code.
* godmode/users/configure_user.php: Changed get_profile_filter() function to get_profile().
* include/functions_agents.php: Moved functions get_group_agents(), get_agent_modules(),
get_agent_module_id(), get_agent_id(), get_agent_name(), get_agent_modules_data_count(),
check_alert_fired(), get_agent_interval(), get_agent_os(), give_agentmodule_flag(),
agent_add_address(), agent_delete_address(), get_agent_address(), get_agent_with_ip(),
get_agent_addresses(), get_agent_status(), delete_agent(), get_agentmodule_group(),
get_agent_group() from functions_db.php to this code.
* include/functions_modules.php: Moved functions get_agentmodule(), get_agentmodule_id(),
get_agentmodule_is_init(), get_agent_modules_count(), get_module_type_name(),
get_module_type_icon(), get_agentmodule_agent(), get_agentmodule_agent_name(),
get_agentmodule_name(), get_agentmodule_type(), get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(), get_monitors_in_group(),
get_monitors_in_agent(), get_monitors_down(), get_moduletype_name(),
get_moduletype_description(), get_moduletypes(), get_module_interval(), show_icon_type(),
give_modulecategory_name(),
give_agent_id_from_module_id(), get_module_status(), get_agent_module_last_value(),
get_previous_data(), get_agentmodule_modulegroup(), get_modulegroups(),
get_modulegroup_name() from functions_db.php to this code.
* include/functions_alerts.php: Moved functions get_alert_type(), get_agent_alert_fired(),
get_module_alert_fired(), get_alert_fires_in_period(), get_group_alerts(), get_alerts_fired(),
get_alert_last_fire_timestamp_in_period(), get_agentmodule_status(),
get_agentmodule_last_status() from functions_db.php to this code.
* include/functions_exportserver.php: Moved function dame_nombre_servidorexportacion()
from functions_db.php to this code.
* include/functions_events.php: Moved functions get_group_events(), get_agent_events(),
get_module_events() from functions_db.php to this code.
* include/functions_servers.php: Moved functions get_server_name(), show_server_type(),
check_server_status(), server_status() from functions_db.php to this code.
* include/functions_network_profiles.php: Moved function get_networkprofile_name()
from functions_db.php to this code.
* include/functions_visual_map.php: Moved functions get_layoutdata_x(), get_layoutdata_y()
from fucntions_db.php to this code.
* include/functions_io.php: Moved function __() from functions_db.php to this code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-19 20:42:49 +02:00
db_pandora_audit ( " ACL Violation " , " Trying to access Visual Setup Management " );
2009-03-31 16:32:58 +02:00
require ( " general/noaccess.php " );
return ;
}
// Load enterprise extensions
enterprise_include ( 'godmode/setup/setup_visuals.php' );
/*
NOTICE FOR DEVELOPERS :
Update operation is done in config_process . php
This is done in that way so the user can see the changes inmediatly .
2011-04-15 14:03:19 +02:00
If you added a new token , please check config_update_config () in functions_config . php
2009-03-31 16:32:58 +02:00
to add it there .
*/
require_once ( 'include/functions_themes.php' );
2012-08-17 13:39:25 +02:00
require_once ( 'include/functions_gis.php' );
2009-03-31 16:32:58 +02:00
2011-06-28 15:31:52 +02:00
$table -> width = '98%' ;
2009-03-31 16:32:58 +02:00
$table -> data = array ();
2012-12-11 17:20:10 +01:00
$row = 1 ;
$table -> data [ $row ][ 0 ] = __ ( 'Date format string' ) . ui_print_help_icon ( " date_format " , true );
$table -> data [ $row ][ 1 ] = '<em>' . __ ( 'Example' ) . '</em> ' . date ( $config [ " date_format " ]);
$table -> data [ $row ][ 1 ] .= html_print_input_text ( 'date_format' , $config [ " date_format " ], '' , 30 , 100 , true );
$row ++ ;
2009-03-31 16:32:58 +02:00
2012-06-20 16:54:37 +02:00
if ( $config [ 'prominent_time' ] == 'comparation' ) {
$timestamp = false ;
$comparation = true ;
2012-07-16 Miguel de Dios <miguel.dedios@artica.es>
* extensions/agents_modules.php, extensions/users_connected.php,
extensions/agents_alerts.php,
operation/visual_console/render_view.php,
operation/visual_console/public_console.php,
operation/agentes/networkmap.groups.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/networkmap.topology.php, general/header.php,
godmode/db/db_refine.php, godmode/agentes/configurar_agente.php,
godmode/alerts/configure_alert_compound.php,
godmode/setup/setup_visuals.php, godmode/snmpconsole/snmp_alert.php,
godmode/modules/manage_network_components_form_wmi.php,
include/functions_config.php, include/functions_api.php,
include/functions_agents.php, include/functions_forecast.php:
cleaned source code style and change magic numbers for time
constants.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6773 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-16 11:24:04 +02:00
}
else if ( $config [ 'prominent_time' ] == 'timestamp' ) {
2012-06-20 16:54:37 +02:00
$timestamp = true ;
$comparation = false ;
}
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Timestamp or time comparation' ) . ui_print_help_icon ( " time_stamp-comparation " , true );
2013-02-27 15:25:24 +01:00
$table -> data [ $row ][ 1 ] = __ ( 'Comparation in rollover' ) . ' ' ;
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 1 ] .= html_print_radio_button ( 'prominent_time' , " comparation " , '' , $comparation , true );
$table -> data [ $row ][ 1 ] .= '<br />' . __ ( 'Timestamp in rollover' ) . ' ' ;
$table -> data [ $row ][ 1 ] .= html_print_radio_button ( 'prominent_time' , " timestamp " , '' , $timestamp , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Graph color (min)' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color1' , $config [ " graph_color1 " ], '' , 8 , 8 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Graph color (avg)' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color2' , $config [ " graph_color2 " ], '' , 8 , 8 , true );
$row ++ ;
2009-03-31 16:32:58 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Graph color (max)' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color3' , $config [ " graph_color3 " ], '' , 8 , 8 , true );
$row ++ ;
2014-03-14 09:33:13 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Graph color #4' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color4' , $config [ " graph_color4 " ], '' , 8 , 8 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Graph color #5' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color5' , $config [ " graph_color5 " ], '' , 8 , 8 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Graph color #6' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color6' , $config [ " graph_color6 " ], '' , 8 , 8 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Graph color #7' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color7' , $config [ " graph_color7 " ], '' , 8 , 8 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Graph color #8' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color8' , $config [ " graph_color8 " ], '' , 8 , 8 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Graph color #9' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color9' , $config [ " graph_color9 " ], '' , 8 , 8 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Graph color #10' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_color10' , $config [ " graph_color10 " ], '' , 8 , 8 , true );
$row ++ ;
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Graphic resolution (1-low, 5-high)' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'graph_res' , $config [ " graph_res " ], '' , 5 , 5 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Interval values' );
$units = array (
1 => __ ( 'seconds' ),
SECONDS_1MINUTE => __ ( 'minutes' ),
SECONDS_1HOUR => __ ( 'hours' ),
SECONDS_1DAY => __ ( 'days' ),
SECONDS_1MONTH => __ ( 'months' ),
SECONDS_1YEAR => __ ( 'years' ));
2013-04-16 16:51:04 +02:00
2013-02-27 15:25:24 +01:00
$table -> data [ $row ][ 1 ] = __ ( 'Add new custom value to intervals' ) . ': ' ;
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 1 ] .= html_print_input_text ( 'interval_value' , '' , '' , 5 , 5 , true );
$table -> data [ $row ][ 1 ] .= html_print_select ( $units , 'interval_unit' , 1 , " " , '' , '' , true , false , false );
$table -> data [ $row ][ 1 ] .= html_print_button ( __ ( 'Add' ), 'interval_add_btn' , false , " " , 'class="sub next"' , true );
$table -> data [ $row ][ 1 ] .= '<br><br>' ;
2009-03-31 16:32:58 +02:00
2013-02-27 15:25:24 +01:00
$table -> data [ $row ][ 1 ] .= __ ( 'Delete interval' ) . ': ' ;
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 1 ] .= html_print_select ( get_periods ( false , false ), 'intervals' , " " , " " , '' , '' , true );
$table -> data [ $row ][ 1 ] .= html_print_button ( __ ( 'Delete' ), 'interval_del_btn' , empty ( $config [ " interval_values " ]), " " , 'class="sub cancel"' , true );
2009-03-31 16:32:58 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 1 ] .= html_print_input_hidden ( 'interval_values' , $config [ " interval_values " ], true );
// This hidden field will be filled from jQuery before submit
$table -> data [ $row ][ 1 ] .= html_print_input_hidden ( 'interval_to_delete' , '' , true );
2009-03-31 16:32:58 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2009-03-31 16:32:58 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Style template' );
$table -> data [ $row ][ 1 ] = html_print_select ( themes_get_css (), 'style' , $config [ " style " ] . '.css' , '' , '' , '' , true );
2009-03-31 16:32:58 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2009-03-31 16:32:58 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Block size for pagination' );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'block_size' , $config [ " global_block_size " ], '' , 5 , 5 , true );
2011-11-17 17:55:32 +01:00
2012-12-11 17:20:10 +01:00
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Use round corners' );
$table -> data [ $row ][ 1 ] = __ ( 'Yes' ) . ' ' . html_print_radio_button ( 'round_corner' , 1 , '' , $config [ " round_corner " ], true ) . ' ' ;
$table -> data [ $row ][ 1 ] .= __ ( 'No' ) . ' ' . html_print_radio_button ( 'round_corner' , 0 , '' , $config [ " round_corner " ], true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Status icon set' );
2009-04-20 16:00:27 +02:00
$iconsets [ " default " ] = __ ( 'Colors' );
2009-04-06 13:02:05 +02:00
$iconsets [ " faces " ] = __ ( 'Faces' );
2009-04-20 16:00:27 +02:00
$iconsets [ " color_text " ] = __ ( 'Colors and text' );
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 1 ] = html_print_select ( $iconsets , 'status_images_set' , $config [ " status_images_set " ], '' , '' , '' , true );
2009-04-06 13:02:05 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2009-07-01 19:09:26 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Font path' );
2011-04-19 16:36:33 +02:00
$fonts = load_fonts ();
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 1 ] = html_print_select ( $fonts , 'fontpath' , $config [ " fontpath " ], '' , '' , 0 , true );
2011-04-19 16:36:33 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2009-07-01 19:09:26 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Font size' );
2012-10-02 11:07:20 +02:00
$font_size_array = array ( 1 => 1 ,
2 => 2 ,
3 => 3 ,
4 => 4 ,
5 => 5 ,
6 => 6 ,
7 => 7 ,
8 => 8 ,
9 => 9 ,
10 => 10 ,
11 => 11 ,
12 => 12 ,
13 => 13 ,
14 => 14 ,
15 => 15 );
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 1 ] = html_print_select ( $font_size_array , 'font_size' , $config [ " font_size " ], '' , '' , 0 , true );
2011-04-20 17:54:31 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2009-07-01 19:09:26 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Interactive charts' ) . ui_print_help_tip ( __ ( 'Whether to use Javascript or static PNG graphs' ), true );
$table -> data [ $row ][ 1 ] = __ ( 'Yes' ) . ' ' . html_print_radio_button ( 'flash_charts' , 1 , '' , $config [ " global_flash_charts " ], true ) . ' ' ;
$table -> data [ $row ][ 1 ] .= __ ( 'No' ) . ' ' . html_print_radio_button ( 'flash_charts' , 0 , '' , $config [ " global_flash_charts " ], true );
2011-11-29 13:30:27 +01:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2011-11-29 13:30:27 +01:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Custom logo' ) . ui_print_help_icon ( " custom_logo " , true );
$table -> data [ $row ][ 1 ] = html_print_select ( list_files ( 'images/custom_logo' , " png " , 1 , 0 ), 'custom_logo' , $config [ " custom_logo " ], '' , '' , '' , true );
$row ++ ;
2009-07-01 19:09:26 +02:00
2014-03-27 Alejandro Gallardo <alejandro.gallardo@artica.es>
* include/functions_config.php,
godmode/setup/setup_visuals.php,
general/login_page.php: Now is possible to select a
custom login background in the setup visuals section.
* images/backgrounds/default_4.0-stripes.gif,
images/backgrounds/default_4.0.jpg,
images/backgrounds/default_5.0.png,
images/backgrounds/flowers.jpg,
images/backgrounds/grass.jpg,
images/backgrounds/tiles.jpg,
images/backgrounds/wall.jpg,
images/backgrounds/wood.jpg: Added new images to use
it as custom login backgrounds.
* images/backgrounds/background1.jpg,
images/backgrounds/background2.jpg,
images/backgrounds/background3.jpg,
images/backgrounds/background4.jpg,
images/backgrounds/background5.jpg,
images/backgrounds/background6.jpg,
images/backgrounds/background7.jpg,
images/backgrounds/background8.jpg,
images/backgrounds/background9.jpg,
images/backgrounds/background10.jpg,
images/backgrounds/background_red.jpg: Delete some
VERY old images.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9655 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-03-27 12:49:00 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Login background' ) . ui_print_help_tip ( __ ( 'You can place your custom images into the folder images/backgrounds/' ), true );
$backgrounds_list_jpg = list_files ( " images/backgrounds " , " jpg " , 1 , 0 );
$backgrounds_list_gif = list_files ( " images/backgrounds " , " gif " , 1 , 0 );
$backgrounds_list_png = list_files ( " images/backgrounds " , " png " , 1 , 0 );
$backgrounds_list = array_merge ( $backgrounds_list_jpg , $backgrounds_list_png );
$backgrounds_list = array_merge ( $backgrounds_list , $backgrounds_list_gif );
asort ( $backgrounds_list );
$table -> data [ $row ][ 1 ] = html_print_select ( $backgrounds_list , 'login_background' , $config [ " login_background " ], '' , __ ( 'Default' ), '' , true );
$row ++ ;
2011-11-17 17:55:32 +01:00
$values = array ();
$values [ 5 ] = human_time_description_raw ( 5 );
$values [ 30 ] = human_time_description_raw ( 30 );
2012-07-16 Miguel de Dios <miguel.dedios@artica.es>
* extensions/agents_modules.php, extensions/users_connected.php,
extensions/agents_alerts.php,
operation/visual_console/render_view.php,
operation/visual_console/public_console.php,
operation/agentes/networkmap.groups.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/networkmap.topology.php, general/header.php,
godmode/db/db_refine.php, godmode/agentes/configurar_agente.php,
godmode/alerts/configure_alert_compound.php,
godmode/setup/setup_visuals.php, godmode/snmpconsole/snmp_alert.php,
godmode/modules/manage_network_components_form_wmi.php,
include/functions_config.php, include/functions_api.php,
include/functions_agents.php, include/functions_forecast.php:
cleaned source code style and change magic numbers for time
constants.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6773 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-16 11:24:04 +02:00
$values [ SECONDS_1MINUTE ] = human_time_description_raw ( SECONDS_1MINUTE );
$values [ SECONDS_2MINUTES ] = human_time_description_raw ( SECONDS_2MINUTES );
$values [ SECONDS_5MINUTES ] = human_time_description_raw ( SECONDS_5MINUTES );
$values [ SECONDS_10MINUTES ] = human_time_description_raw ( SECONDS_10MINUTES );
$values [ SECONDS_30MINUTES ] = human_time_description_raw ( SECONDS_30MINUTES );
2011-11-17 17:55:32 +01:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Default interval for refresh on Visual Console' ) . ui_print_help_tip ( __ ( 'This interval will affect to Visual Console pages' ), true );
$table -> data [ $row ][ 1 ] = html_print_select ( $values , 'vc_refr' , $config [ " vc_refr " ], '' , 'N/A' , 0 , true , false , false );
2012-06-13 20:01:43 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2012-06-13 20:01:43 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Agent size text' ) . ui_print_help_tip ( __ ( 'When the agent name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.' ), true );
$table -> data [ $row ][ 1 ] = __ ( 'Small:' ) . html_print_input_text ( 'agent_size_text_small' , $config [ " agent_size_text_small " ], '' , 3 , 3 , true );
$table -> data [ $row ][ 1 ] .= ' ' . __ ( 'Normal:' ) . html_print_input_text ( 'agent_size_text_medium' , $config [ " agent_size_text_medium " ], '' , 3 , 3 , true );
2012-06-13 20:01:43 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2012-06-13 20:01:43 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Module size text' ) . ui_print_help_tip ( __ ( 'When the module name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.' ), true );
$table -> data [ $row ][ 1 ] = __ ( 'Small:' ) . html_print_input_text ( 'module_size_text_small' , $config [ " module_size_text_small " ], '' , 3 , 3 , true );
$table -> data [ $row ][ 1 ] .= ' ' . __ ( 'Normal:' ) . html_print_input_text ( 'module_size_text_medium' , $config [ " module_size_text_medium " ], '' , 3 , 3 , true );
2012-06-13 20:01:43 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2012-08-27 16:53:46 +02:00
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Description size text' ) . ui_print_help_tip ( __ ( 'When the description name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.' ), true );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'description_size_text' , $config [ " description_size_text " ], '' , 3 , 3 , true );
2012-08-17 13:39:25 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'Item title size text' ) . ui_print_help_tip ( __ ( 'When the item title name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.' ), true );
$table -> data [ $row ][ 1 ] = html_print_input_text ( 'item_title_size_text' , $config [ " item_title_size_text " ], '' , 3 , 3 , true );
$row ++ ;
$table -> data [ $row ][ 0 ] = __ ( 'GIS Labels' ) . ui_print_help_tip ( __ ( 'This enabling this, you get a label with agent name in GIS maps. If you have lots of agents in the map, will be unreadable. Disabled by default.' ), true );
$table -> data [ $row ][ 1 ] = __ ( 'Yes' ) . ' ' . html_print_radio_button ( 'gis_label' , 1 , '' , $config [ " gis_label " ], true ) . ' ' ;
$table -> data [ $row ][ 1 ] .= __ ( 'No' ) . ' ' . html_print_radio_button ( 'gis_label' , 0 , '' , $config [ " gis_label " ], true );
$row ++ ;
2012-08-17 13:39:25 +02:00
$listIcons = gis_get_array_list_icons ();
$arraySelectIcon = array ();
foreach ( $listIcons as $index => $value ) $arraySelectIcon [ $index ] = $index ;
$path = 'images/gis_map/icons/' ; //TODO set better method the path
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 0 ] = __ ( 'Default icon in GIS' ) . ui_print_help_tip ( __ ( 'Agent icon for GIS Maps. If set to "none", group icon will be used' ), true );
2012-08-17 13:39:25 +02:00
$gis_default_icon = $config [ " gis_default_icon " ];
if ( $gis_default_icon == '' ) {
2012-09-19 Miguel de Dios <miguel.dedios@artica.es>
* extensions/resource_registration.php, extensions/system_info.php,
extensions/update_manager/lib/libupdate_manager.php,
godmode/agentes/modificar_agente.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_list.list.php,
godmode/massive/massive_add_profiles.php,
godmode/massive/massive_edit_modules.php,
godmode/servers/manage_recontask.php,
godmode/setup/setup_visuals.php, include/functions_api.php,
include/functions_graph.php, include/functions_messages.php,
include/graphs/functions_flot.php,
include/graphs/flot/pandora.flot.js, operation/tree.php,
operation/agentes/status_events.php,
operation/agentes/ver_agente.php, operation/events/events_list.php,
operation/events/events_marquee.php,
operation/events/events_rss.php: cleaned source code style.
* godmode/reporting/reporting_builder.item_editor.php,
include/functions_ui.php, include/ajax/agent.php: continue to change
to the new function "ui_print_agent_autocomplete_input" to make more
easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6988 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-19 16:45:59 +02:00
$display_icons = 'none' ;
// Hack to show no icon. Use any given image to fix not found image errors
$path_without = " images/spinner.png " ;
$path_default = " images/spinner.png " ;
$path_ok = " images/spinner.png " ;
$path_bad = " images/spinner.png " ;
$path_warning = " images/spinner.png " ;
2012-08-17 13:39:25 +02:00
}
else {
2012-09-19 Miguel de Dios <miguel.dedios@artica.es>
* extensions/resource_registration.php, extensions/system_info.php,
extensions/update_manager/lib/libupdate_manager.php,
godmode/agentes/modificar_agente.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_list.list.php,
godmode/massive/massive_add_profiles.php,
godmode/massive/massive_edit_modules.php,
godmode/servers/manage_recontask.php,
godmode/setup/setup_visuals.php, include/functions_api.php,
include/functions_graph.php, include/functions_messages.php,
include/graphs/functions_flot.php,
include/graphs/flot/pandora.flot.js, operation/tree.php,
operation/agentes/status_events.php,
operation/agentes/ver_agente.php, operation/events/events_list.php,
operation/events/events_marquee.php,
operation/events/events_rss.php: cleaned source code style.
* godmode/reporting/reporting_builder.item_editor.php,
include/functions_ui.php, include/ajax/agent.php: continue to change
to the new function "ui_print_agent_autocomplete_input" to make more
easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6988 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-19 16:45:59 +02:00
$display_icons = '' ;
$path_without = $path . $gis_default_icon . " .default.png " ;
$path_default = $path . $gis_default_icon . " .default.png " ;
$path_ok = $path . $gis_default_icon . " .ok.png " ;
$path_bad = $path . $gis_default_icon . " .bad.png " ;
$path_warning = $path . $gis_default_icon . " .warning.png " ;
2012-08-17 13:39:25 +02:00
}
2012-12-11 17:20:10 +01:00
$table -> data [ $row ][ 1 ] = html_print_select ( $arraySelectIcon , " gis_default_icon " , $gis_default_icon , " changeIcons(); " , __ ( 'None' ), '' , true ) . ' ' . html_print_image ( $path_ok , true , array ( " id " => " icon_ok " , " style " => " display: " . $display_icons . " ; " )) . ' ' . html_print_image ( $path_bad , true , array ( " id " => " icon_bad " , " style " => " display: " . $display_icons . " ; " )) . ' ' . html_print_image ( $path_warning , true , array ( " id " => " icon_warning " , " style " => " display: " . $display_icons . " ; " ));
2012-08-17 13:39:25 +02:00
2012-12-11 17:20:10 +01:00
$row ++ ;
2012-08-17 13:39:25 +02:00
2009-04-20 16:00:27 +02:00
echo '<form id="form_setup" method="post">' ;
2011-04-27 15:43:31 +02:00
html_print_input_hidden ( 'update_config' , 1 );
html_print_table ( $table );
2012-08-17 13:39:25 +02:00
2009-03-31 16:32:58 +02:00
echo '<div class="action-buttons" style="width: ' . $table -> width . '">' ;
2011-04-27 15:43:31 +02:00
html_print_submit_button ( __ ( 'Update' ), 'update_button' , false , 'class="sub upd"' );
2009-03-31 16:32:58 +02:00
echo '</div>' ;
echo '</form>' ;
2011-04-13 18:11:02 +02:00
ui_require_css_file ( " color-picker " );
ui_require_jquery_file ( " colorpicker " );
2011-04-19 16:36:33 +02:00
function load_fonts () {
global $config ;
$dir = scandir ( $config [ 'homedir' ] . '/include/fonts/' );
$fonts = array ();
foreach ( $dir as $file ) {
if ( strstr ( $file , '.ttf' ) !== false ) {
$fonts [ $config [ 'homedir' ] . '/include/fonts/' . $file ] = $file ;
}
}
return $fonts ;
}
2009-03-31 16:32:58 +02:00
?>
< script language = " javascript " type = " text/javascript " >
$ ( document ) . ready ( function () {
$ ( " #form_setup #text-graph_color1 " ) . attachColorPicker ();
$ ( " #form_setup #text-graph_color2 " ) . attachColorPicker ();
$ ( " #form_setup #text-graph_color3 " ) . attachColorPicker ();
2014-03-14 09:33:13 +01:00
$ ( " #form_setup #text-graph_color4 " ) . attachColorPicker ();
$ ( " #form_setup #text-graph_color5 " ) . attachColorPicker ();
$ ( " #form_setup #text-graph_color6 " ) . attachColorPicker ();
$ ( " #form_setup #text-graph_color7 " ) . attachColorPicker ();
$ ( " #form_setup #text-graph_color8 " ) . attachColorPicker ();
$ ( " #form_setup #text-graph_color9 " ) . attachColorPicker ();
$ ( " #form_setup #text-graph_color10 " ) . attachColorPicker ();
2012-12-11 17:20:10 +01:00
$ ( " #button-interval_del_btn " ) . click ( function () {
var interval_selected = $ ( '#intervals option:selected' ) . val ();
$ ( '#hidden-interval_to_delete' ) . val ( interval_selected );
$ ( '#submit-update_button' ) . trigger ( 'click' );
});
$ ( " #button-interval_add_btn " ) . click ( function () {
$ ( '#submit-update_button' ) . trigger ( 'click' );
});
2009-03-31 16:32:58 +02:00
});
2013-01-18 18:41:00 +01:00
function changeIcons () {
icon = $ ( " #gis_default_icon :selected " ) . val ();
2013-04-16 16:51:04 +02:00
2013-01-18 18:41:00 +01:00
$ ( " #icon_without_status " ) . attr ( " src " , " images/spinner.png " );
$ ( " #icon_default " ) . attr ( " src " , " images/spinner.png " );
$ ( " #icon_ok " ) . attr ( " src " , " images/spinner.png " );
$ ( " #icon_bad " ) . attr ( " src " , " images/spinner.png " );
$ ( " #icon_warning " ) . attr ( " src " , " images/spinner.png " );
if ( icon . length == 0 ) {
$ ( " #icon_without_status " ) . attr ( " style " , " display:none; " );
$ ( " #icon_default " ) . attr ( " style " , " display:none; " );
$ ( " #icon_ok " ) . attr ( " style " , " display:none; " );
$ ( " #icon_bad " ) . attr ( " style " , " display:none; " );
$ ( " #icon_warning " ) . attr ( " style " , " display:none; " );
}
else {
$ ( " #icon_without_status " ) . attr ( " src " , " <?php echo $path ; ?> " + icon + " .default.png " );
$ ( " #icon_default " ) . attr ( " src " , " <?php echo $path ; ?> " + icon + " .default.png " );
$ ( " #icon_ok " ) . attr ( " src " , " <?php echo $path ; ?> " + icon + " .ok.png " );
$ ( " #icon_bad " ) . attr ( " src " , " <?php echo $path ; ?> " + icon + " .bad.png " );
$ ( " #icon_warning " ) . attr ( " src " , " <?php echo $path ; ?> " + icon + " .warning.png " );
$ ( " #icon_without_status " ) . attr ( " style " , " " );
$ ( " #icon_default " ) . attr ( " style " , " " );
$ ( " #icon_ok " ) . attr ( " style " , " " );
$ ( " #icon_bad " ) . attr ( " style " , " " );
$ ( " #icon_warning " ) . attr ( " style " , " " );
}
//$("#icon_default").attr("src", "<?php echo $path; ?>" + icon +
}
2009-03-31 16:32:58 +02:00
</ script >