Commit Graph

842 Commits

Author SHA1 Message Date
jorgonzalez 4f578c82f6 2009-03-17 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* include/languages/es.po, include/languages/es.mo: Updated Spanish 
          translation.

        * include/languages/index.pot: Updated PO template.
                              


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1541 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-17 09:49:24 +00:00
Esteban Sanchez a040a2a621 2009-03-17 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/manage_config.php: Select dependant modules when an
	alert is selected.

	* include/functions_agents.php: Copy selected alerts on
	process_manage_config().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1540 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-17 09:22:02 +00:00
guruevi 14b9664803 2009-03-16 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/logoff.php: Cleaned up invalid html

	* general/login_page.php: Clean up ampersands
	
	* include/functions_html.php: Fixes bug #2661439
	
	* index.php: Style cleanup
	
	* godmode/modules/manage_network_templates.php: Export function
	gives a CSV file of the templates. Import pending although you
	can use it already to import back into pure SQL.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1539 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-16 17:50:06 +00:00
jorgonzalez 160cf02a1c 2009-03-16 Jorge Gonzalez <jorgegonz@artica.es>
* include/help/en/help_planned_downtime.php,
          include/help/es/help_planned_downtime.php: Added more information
          about the scheduled downtime.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1538 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-16 11:12:40 +00:00
Esteban Sanchez 5c52cbbe49 2009-03-16 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/alert_list.php,
	godmode/agentes/module_manager_editor_network.php: Fixes to work in
	IE7.

	* godmode/alerts/configure_alert_template.php: Fixed an error when the
	template was not created and causing the example or field values to
	not shown. Fixed javascript for IE7.

	* include/styles/ie.css: Fixes for IE7.

	* include/styles/pandora.css: Added style for classes added.	



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1536 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-16 11:06:00 +00:00
Esteban Sanchez b09ab2f083 2009-03-12 Esteban Sanchez <estebans@artica.es>
* godmode/db/db_purge.php: Style correction.

	* godmode/modules/manage_nc_groups.php: Complete rewritten.

	* godmode/modules/manage_nc_groups_form.php: Use pandora functions.
	Needs more love.

	* godmode/reporting/map_builder.php: Some fixes to make it work in
	IE7. 

	* include/javascript/jquery.pandora.controls.js: Execute automatically
	instead of on ready. Typo fixed that was not allowing to work on IE.

	* include/styles/ie.css: Bit of style corrections.

	* include/functions_ui.php: Added the ie.css code at the bottom, so it
	has preferences over other styles.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1534 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-13 11:22:07 +00:00
guruevi 7509de6082 2009-03-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: Added safe_output_xml which makes variables
	clean for output converting html entities into numeric entities understood
	by all XML validators - fixed small mistake
	
	* operation/events/events_rss.php: Used safe_output_xml where needed.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1532 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-12 20:17:56 +00:00
guruevi 0af6741e74 2009-03-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: Added safe_output_xml which makes variables
	clean for output converting html entities into numeric entities understood
	by all XML validators
	
	* operation/events/events_rss.php: Used safe_output_xml where needed.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1531 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-12 18:44:37 +00:00
Esteban Sanchez d3f2415ae0 2009-03-12 Esteban Sanchez <estebans@artica.es>
* reporting/fgraph.php: Fixed interval in combined graphs. Fixed
	alert min and max values. Fixed data retrieval on boolean charts and a
	bug that was not drawing this charts.
	
	* pandoradb_data.sql: First new now has the current date.

	* operation/servers/view_server.php: Fixed progress bar height.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1528 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-12 13:25:15 +00:00
Esteban Sanchez 547ba76b63 2009-03-12 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Fixed an undefined variable error.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1527 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-12 09:35:26 +00:00
Esteban Sanchez dcc76028c8 2009-03-12 Esteban Sanchez <estebans@artica.es>
* reporting/pandora_graph.php: Added to repository. New interface to
        abstract pandora from the chart engines. This would make easier a
        engine changing in the future.

        * reporting/pchart_graph.php: Added to repository. Specific class to
        use pChart engine for Pandora. First working version.

        * reporting/pChart/pCache.class, reporting/pChart/pDaita.class: Added
        to repository. pChart engine
        
        * reporting/pChart/pChart.class: Added to repository. pChart engine
        slightly modified and adopted to Pandora needs.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1526 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-12 09:29:42 +00:00
Esteban Sanchez 23c23988d4 2009-03-12 Esteban Sanchez <estebans@artica.es>
* include/auth/mysql.php: Added a cache to is_user_admin().

	* include/config_process.php: Changed build version. Load l10n tables
	before extensions.
	
	* include/functions_config.php: Fixed an error on update_config() that
	fails to update when the value has changed. Fixed style updating
	also.

	* include/functions_db.php: Added GROUP BY token to
	format_array_to_where_clause_sql().

	* include/functions_ui.php: Added a flag to debug() to allow disabling
	the backtrace output.

	* operation/agentes/tactical.php: Fixed tab. Makes percentage images a
	bit taller.

	* ChangeLog.2008: Added to repository. Stripped ChangeLog history.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1525 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-12 09:20:49 +00:00
Esteban Sanchez acb8104832 2009-03-11 Esteban Sanchez <estebans@artica.es>
* include/functions_reporting.php: Fixed an error on get_group_stats()
        that gives wrong monitor status count because it was counting some
        modules twice.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-11 14:35:32 +00:00
Esteban Sanchez df43c25f45 2009-03-11 Esteban Sanchez <estebans@artica.es>
* include/functions_reporting.php: Fixed an error on get_group_stats()
        that gives wrong monitor status count because it was counting some
        modules twice.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1523 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-11 14:09:53 +00:00
guruevi 98a8c2c7fb 2009-03-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_visual_map: Small fixes to render backgrounds with 
	spaces in filename correctly
	
	* operation/visual_console/index.php, godmode/reporting/map_builder.php: 
	Fixes to render icons correctly.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1522 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-10 20:03:06 +00:00
guruevi 4fa9d73042 2009-03-09 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/javascript/pandora.js: Moved agent_changed here from map_builder
	because it's quite a useful function.
	
	* include/functions_visual_map.php: In case you want no labels (a lot of
	icons on a graph) just set the color to anything not starting with #
	
	* godmode/reporting/map_builder_wizard.php: Added the possibility to add
	modules as well using the wizard. Very useful if you have a switch.
	
	* godmode/reporting/map_builder.php: Fixed some issues with the ajax thing
	and fixed issue #2527894.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1521 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-09 20:47:42 +00:00
guruevi 50bc3ef294 2009-03-05 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/reporting/map_builder_wizard.php: Fixed small error when no
	valid id was passed.
	
	* godmode/reporting/map_builder.php: Modified code so that width and
	height can be specified for all types of graphics. Fixed code where
	width and height wouldn't be passed in the database

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1520 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-06 20:29:41 +00:00
guruevi 397b14225d 2009-03-05 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/auth/dev.php: Updated examples
	
	* include/auth/ldap.php: Moved stuff in a more logical order
	and globalized $ldap_cache since now it is called from a function
	so it needs not be local

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1519 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-06 17:30:23 +00:00
slerena d5340c8b7f 2009-03-05 Sancho Lerena <slerena@artica.es>
*  include/functions_reporting.php: Fixed notice.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1518 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-06 14:10:05 +00:00
guruevi 5adb390628 2009-03-05 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/auth/ldap.php: Fixed a small issue to check on a variable
	
	* include/functions_extensions.php: Fixed an issue since errors 
	produced with @function will filter into custom error handlers
	
	* include/functions_ui.php: Added RSS link in the header to display
	RSS feed availability in RSS-enabled browsers
	
	* operation/events/events_marquee.php, 
	operation/events/events_statistics.php: require_once so it won't load
	the same function files twice
	
	* operation/events/events_rss.php: Better error handling. Require_once
	required because it was giving a problem with certain function files.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1517 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-05 17:40:40 +00:00
Esteban Sanchez d54394321b 2009-03-05 Esteban Sanchez <estebans@artica.es>
* include/functions_config.php: Fixed auth files inclusion that may
        fail in some cases.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1516 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-05 14:34:39 +00:00
Esteban Sanchez c50c73eecf 2009-03-05 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/map_builder_wizard.php: Style correction. Use
	Pandora functions instead of SQL. Force elements to have an image by
	removing "None".

	* include/functions_config.php: Added to repository. New file to
	manage config operations such as creation and updating values or
	updating the whole config array. It even sets id_user so no more usage
	of $_SESSION is required from outside.

	* include/config_process.php: Cleanup and usage of functions in
	functions_config.php. Updated build.

	* index.php: Updated to changes in config_process.php,

	* godmode/setup/setup.php: All config process has been moved to
	config_process.php which uses functions in functions_config.php.

	* include/styles/pandora.css: Styling for pre elements. New help
	class.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1515 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-05 12:52:59 +00:00
slerena 24a622daa2 2008-03-04 Sancho Lerena <slerena@artica.es>
* map_builder.php: Fixed links



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1514 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:20:03 +00:00
slerena 6c59ff4353 2009-03-04 Sancho Lerena <slerena@artica.es>
* operation/agents/tactical.php: Layout adapted to bigger event table.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1513 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:15:48 +00:00
slerena 81a1110128 2009-03-04 Sancho Lerena <slerena@artica.es>
* functions_html.php: Previous commit don't fix the problem, now works.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1512 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:09:21 +00:00
slerena 2d1132d9e0 2008-03-04 Sancho Lerena <slerena@artica.es>
* /extras/pandoradb_migrate_v2.x_to_v3.0.sql: Fixed defaults in tconfig.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1511 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:00:34 +00:00
slerena 1b19caa4f1 2009-03-04 Sancho Lerena <slerena@artica.es>
* extras/: New directory with extra contents (scripts, tools, samples)
	
	* index.php: Add new permission check for /attachment directory. Probably
	could be extended and wrapped into a function. This should be only called 
	once, this is the reason why is placed here and not in config_process.
	
	* pandora_console_upgrade: Force MYSQL run, even if SQL return error (useful
	for applying over a older 3.0 version for example).
	
	* pandoradb_data.sql: Was missing some tconfig variables.
	
	* extras/*.sql: Missing somre tconfig variables and other minor issues fixed
	
	* extensions/update_manager/main.php: Description of update manager patch
	wider. Probably needs more formatting in the future.
	
	* extras/sample_login.php: Sample on how to implement autologin feature.
	
	* footer.php: I hope solve the frakkin image problem.
	
	* godmode/agents/agent_manager.php: proper ACL check notice.
	
	* godmode/alerts/alert_list.php: Fixed notice.
	
	* godmode/reporting/map_builder.php: Added link to wizard and item count.
	
	* godmode/reporting/map_builder_wizard.php: Added new feature, a wizard
	to populate the visual map, using agents from a combo, depending on the
	map selected. Could have a lot of improvements, it's a basic start. Allow
	to choose agents and image maps and space between images. Puts in a reticle
	automatically adjusting at 600px width.
	
	* godmode/setup.php: Checkbox for trap_forward was bad, fixed.
	
	* config_process.php: Fixed version to 3.0-dev
	
	* functions_html.php: Default of 0 in text boxes makes them unusable on
	default values, funny :-)
	
	* include/functions_reporting.php: Fixed a notice on unknown variable
	on function get_group_stat().
	
	* operation/agentes/alerts_status.php: Filter on module status is made now
	with combos, like the rest of the filters in the GUI.
	
	* operation/events/events.php: a missing div makes graph float outside the
	filter box. TODO: Hidder filter makes free-width style buggy here.
	
	* operation/reporting/reporting_viewer.php: Fixed layout issue.
		
	* operation/visual_console/render_view.php: Added ACL check.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 17:57:00 +00:00
Esteban Sanchez e6550a5f03 2009-03-04 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/manage_config.php: Fixed a javascript error that
	doesn't allow to perform any operation.

	* godmode/alerts/configure_alert_action.php: Fixed javascript file
	inclusion.

	* godmode/reporting/map_builder.php: Fixed typo when updating a
	layout.

	* images/download.png: Added to repository.

	* include/functions_agents.php: Style correction.

	* include/functions_html.php: Added additional options to
	print_input_image().

	* include/functions_ui.php: Added format_filesize().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1507 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 15:59:00 +00:00
guruevi 42e82b8ae5 2009-03-04 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php, 
	operation/reporting/reporting_viewer.php: Function renaming, small fixes
	in some code and documentation.
	
	* include/functions_db.php: Better checks on get_agent_events
	
	* operation/reporting/reporting_xml.php: Sancho sent me this solution
	since people apparently use this and run out of memory.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1506 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 15:21:19 +00:00
Esteban Sanchez 6dea8586df 2009-03-04 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/configurar_agente.php: Fixed module interval update.
        Fixed a bug that shows an error message when updating a module.

        * include/functions_html.php: Fixed a little bug in print_input_text()
        that avoided showing a "0" as a value. Renamed a variable to avoid
        parameter collisions.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1505 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 11:56:22 +00:00
Esteban Sanchez 99ce7baa9a 2009-03-04 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/module_manager_editor.php: Fixed filter field on
	get_module_components ajax operation and order the results.

	* include/functions.php: Added enterprise_include_once().

	* include/functions_modules.php: Use get_db_all_rows_filter() on
	get_network_component(). Also added fields to this function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1504 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 11:12:42 +00:00
guruevi b92e874d23 2009-03-03 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/logon_ok.php: Minor edit in language and colors for warning
	
	* include/functions_reporting.php: Changed get_group_stats for better
	queries based on query debugging.
	
	* include/functions_db.php: Change get_server_info for better queries
	based on query debugging. Documentation updates and function updates
	
	* operation/agentes/tactical.php: Removed a row with duplicate info
	
	* operation/reporting/reporting_viewer.php, 
	operation/reporting/reporting_xml.php, include/functions_modules.php,
	godmode/agentes/module_manager_editor.php:
	Function renaming.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1502 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-03 22:12:06 +00:00
Esteban Sanchez bb35abdf77 2009-03-03 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_template.php: Add id to separator
	div.

	* include/styles/pandora.css, include/styles/pandora_width.css: Added
	style to separator div. Fixes a UI breakage.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1501 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-03 15:48:59 +00:00
Esteban Sanchez 097637401f 2009-03-03 Esteban Sanchez <estebans@artica.es>
* general/main_menu.php: Operation and godmode menus files includes
	now the dependant files.

	* godmode/agentes/modificar_agente.php: Removed unnecessary
	require()
	
	* godmode/alerts/alert_list.php: Avoid notice for undefined index when
	calling max(). Added option to delete the template.

	* godmode/alerts/configure_alert_template.php,
	godmode/alerts/alert_templates.php: Fixed field2_recovery and
	field3_recovery updating.

	* operation/menu.php, godmode/menu.php: Require functions_menu.php.

	* include/config_process.php: Updated build version.

	* include/functions.php: Keep time in a static variable on
	get_system_time().

	* include/functions_db.php: Now a custom operation can be passed to
	format_array_to_where_clause_sql() if the field key is numeric.

	* include/functions_reporting.php: Return float value on
	get_agentmodule_sla(). Added required files.

	* include/functions_ui.php: Show template name on format_alert_row().
	Style correction.

	* operation/agentes/export_csv.php: Style correction.
	
	* operation/events/export_csv.php: Use pandora functions to fetch
	results. Fixed auth part. Style correction.

	* operation/reporting/custom_reporting.php: Fixed enterprise include.

	* operation/reporting/reporting_xml.php: Fixed auth part.

	* index.php: process_page_head() may looked for uninitialized
	$config["refr"].

	* include/styles/pandora_width.css: Fixed style for ol.steps



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1500 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-03 15:21:13 +00:00
guruevi 0d29d5e7e3 2009-03-02 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php: Rewrote get_agentmodule_sla with
	faster calculations (count in SQL).
	
	* include/functions_ui.php: Added print_moduletype_icon that prints the
	whole (correct) icon including rollover text
	
	* include/functions_db.php: Updated some documenation and removed 
	deprecated functions that are now in the auth parts. Renamed 
	return_status_agent_module to get_agentmodule_status
	
	* operation/agentes/sla_view.php: Made it use the 2.0 SQL and HTML
	functions
	
	* godmode/agentes/configurar_agente.php: Fixed tab links
	
	* operation/events/events.php, include/functions_visual_map.php,
	operation/agentes/networkmap.php, operation/agentes/status_monitor.php,
	operation/agentes/estado_grupo.php, operation/agentes/ver_agente.php,
	operation/reporting/custom_reporting.php, 
	operation/reporting/reporting_viewer.php,
	operation/reporting/reporting_xml.php, godmode/setup/links.php,
	godmode/setup/setup.php, godmode/reporting/map_builder.php,
	godmode/reporting/reporting_builder.php: Fixed renamed functions

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1497 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-02 19:16:46 +00:00
Esteban Sanchez 3ed0b823c0 2009-03-02 Esteban Sanchez <estebans@artica.es>
* include/functions_menu.php: Added to repository. Functions for menu.

	* operation/menu.php, godmode/menu.php: Added class to menu due to
	changes in print_menu().

	* general/main_menu.php: temp_print_menu() moved to functions_menu.php 

	* include/functions_themes.php: Added to repository. Implement
	functions relative to themes (only CSS themes list at this moment).

	* include/styles/pandora.css, include/styles/pandora_black.css,
	include/styles/pandora_minimal.css, include/styles/pandora_red.css:
	Added author, name and description comments to adopt to new
	get_themes() interface.

	* include/styles/pandora_width.css: Improved and make lighter by
	simply rewrite some classes.

	* include/functions.php: Added is_ajax().

	* godmode/agentes/module_manager_editor.php,
	godmode/alerts/alert_actions.php, godmode/alerts/alert_commands.php,
	godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
	godmode/alerts/alert_templates.php, godmode/groups/group_list.php,
	godmode/reporting/map_builder.php,
	godmode/reporting/reporting_builder.php,
	operation/agentes/estado_agente.php, operation/agentes/ver_agente.php,
	operation/events/events.php, operation/messages/message.php: Use
	is_ajax()

	* godmode/setup/setup.php: Use enterprise_include() instead of manual
	checking. Use get_css_themes() to show the theme list.

	* include/styles/common.css: Added to repository. Minimal styles to
	make pandora works and common with all the CSS themes.

	* include/functions_ui.php: Added common.css file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1496 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-02 13:43:15 +00:00
Esteban Sanchez 12d47a5547 2009-02-27 Esteban Sanchez <estebans@artica.es>
* godmode/groups/configure_group.php: Removed javascript console.log

	* godmode/reporting/map_builder.php: Fixed typo on file_exists()

	* include/functions.php: Added format_integer_round().

	* include/functions_db.php: Added fields to get_db_row(). Array values
	to make "IN" SQL statements were in wrong function. Added support for
	order in format_array_to_where_clause_sql().

	* include/functions_events.php: Added get_event(). Fixed
	print_event_type_img() which causes double printing in some cases.

	* operation/events/events.php: Added get_event_tooltip AJAX operation.
	Style correction by replacing $row with $event.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1495 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-27 12:48:05 +00:00
guruevi 3a2aa94165 2009-02-26 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/setup/setup.php: Unchecked checkboxes don't transfer any value
	so must default to 0 in order to work.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1491 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 17:17:00 +00:00
Esteban Sanchez ec7b3c558a 2009-02-26 Esteban Sanchez <estebans@artica.es>
* include/functions_events.php: Added get_events() function. Replaced
	"..." with html entity and reuse previously calculated value.

	* include/functions_reporting.php: Fixed get_agent_module_sla() to
	allow no max value to be checked. That was causing some errors on
	monitor reports.

	* operation/agentes/sla_view.php,
	operation/reporting/reporting_xml.php,
	operation/reporting/reporting_viewer.php: Do not use max value on
	monitor SLA.
	
	* operation/events/events.php: Replaced exit for return.

	* include/functions_db.php: Added support for arrays in
	format_array_to_update_sql() that will be transformed to a "IN ()"
	statement.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1489 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 15:34:14 +00:00
Esteban Sanchez 96e53bd4e0 2009-02-26 Esteban Sanchez <estebans@artica.es>
* include/config_process.php, index.php: Added generated timer count as
	a HTML comment at the bottom.

	* include/functions_ui.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1488 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 12:09:21 +00:00
Esteban Sanchez c7d84b29c2 2009-02-26 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added support for queries elapsed time in
	print_database_debug().

	* operation/events/events.php: Style correction.

	* reporting/fgraph.php: Allow boolean graphics to get a starting date.

	* general/footer.php: Use config['debug'] instead of developer_bypass.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1487 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 09:08:48 +00:00
Esteban Sanchez 88b817ee9b 2009-02-25 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Fixed typo that makes incorrect argument
	list in debug().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1486 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-25 15:15:14 +00:00
guruevi 0fa74b5974 2009-02-25 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php: Thanks to Esteban's functions found out
	some bad performers. Fixed it
	
	* include/auth/ldap.php: Calling get_system_time() 800 times is too much.
	Moved it to a variable.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1485 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-25 15:04:26 +00:00
Esteban Sanchez cbbe1a0b1f 2009-02-25 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Do not show errors on sql_error_handler()
        if debug flag is active. Removed return flag to print_database_debug() 
        because it was causing memory allocation errors. For the same reason,
        the table is printed each 100 elements.

        * index.php: Run print_database_debug() after the flush.

        * include/functions.php: Removed deprecated pandora_debug()



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1484 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-25 13:48:40 +00:00
Esteban Sanchez b6a6b3fe90 2009-02-25 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added database debug support. If the debug
	flag in config is set, a table with all the queries done in a page is
	shown. To do so, add_database_debug_trace() and print_database_debug()
	were added.

	* include/functions_ui.php: Added debug() function which shows a
	given variable content and a traceback which can be toggled to make
	developers life easier.

	* index.php: Print database debug table.

	* include/styles/pandora.css: Styles for debug functionallity.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1483 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-25 12:24:06 +00:00
guruevi 1845c221aa 2009-02-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Fixed where clause
	
	* images/groups_small/printer.png: Added printer icon to groups since
	it might be useful to create a separate printer group

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 17:32:29 +00:00
guruevi f7702dd084 2009-02-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/config_process.php: Added compact_header. If you want to
	save on server hits and increase performance (slightly) enable it.
	Page loads (on my system) ~500ms faster and feels faster since it 
	doesn't block the page while waiting on css and javascript

	* include/functions_agents.php: Moved process_manage_config from 
	configurar_agente.
	
	* include/functions_ui.php: Added compact_header functionality
	
	* include/functions_html.php: Fixed some id issues which caused
	manage_config to not work correctly. id's can't have [] in them.
	Also fixed the comparison for numeric (string to int) comparisons
	
	* include/styles/pandora.css: Moved @import to functions_ui.php
	
	* godmode/agentes/manage_config.php: Fixed ids and some validation
	
	* godmode/agentes/configurar_agente.php, godmode/agentes/agent_manager:
	Fixed HTML output and use functions for images
	
	* godmode/setup/setup.php: Added compact_header to setup

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1480 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 16:31:02 +00:00
Esteban Sanchez cfcb9c24ef 2009-02-24 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Fixed a bug in
	format_array_to_where_clause_sql() when only offset and limit where
	given. A new parameter was added to solve it, so the behaviour is a
	bit different now (take a look to the doc examples). Changes were also
	done in other functions to reflect this new situation.

	* include/functions_alerts.php, include/functions_modules.php: Updated
	to changes in format_array_to_where_clause_sql()

	* include/functions_ui.php: Added a class to each link of the
	paginator. Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1479 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 16:24:02 +00:00
Esteban Sanchez 12e7f2dfc6 2009-02-24 Esteban Sanchez <estebans@artica.es>
* include/auth/mysql.php: Added get_user_id(). Removed field check on
	create_user(). Allow to pass an structure to the functions and use
	get_user_id() when needed.

	* include/auth/ldap.php: Added get_user_id().

	* include/functions_db.php: Improved get_group_users() to return real
	users instead of tusuario_perfil values. Also a filter parameter was
	added.
	
	* include/functions_messages.php: Use get_user_id() on
	create_message_group() because get_group_users() now returns
	user structures. Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1477 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 11:20:34 +00:00
Esteban Sanchez 206804a9e1 2009-02-24 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added get_db_row_filter(). Added
        documentation for get_db_all_rows_sql_filter().
        Removed get_db_array() since it was already implemented in
        get_db_value_filter() and did not matches the code guidelines. Style 
        correction of variable names.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1476 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 10:20:15 +00:00