Commit Graph

292 Commits

Author SHA1 Message Date
raulmateos a34df658ff 2010-05-06 Raul Mateos <raulofpandora@gmail.com>
* include/config*.php: Updated year. Updated build.
	* include/functions_*.php: Updated year. Clean Code.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2674 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-05-06 15:53:38 +00:00
Ramon Novoa c62bf12718 2010-04-29 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php: Added TTO, TTR, MTBF and MTTR
          reports.

        * include/functions_db.php: Fixed get_previous_data and wrote
          get_next_data.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2639 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-29 15:31:14 +00:00
mdtrooper 8dddb86702 2010-04-28 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: added function "alert_reporting_agent"
	for make the html list of agent alerts, added function
	"alert_reporting_module" for same thing before function instead it is for
	modules. In report item "event_report_agent" fixed the output. Added report
	items "alert_report_module", "alert_report_agent", "url" and
	"database_serialized".
	
	* include/functions_db.php: added function "get_agent_alert_fired" for
	to extract the alerts fired of agent, and added "get_module_alert_fired"
	for alerts fired of module.
	
	* godmode/reporting/reporting_builder.php,
	godmode/reporting/reporting_builder.item_editor.php: fixed the renamed
	column "row_separator" of previus commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2631 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-28 19:44:04 +00:00
mdtrooper 6b358c0e10 2010-04-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: in function
	"get_agents_detailed_event_reporting" fixed param for $id_agents to array
	type, fixed the loop to save events and fixed in the loop to make the table.
	Added the function "get_module_detailed_event_reporting" for events of any
	module. In function "render_report_html_item" remove trace function, added
	the render option "event_report_module" for render list of events of any
	module.

	* include/functions_db.php: added function "get_module_events".
	
	* operation/gis_maps/ajax.php: cleaned source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2619 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-27 17:43:32 +00:00
zarzuelo ce9fe70b91 2010-04-27 Sergio Martin <sergio.martin@artica.es>
* include/functions_db.php
          operation/gis_maps/ajax.php
          godmode/agentes/planned_downtime.php
          godmode/agentes/manage_config_remote.php: Fixed many all group
          control from 1 to 0 value. Remove deprecated functions
          list_group() and list_group2() from functions_db.php




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2618 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-27 15:42:49 +00:00
mdtrooper 1bbb194939 2010-04-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: added render html for "text" and "sql"
	item.
	
	* include/ajax/reporting.ajax.php: added request for the custom SQL.

	* include/functions_db.php: in function "get_db_value_filter" fixed the
	field when the field is escape string.

	* godmode/reporting/reporting_builder.item_editor.php: added the preview of
	custom SQL.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2617 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-27 15:25:32 +00:00
zarzuelo d9088a6eb4 2010-04-22 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php
       include/functions_agents.php
       include/functions_db.php: Change the way of validate
        the All group. Now the group All has id_group = 0
        and is not on the database

       * extensions/module_groups.php: Remove the All 
        group row from the table. Inprove the table style

       * operation/agentes/status_monitor.php
       operation/agentes/alerts_status.php
       operation/agentes/estado_agente.php
       operation/agentes/exportdata.php
       operation/agentes/networkmap.php 
       godmode/agentes/modificar_agente.php
       godmode/agentes/planned_downtime.php: Changed the
        All group on combos from 1 to 0



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2588 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-22 16:51:23 +00:00
slerena 2696b815e5 2010-04-21 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: Added function render_report_html_item()
    to render a given report element in HTML format. Fixed a small problem in
    SUM report type (int truncate invalidate most of SUM reports when not using
    a _inc data type).

    * include/functions.php: Updated all "is_module_xxx" from using ereg 
    (deprecated) to use preg_match.

    * include/functions_db.php: Moved reporting functions 
    get_agentmodule_data_average(); get_agentmodule_data_max(), 
    get_agentmodule_data_min() and  get_agentmodule_data_sum() from here
    to functions_reporting.php.

    * godmode/groups/group_list.php: Removing a group put all agents assigned
    to that group in other available group (choosen in realtime).

    * AUTHORS: Authors file update, was very outdated!.

    * operation/agentes/estado_generalagente.php: Fixed bug #2990430.

    * operation/reporting/reporting_viewer.php: Some changes for better 
    structuration of the HTML reporting viewer. Removed big chunk of code
    and put in function_reporting/render_report_html_item() function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2583 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-21 17:52:08 +00:00
mdtrooper 5df55a5ace 2010-04-19 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: rollback to the fixed (r2563) in the function
	"get_db_value_filter".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2577 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-19 12:41:45 +00:00
mdtrooper b38ab821f2 2010-04-14 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fixed bug in the function
	"format_array_to_update_sql" when the field yet escaped.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2565 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-14 16:11:49 +00:00
mdtrooper f36696ebab 2010-04-14 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fixed bug in the function "get_db_value_filter"
	when the field's name is a reserve word of mysql crash.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2563 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-04-14 15:14:30 +00:00
mdtrooper c83b34089b 2010-03-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: in function "get_user_groups" add third
	parameter $returnAllGroup by true for default. Fix in the function
	"get_group_agents" now if pass the id_group as 0 or 1 (all group) search
	for all groups.
	
	* godmode/agentes/agent_manager.php: use the new parameter for function
	"get_user_groups" for don't show the all group.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-04 16:50:48 +00:00
slerena ab2dd5a5be 2010-03-03 Sancho Lerena <slerena@artica.es>
* (A lot of files): Updated include("config.php") and replaced
        by global $config.

        * functions_db.php, functions_html.php: Fixed way to get data
        from the hash instead from the array.  




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2459 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-03 17:10:37 +00:00
Ramon Novoa 8fc2d2a09f 2010-03-03 Ramon Novoa <rnovoa@artica.es>
* include/functions_db.php: Use mysql_fetch_assoc instead of
          mysql_fetch_array to avoid duplicate results (hash and array).

        * godmode/alerts/configure_alert_template.php: Added 'matches_value'
          support to 'onchange' alerts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2457 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-03 13:13:11 +00:00
slerena d5a369870d 2010-03-01 Sancho Lerena <slerena@artica.es>
* include/styles/menu.css,
        include/functions_db.php,
        operation/menu.php: New code for give support for Metaconsole. Added nocache
        settings in some SQL main functions to avoid globally usage of SQL cache.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2439 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-01 18:46:19 +00:00
slerena e79bc4095c 2010-02-01 Sancho Lerena <slerena@artica.es>
Changes ported from 3.0 branch.

        * include/javascript/pandora_visual_console.js: Thiner lines in maps.

        * include/functions_visual_map.php: Fixed several issues in visual maps
        (bad hierarchy status color, limited depth for recursion, get unknown
        for agents and modules, and line color is now always associated to
        parent status) and non-status elements like labels, graphs or progress
        bars now doesnt propagate module status to parents.

        * include/functions_db.php: Added parameter to get_db_all_rows_sql() to
        avoid use of cache. Function process_sql() was not properly checking if
        cache usage was disabled and was always using cache. Added support for
        checking unknown status in get_agentmodule_status() function.

        * extensions/dbmanager/dbmanager.css,
          extensions/dbmanager.php: Fixed width of textarea.

        * operation/events/events.php: Fixed bug #2943907.

        * operation/agentes/exportdata.php: Fixed problem exporting CSV
        when data to export is TOO big, using an internal cache to read
        data.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2327 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-01 19:22:34 +00:00
mdtrooper be35a2a1ee 2010-01-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add function "deleteMap" for to delete the map
	and other rows in tables related.
	
	* godmode/gis_maps/index.php: use the "deleteMap" in link of delete map.
	
	* include/functions_db.php: add function "clean_cache" for clean the
	problematic (sometimes) cache.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2317 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-28 17:58:30 +00:00
Ramon Novoa 612c34185d 2009-12-23 Ramon Novoa <rnovoa@artica.es>
* include/functions_db.php: Fixed avg. calculation in custom reports.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2238 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-23 17:36:32 +00:00
mdtrooper d40c64d203 2009-12-23 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fix warning messages when pass only group as
	string or integer in the function "isAllGroups".
	* include/functions_reporting.php: fix ambiguous colummn in query in the
	function "get_group_stats".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2233 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-23 11:48:19 +00:00
mdtrooper de5ee31aa4 2009-12-22 Miguel de Dios <miguel.dedios@artica.es>
* include/config_process.php, include/functions_db.php: fix alert message
	when the history DB is'nt setup.
	
	* general/header.php: fix alert message when the custom logo didn't exit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2231 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-22 15:46:54 +00:00
mdtrooper 7458f10b93 2009-12-22 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: add debug function "f2str" that return as
	string any call of function, for example "var_dump".
	
	*include/fgraph.php: into function "grafico_modulo_boolean" re-add alarms,
	clean source code and show again the flash graph.
	
	*include/functions_db.php: fix the access to IP client, it used very
	deprecate var, that clean of notice php message of error for this cause.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2229 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-22 12:56:46 +00:00
Ramon Novoa 16eb0d2b96 2009-12-18 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php: Fixed SLA calculation. Was not working.

        * include/functions_fsgraph.php: Fixed bug #2913813.

        * include/functions_config.php, include/config_process.php,
          include/fgraph.php, include/functions_db.php,
          operation/events/export_csv.php, operation/agentes/export_csv.php,
          operation/agentes/datos_agente.php, godmode/menu.ph: Added history
          database support.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2214 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-18 09:52:25 +00:00
mdtrooper 703b222d8a 2009-12-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: change the function
	"get_db_all_row_by_steps_sql", now it support more connection with
	parameter $new for new conection and $result for connection.
	
	* operation/events/export_csv.php: rewrite to adapt the new 
	"get_db_all_row_by_steps_sql".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2190 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-10 17:46:25 +00:00
mdtrooper 4dc6aa99be 2009-12-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: in function "create_user_profile" add the
	parameter $assignUser to set assign user in table. And add the function
	"get_db_num_rows" that return the num of rows get from SQL. 
	
	* include/functions_api.php: add functions for new calls in the API,
	"set_new_user" create new user, "set_delete_user" delete a user,
	"set_add_user_profile" attach a user into group and profile,
	"set_delete_user_profile" deattach a user into group and profile,
	"set_new_incident" add new incident, "set_new_note_incident" add into
	new note into incident.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2180 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-08 20:21:16 +00:00
mdtrooper a18ddccdc3 2009-12-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: add in "get_db_all_rows_filter" new parameter
	$returnSQL for return the string formated SQL instead the data. And add new
	function "get_db_all_row_by_steps_sql" that return row by row the data of
	query.
	
	* operation/events/export_csv.php: fixed the memory overload when try save
	into CSV a 10000 events or more, now use "get_db_all_row_by_steps_sql" for
	extract row by row the data.
	Fixes: 2859758



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2175 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-08 09:53:20 +00:00
mdtrooper dd26a2649f 2009-12-07 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_modules.php: in the function "create_agent_module" add
	new parameter $disableACL (by default false) for use in API.
	
	* include/functions_api.php: add new functions for add new features to
	api, functions: "set_new_agent" create agent, "set_delete_agent"
	delete agent, "set_create_network_module" create network module,
	"get_module_data" get module data as CSV format in a period time,
	"get_graph_module_data" get a image file of module data in a period time.
	
	* include/functions_db.php: in function "delete_agent" add new parameter
	$disableACL (by default false) for use in API for example.
	
	* operation/agentes/datos_agente.php: clean source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2170 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-07 18:00:00 +00:00
slerena 8e9e98e92c 2009-12-1 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: Fixed some innacurate queries, skipping 
	non-init modules, async modules and keepalive modules. 

	* include/functions_servers.php: Improved LAG calculation algorithm, now
	is VERY precise. Added performance meter for local & remote checks.

	* include/config_process.php: error_reporting() has better default values
	now (skipping notices and non-important messages) for pandora_console.log

	* include/functions_agents.php: Fixing a problem in an alert SQL on function 
	get_agent_alerts_simple().

	* include/functions_db.php: get_server_info() moved to functions_servers.php

	* operation/events/events.php: Fixed a bug with pagination and other bug with
	user validated events search.

	* operation/agentes/status_monitor.php: Better management of async modules,
	non init and unknown modules. Now works as expected.

	* operation/agentes/estado_monitores.php: Removed blank space between icons to
	let table row more compact.

	* operation/agentes/tactical.php: Added performance information. Removed some
	information (not used) from snmp and recon servers.

	* general/header.php: Latest changes here don't work as expected. Rewritten
	and now works fine (enterprise/open logo in header).

	* godmode/admin_access_logs.php: Fixed pagination bug in tracker. Added table
	layout with two alternate colors (rowOdd method).

	* operation/servers/view_server.php,
	* godmode/servers/modificar_server.php: Added include to functions_servers.php
	to use the new server functions, moved from functions_db.php.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2151 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-01 23:10:00 +00:00
slerena 2dc48899a4 2009-11-31 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: SLA readjust to be used in SLA view.

	* include/config_process.php,
	* include/functions_config.php: Added support for custom_logo option.

	* include/help/en/help_agent_access.php,
	include/help/en/help_custom_logo.php: New help topics.

	* include/functions_agents.php: Replaced audit_db with pandora_audit().

	* include/functions_db.php: pandora_audit() will replace audit_db().

	* operation/agentes/sla_view.php: now show render ok modules with min_critical
	defined and uses to calculate automatically a SLA based on it's critical
	definition.

	* operation/messages/message.php: Message view was not working!. Fixed
	
	* Some new images added:
		images/people_2.png
		images/MiniLogoArtica.jpg
		images/pandora_header_logo_enterprise.png
		images/custom_logo
		images/custom_logo/sourceforge.png
		images/custom_logo/artica_logo.png
		images/custom_logo/pandora_logo_head.png
		images/pandora_header_logo.png
		images/people_1.png: 

	* general/header.php: Changes to add new custom logo feature and replace
	logos with a image instead text.

	* godmode/setup/setup_visuals.php: now is possible to choose a custom logo
	to be displayed in header.

	*operation/agentes/ver_agente.php,
	* godmode/agentes/configurar_agente.php: Tabs do not have text at sides. This
	avoid problems in other languages different than english with long text strings.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2148 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-30 17:38:45 +00:00
slerena b8d839b5c7 2009-11-27 Sancho lerena <slerena@artica.es>
* operation/menu.php: User section has no ACL check, always can be seen.

	* index.php: Added suppor for user-defined custom language (this code was
	on my disk for 3 months, pending to be commited!).

	* include/functions_db.php,
	* include/functions_agents.php,
	* godmode/alerts/alert_list.php,
	* godmode/agentes/modificar_agente.php, 
	* godmode/agentes/configurar_agente.php: Added audit calls to several 
	management operations who don't have or have insufficient audit info.

	* godmode/users/configure_user.php: Fixed several annoyings bugs. Added
	custom language support, and added more audit info on management operations.

	* godmode/users/user_list.php: More audit info.

	* include/config_process.php: Add new debug option to render error log to
	/pandora_console.log. Also set timezone if not defined (this makes warnings
	on several PHP 5.x setups). Added user custom language support.

	* include/functions_events.php: More audit info. Fixed problems with HTML
	encoding render.

	* functions_io.php: Some cleaning.

	* include/functions_messages.php: Fixed problems with HTML
	encoding render.

	* functions_ui.php: Fixed problems with HTML encoding render in 
	print_string_substr() function.

	* auth/mysql.php: is_user_admin() functions seems to be broken ¿?¿!. Fixed.

	* styles/pandora.css: removed green colored left border in default style.

	* message.php, incident*:  Fixed problems with HTML encoding render.

	* user.php: Better ACL check before let user to view/edit another user.

	* user_edit: Removed some un-used form fields, some arrangements in layout,
	and FIXED forever problems with password change (new code written).  

	* users/user_statistics.php: Now user can see its own audit records.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2139 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-27 20:02:12 +00:00
mdtrooper 1c9bc029a7 2009-10-26 Miguel de Dios <miguel.dedios@artica.es>
* pandora_console/include/functions_api.php,
	pandora_console/include/api.php: new feature, API to call by format url for
	values or CSV list of values to connect Pandora with your or other
	aplications. Please see the wiki for more information.
	* pandora_console/include/functions_agents.php,
	pandora_console/godmode/setup/setup.php: add the field ACL IP list for
	access API and change the function "update_config_value" for divide in
	chunks the list of IPs and save in serveral rows (if necesary). And change
	the function "process_config" to paste the chunks of rows in one config
	item. 
	* pandora_console/include/functions_config.php,
	pandora_console/include/functions_db.php: changes for engage the
	API with Pandora Console. The function "get_agent_alerts_simple" add
	parammeter "allModules" return all modules (disabled and enabled). The
	function "get_group_agents" add the parameter "noACL" for engage the API
	call.
	* pandora_console/godmode/agentes/agent_manager.php: fix typo and ident
	source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2051 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-26 16:35:34 +00:00
slerena 2775251fe7 2009-10-20 Sancho Lerena <slerena@artica.es>
* include/functions_db.php: Fixed bug #2859919 (Transaction lock timeout).

        * include/error*: Fixed a formatting error and added better error
        message when mysql is up but credentials doesn't work.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2034 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-19 08:39:45 +00:00
slerena 8f242e9972 2009-10-17 Sancho Lerena <slerena@artica.es>
* include/functions_db.php: Updated description for ACL flags.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2027 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-16 14:27:19 +00:00
slerena 4b27c2e0bf 2009-10-13 Sancho Lerena <slerena@artica.es>
Upps, Tuesday #13, bad day for a last commit before launch RC1 ! :-S
	
	* general/logon_ok.php: Fixed ugly format of table showing last activity 
	(has a too wide table width).
	
	* godmode/admin_access_logs.php: Removed that crappy div fashion code and
	replaced by old and reliable table-based-code :-) to fix the mess with the
	pagination.
	
	* godmode/agentes/configurar_agente.php: fixed problem with postprocess 
	values very bug (like 0.0000000123), parameter is now passed as string 
	because PHP is passing the value as scientific notation and mYsql don't 
	understand that.
	
	* operation/agentes/exportdata.php, 
	* operation/search_results.php, 
	* godmode/reporting/map_builder.php, 
	* godmode/agentes/agent_manager.php,
	* godmode/reporting/graph_builder.php,
	* godmode/agentes/modificar_agente.php: Added non-case search SQL code for make 
	agent searches non case sensitive (nombre COLLATE utf8_general_ci LIKE...)
	
	* module_manager_editor_common.php: More size for postprocess field.
	
	* pandora_console/godmode/alerts/configure_alert_action.php: More width for
	field2 in action form.
	
	* godmode/alerts/configure_alert_command.php: Command field has more width
	and added a help icon for macro subtitutions.
	
	* include/functions_db.php: get_agent_name() now defaults to non uppercase
	the agent names, because 3.0 has case sensitive agent names, and all
	data must show the real Case.
	
	* include/styles/pandora.css: removed uppercase transition for menu items
	and agent tabs.
	
	* operation/agentes/estado_agente.php: Agent is not shown in uppercase 
	anymore.
	
	* operation/agentes/estado_generalagente.php: Agent name and parent name 
	is not in uppercase. OS version shows only last 15 characters or full string
	if strlen() < 15.
	
	* operation/agentes/status_monitor.php: Agent name is not in uppercase
	 anymore.
	 


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2015 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-13 18:59:48 +00:00
mdtrooper 93d44abdfb 2009-09-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fix the delete the conf and md5 files of agent
	to delete, before try delete conf and md5 files with name in uppercase.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1978 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-25 16:16:46 +00:00
mdtrooper 30c99f70cc 2009-09-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php, include/functions_agents.php: cleanup
	sourcecode, and important optimize, because the old querys was very huge
	when the query have consult with all agent ids. That affect when login
	as admin into Pandora Console in systems with few resources (more or
	less 1Gb RAM in a desktop computer).
	* include/functions_db.php: add function "isAllGroups" that test if the
	array pass as parameter is all groups in DB, and return true o false. And
	cleanup source code.
	Fixes: 2824327



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1949 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-16 13:10:49 +00:00
mdtrooper b830a2547a 2009-09-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: cleanup the source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1948 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-16 09:11:25 +00:00
mdtrooper 8aaa4f5d04 2009-09-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: add function "get_db_value_sql" for use in
	alert_list.php and in futures uses. This function returns the first column
	and first row from a query pass as parameters.
	* godmode/alerts/alert_list.php: fix bug that you can't add new alerts.
	Fixes: 2859264



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1943 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-15 13:56:48 +00:00
mdtrooper 89646e9549 2009-09-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: add new function "get_all_groups", this function
	return all groups.
	* operation/agentes/ver_agente.php: add another code block for to respond
	new ajax request (new select in form massive_edit_modules.php).
	* godmode/agentes/massive_edit_modules.php: Fix in part bug #2848951 in
	tracker sourceforge, rest things for to do is add more fields.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1922 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-09 10:39:24 +00:00
mdtrooper 9a91e5ac79 2009-08-01 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: add external Module group "Not assigned"
	because there are modules with this module group as agent software.
	* extensions/module_groups.php: fix bug that the count are very wrong. And
	add the link to Full list of monitors with filter.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1896 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-01 11:43:30 +00:00
mdtrooper d4a785fc2f 2009-08-28 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: add function get_all_model_groups for to
	get all rows of table "tmodule_group".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-28 16:45:49 +00:00
Ramon Novoa e192c5eb18 2009-08-27 Ramon Novoa <rnovoa@artica.es>
* include/functions_db.php,
          godmode/agentes/modificar_agente.php,
          godmode/agentes/manage_config_remote.php,
          godmode/agentes/agent_manager.php: Remote config .conf and .md5 files
          are now stored in different subdirectories.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-27 17:37:29 +00:00
mdtrooper 27fbab8686 2009-08-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_menu.php, include/functions_html.php,
	include/functions_events.php, include/functions_messages.php,
	include/functions_modules.php, include/functions_exportserver.php,
	include/functions_reporting.php, include/functions_filemanager.php,
	include/pchart_graph.php, include/pandora_graph.php, include/auth/ldap.php,
	include/auth/mysql.php, include/config.inc.php,
	include/functions_networkmap.php, include/functions_servers.php,
	include/functions_network_profiles.php, include/gettext.php,
	include/functions_network_components.php, include/functions_visual_map.php,
	include/fgraph2.php, include/Image/image_functions.php,
	include/functions_config.php, include/config_process.php,
	include/functions_ui.php, include/htmlawed.php,
	include/functions_custom_graphs.php, include/fgraph.php,
	include/functions_incidents.php, include/functions.php,
	include/functions_agents.php, include/functions_db.php,
	include/functions_themes.php, include/streams.php,
	include/functions_fsgraph.php, include/functions_alerts.php,
	include/functions_reports.php, include/functions_extensions.php,
	include/functions_ui_renders.php: change or add the subpackage in phpdoc
	comment blocks for to organize more the result phpdoc files. Start to
	document undocument functions. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1882 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-26 15:37:47 +00:00
mdtrooper ff52bf27ed 2009-08-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_menu.php, include/functions_html.php,
	include/functions_events.php, include/functions_messages.php,
	include/functions_modules.php, include/functions_exportserver.php,
	include/functions_reporting.php, include/functions_filemanager.php,
	include/pchart_graph.php, include/pandora_graph.php, include/auth/dev.php,
	include/auth/ldap.php, include/auth/mysql.php, include/config.inc.php,
	include/functions_networkmap.php, include/functions_servers.php,
	include/FusionCharts/FusionCharts_Gen.php,
	include/FusionCharts/FusionCharts.php,
	include/functions_network_profiles.php, include/gettext.php,
	include/functions_network_components.php, include/functions_visual_map.php,
	include/fgraph2.php, include/Image/image_functions.php,
	include/functions_config.php, include/help/en/help_plugin_parameters.php,
	include/help/en/help_snmpcommunity.php, include/help/en/help_wmiquery.php,
	include/help/en/help_postprocess.php,
	include/help/en/help_prediction_source_module.php,
	include/help/en/help_date_format.php, include/help/en/help_recontask.php,
	include/help/en/help_alert-matches.php, include/help/en/help_tcp_send.php,
	include/help/en/help_wmifield.php, include/help/en/help_duplicateconfig.php,
	include/help/en/help_agent_status.php,
	include/help/en/help_manage_alerts.php, include/help/en/help_wmikey.php,
	include/help/en/help_alert_type.php,
	include/help/en/help_network_component.php,
	include/help/en/help_time_stamp-comparation.php,
	include/help/en/help_eventview.php, include/help/en/help_timesource.php,
	include/help/en/help_alert_validation.php,
	include/help/en/help_map_builder.php,
	include/help/en/help_alert_recovery.php,
	include/help/en/help_module_type.php,
	include/help/en/help_planned_downtime.php,
	include/help/en/help_serverlag.php, include/help/en/help_alerts.php,
	include/help/en/help_snmpwalk.php,
	include/help/en/help_module_definition.php,
	include/help/en/help_plugin_definition.php,
	include/help/en/help_wminamespace.php, include/help/en/help_snmpoid.php
	include/help/en/help_manageconfig.php,
	include/help/es/help_alert_validation.php,
	include/help/es/help_plugin_parameters.php,
	include/help/es/help_snmpcommunity.php, include/help/es/help_wmiquery.php,
	include/help/es/help_map_builder.php, include/help/es/help_postprocess.php,
	include/help/es/help_date_format.php,
	include/help/es/help_alert_recovery.php,
	include/help/es/help_prediction_source_module.php,
	include/help/es/help_module_type.php,
	include/help/es/help_planned_downtime.php,
	include/help/es/help_alert-matches.php, include/help/es/help_recontask.php,
	include/help/es/help_alerts.php, include/help/es/help_serverlag.php,
	include/help/es/help_snmpwalk.php,
	include/help/es/help_module_definition.php,
	include/help/es/help_tcp_send.php, include/help/es/help_duplicateconfig.php,
	include/help/es/help_wmifield.php, include/help/es/help_manage_alerts.php,
	include/help/es/help_wmikey.php, include/help/es/help_plugin_definition.php,
	include/help/es/help_alert_type.php, include/help/es/help_snmpoid.php,
	include/help/es/help_wminamespace.php,
	include/help/es/help_network_component.php,
	include/help/es/help_time_stamp-comparation.php,
	include/help/es/help_manageconfig.php, include/help/es/help_timesource.php,
	include/config_process.php, include/functions_ui.php, include/htmlawed.php,
	include/functions_custom_graphs.php, include/fgraph.php,
	include/functions_incidents.php, include/functions.php,
	include/functions_agents.php, include/functions_db.php,
	include/functions_themes.php, include/streams.php,
	include/functions_fsgraph.php, include/functions_alerts.php,
	include/functions_reports.php, include/functions_extensions.php,
	include/functions_ui_renders.php: change comments blocks for delete the
	warnings to construct phpDoc Files, give a struct and order in the
	phpDoc files.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-25 17:39:28 +00:00
slerena 7c3014607c 2009-08-19 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: A missing table was necessary to be added to allow recon
	to make scans depending on TCP ports profile (recon_ports field).

	* manage_recontask.php, manage_recontask_form.php: Added recon_port field
	to recon management system. Added some links and some aditional formatting.
	
	* include/funcions_db.php: Improved format_array_to_where_clause_sql()
	to accept condicionals like > and < in the array field.
	
	* operation/servers/view_server_detail.php: Quick link to recontask server
	admin.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1867 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-19 19:38:29 +00:00
mdtrooper 6a6ee100e5 2009-08-17 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php, godmode/alerts/configure_alert_compound.php:
	add function "get_agent_module_id" for optain id_agent from id_agent_module.
	And add new column in correlation condition that containts the name (and
	link) of agent. And change ajax of page for show this column in the search
	form in the bottom.
	Fixes: 2838000



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1855 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-17 16:48:01 +00:00
mdtrooper ec9e25bce6 2009-08-14 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/agent_manager.php, godmode/agentes/massive_config.php,
	godmode/alerts/alert_list.php, godmode/reporting/graph_builder.php,
	godmode/reporting/map_builder.php, include/functions_db.php,
	include/functions_html.php, operation/agentes/exportdata.php,
	operation/agentes/ver_agente.php: very changes for add input text
	autocomplete with ajax jquery for agent input in several forms. Add to form
	this exportdata, graph_builder, map_builder.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1849 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-14 16:38:57 +00:00
mdtrooper f9307a4baa 2009-06-25 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: optimice the search agent in DB, quit option
	to search for description.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1772 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-25 15:47:36 +00:00
jorgonzalez 6b6b9cc52e 2009-06-25 Jorge Gonzalez <jorgegonz@artica.es>
* include/functions_db.php, operation/snmpconsole/snmp_view.php,
	* operation/agentes/status_monitor.php,
	* operation/agentes/estado_grupo.php,
	* operation/agentes/estado_ultimopaquete.php,
	* operation/agentes/alerts_status.php,
	* operation/agentes/estado_generalagente.php,
	* operation/agentes/estado_agente.php,
	* operation/agentes/exportdata.php,
	* operation/agentes/estado_monitores.php,
	* operation/agentes/tactical.php, operation/agentes/networkmap.php,
	* operation/reporting/reporting_viewer.php, reporting/fgraph.php,
	* general/pandora_help.php, general/logoff.php,
	* general/logon_failed.php, godmode/setup/setup.php,
	* godmode/setup/links.php, godmode/snmpconsole/snmp_alert.php,
	* godmode/profiles/profile_list.php, godmode/db/db_main.php,
	* godmode/db/db_audit.php, godmode/db/db_refine.php,
	* godmode/db/db_info.php, godmode/db/db_event.php,
	* godmode/db/db_purge.php,
	* godmode/agentes/massive_delete_agents.php,
	* godmode/agentes/massive_config.php,
	* godmode/agentes/massive_delete_alerts.php,
	* godmode/agentes/massive_edit_modules.php,
	* godmode/agentes/module_manager.php,
	* godmode/agentes/massive_delete_modules.php,
	* godmode/agentes/configurar_agente.php,
	* godmode/agentes/planned_downtime.php,
	* godmode/modules/manage_network_templates_form.php,
	* godmode/modules/manage_network_components.php,
	* godmode/reporting/map_builder.php,
	* godmode/reporting/map_builder_wizard.php,
	* godmode/servers/manage_export.php,
	* godmode/servers/manage_export_form.php,
	* godmode/servers/plugin.php, godmode/servers/modificar_server.php,
	* godmode/servers/manage_recontask_form.php,
	* godmode/alerts/alert_compounds.php, godmode/menu.php: Some
	* translatable strings reused to simplify i18n work.

	* 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@1768 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-25 08:01:18 +00:00
slerena 034b67aaa5 2009-06-24 Sancho Lerena <slerena@artica.es>
* operation/agentes/estado_generalagente.php,
        godmode/setup/setup.php: Added support for new option for have enabled or
        disabled the agent access data/graphs.

        * include/functions_db.php: Modified the agent_delete function to don't delete
        all data, just delete agent and mark modules for deletion. This increase a lot
        the massive agent deletion. This fixes bug #2809015.

        * include/config_process.php: Updated version/build.

        * include/functions_config.php: Added autoupdate to config check for
        non-existant values. Added new agentaccess config token.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1767 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-24 17:03:08 +00:00
Esteban Sanchez d4c04b4fdf 2009-06-09 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/agent_manager.php: Added autocomplete support
        to parent selection, which is no a dropdown anymore. Partial fix for 
        #2707924.

        * godmode/agentes/configurar_agente.php: Parent data is now the
        agent name, not the agent id.

        * include/javascript/jquery.ajaxqueue.js,
        include/javascript/jquery.autocomplete.js,
        include/javascript/jquery.bgiframe.js: Added to repository.
        Autocompleter jQuery plugin.

        * include/styles/pandora.css: Added autocomplete styles.

        * include/functions_db.php: Added more support for search
        parameter to get_group_agents() so you can pass a filter array now.

        * operation/agentes/estado_agente.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1741 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-09 11:25:47 +00:00
slerena 9d3c86bdde 2009-06-08 Sancho Lerena <slerena@artica.es>
* Massive header update.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1738 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-08 18:26:14 +00:00
Esteban Sanchez 3f6e55854a 2009-05-28 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Return -1 on get_agent_status() on case
	the agent last contact has exceed the agent interval.

	* include/functions_visual_map.php: Call get_agent_status() when
	an element is to monitor a whole agent. Fixes #2761712



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1720 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-28 13:28:36 +00:00
Esteban Sanchez d9fbcdf285 2009-05-27 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: return_status_agent() renamed to
	get_agent_status(). Improved get_agentmodule_status() documentation
	and code.

	* include/functions_visual_map.php: Styles correction. Use a switch
	instead of many ifs. Fixed get_layout_status() so the bad values have
	preference. Fixes #2787197.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1708 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-27 08:00:21 +00:00
Esteban Sanchez 960c3ddebd 2009-05-21 Esteban Sanchez <estebans@artica.es>
* include/functions_network_components.php: Added to repository.
	Functions relative to network components moved here. Added
	create_network_component(), update_network_component() and
	delete_network_component().

	* include/functions_db.php: Removed
	gve_network_component_group_name(), duplicated in
	functions_network_components.php.

	* include/functions_modules.php: Moved functions relative to
	network components to functions_network_components.php.

	* godmode/modules/manage_nc_groups_form.php,
	godmode/modules/manage_network_templates_form.php,
	godmode/modules/manage_nc_groups.php: Use
	get_network_component_group_name() instead of deprecated
	give_network_component_group_name().

	* godmode/modules/manage_network_components.php: Rewritten
	to use pandora functions. Added pagination and better filtering
	and UI.

	* godmode/modules/manage_network_components_form_network.php,
	godmode/modules/manage_network_components_form_wmi.php,
	godmode/modules/manage_network_components_form.php: Some
	changes to adapt from manage_network_components file. Use
	pandora functions.

	* godmode/agentes/module_manager_editor_common.php,
	godmode/agentes/module_manager_editor.php: Include new
	functions_network_components.php file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1701 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-21 11:00:50 +00:00
guruevi ea4075e546 2009-05-19 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_incidents.php: Removed upgrade_inc13to21. An old
	function that shouldn't be there anymore.
	
	* include/functions_agents.php: Fixed documentation. Fixed some bugs in
	get_agents () when empty values were passed.
	
	* include/functions_ui.php: Added $config['ignore_callback']. Useful if
	you decide to flush the buffers (eg. to offer a download)
	
	* include/functions_db.php: Cleaned up get_db_all_rows_filter and added
	some documentation and todo's. Added get_agentmodule_data to get all
	datapoints of a module. Cleaned up get_agentmodule_data_average	
	
	* include/functions_html.php: Some situations generated a warning when alt
	wasn't specified (can't add keys on non-arrays)
	
	* include/exportdata.php: Rewritten. Added filters for group. Works using
	functions and export into HTML, CSV and Excel with the option for 
	expansion (specify the delimiter values)

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1697 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-19 19:04:43 +00:00
Esteban Sanchez 07ae5dc212 2009-05-18 Esteban Sanchez <estebans@artica.es>
* images/award_star_bronze_1.png, images/award_star_bronze_2.png,
	images/award_star_bronze_3.png, images/award_star_gold_2.png,
	images/award_star_silver_1.png, images/bullet_add.png,
	images/bullet_black.png, images/bullet_blue.png,
	images/bullet_delete.png, images/bullet_disk.png,
	images/bullet_error.png, images/bullet_go.png,
	images/bullet_green.png, images/bullet_key.png,
	images/bullet_white.png, images/bullet_wrench.png,
	images/bullet_yellow.png, images/dot_down.png, images/exclamation.png,
	images/flag_blue.png, images/flag_green.png, images/flag_yellow.png,
	images/help_small.jpg, images/lock_open.png, images/mod_udp_proc.png,
	images/newspaper.png, images/phone_sound.png, images/pixel_blue.png,
	images/plugin_disabled.png, images/plugin_enabled.png,
	images/pulpo_lupa.png, images/shield.png, images/so_beos.png,
	images/status_busy.png, images/status_online.png, images/user_female.png,
	images/user_gray.png, images/user_orange.png, images/user_red.png,
	images/webcam.png: Deleted from repository. Unused icons.

	* images/agents_group.png: Added to repository. New icon.

	* godmode/agentes/configurar_agente.php,
	operation/agentes/ver_agente.php: Replaced icon for agent group.

	* include/functions_db.php: Replaced icons for data server. Style
	correction.

	* include/functions_ui.php: Cast block_size value for sanity.
	
	* ChangeLog: Added some lines of a previous commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1692 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-18 14:57:30 +00:00
Esteban Sanchez 88604876c9 2009-05-13 Esteban Sánchez <estebans@artica.es>
* images/clean.png, images/fullscreen.png, images/local_component.png,
	images/log-out.png, images/normalscreen.png,
	images/server_export.png: Added to repository. New tango icons.

	* images/application_osx_terminal.png, images/arrow_refresh.png,
	images/asterisk_yellow.png, images/attach.png,
	images/drive_network.png, images/drive_user.png,
	images/page_white_acrobat.png, images/rainbow.png,
	images/telephone.png: Deleted from repository. Unused images.

	* images/add.png, images/application_double.png,
	images/application_edit.png, images/application.png,
	images/book_edit.png, images/calendar_view_day.png,
	images/camera.png, images/email_open.png, images/email.png,
	images/god3.png, images/group.png, images/heart.png,
	images/house.png, images/lupa.png, images/monitor.png,
	images/mouse.png, images/package.png, images/page_white_magnify.png,
	images/page_white.png, images/page_white_text.png,
	images/paste_plain.png, images/pdf.png,
	images/refresh.png, images/reporting.png, images/rosette.png,
	images/script.png, images/server_database.png, images/server.png,
	images/world.png, images/zoom.png: Updated to use tango icons.

	* general/ui/agents_list.php: Added pagination.

	* general/header.php: Logout icon replaced.

	* include/styles/pandora.css: Some styles for tabs.

	* include/functions_db.php: Changed export server icon.

	* operation/events/events.php, operation/snmpconsole/snmp_view.php,
	operation/visual_console/render_view.php,
	operation/agentes/networkmap.php: Changed fullscreen icons.

	* godmode/agentes/configurar_agente.php,
	include/functions_modules.php,
	include/functions_agents.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1686 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-13 12:29:37 +00:00
Esteban Sanchez 74c0c25b78 2009-05-04 Esteban Sánchez <estebans@artica.es>
* include/functions_agents.php: Added create_agent(), 
	
	* include/functions_db.php: Renamed dame_agente_id() to get_agent_id ().
	Added process_sql_begin(), process_sql_rollback() and process_sql_commit()
	and use MySQL functions directly because the Pandora cache was avoiding
	more than one execution.

	* include/functions_incidents.php, include/functions_messages.php,
	godmode/agentes/massive_delete_agents.php,
	godmode/agentes/massive_delete_alerts.php,
	godmode/agentes/massive_delete_modules.php,
	godmode/agentes/massive_edit_modules.php,
	godmode/db/db_purge.php,
	include/functions_events.php: Use new transaction functions.
	
	* include/functions_modules.php: Sanitize some values. Added
	create_agent_module_from_network_component(), create_agent_module()
	and get_network_component().
	
	* godmode/agentes/configurar_agente.php: Use get_agent_id() and transaction
	functions.
	
	* reporting/fgraph.php, operation/reporting/reporting_viewer.php: Use
	get_agent_id(). 
	
	* godmode/setup/file_manager.php: Removed unnecesary variable.
	
	* operation/agentes/ver_agente.php: Replaced exit with return on ajax
	operation.
	
	* include/config_process.php: Updated build number.
	
	* include/functions_network_profiles.php: Fixed documentation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1672 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-04 10:10:19 +00:00
slerena 97cc0fc556 2009-04-21 Sancho Lerena <slerena@gmail.com>
* operation/servers/view_server.php: New stats for server (threads,
	modules in queue) and new render view (more useful and with tips in head).

	* functions_db.php: Server info server[img] don't return "master" icon.
	This icon is now stored in server[master_img].



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1639 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-21 17:33:26 +00:00
Esteban Sanchez 06815860a5 2009-04-20 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/module_manager_editor.php,
	godmode/agentes/module_manager_editor_common.php,
	godmode/agentes/module_manager_editor_data.php,
	godmode/agentes/module_manager_editor_network.php,
	godmode/agentes/module_manager_editor_plugin.php,
	godmode/agentes/module_manager_editor_prediction.php,
	godmode/agentes/module_manager_editor_wmi.php,
	godmode/agentes/module_manager.php: Some fixes to allow form
	reutilization.
	
	* include/javascript/jquery.pandora.controls.js: Fixed a typo. Added 
	pandoraSelectGroup control.
	
	* include/javascript/jquery.pandora.js: Separate between auto executed code
	and document ready function.
	
	* include/javascript/pandora_modules.js: Added to repository. Functions to
	use on module editors.
	
	* include/functions_agents.php: Added get_agents().
	
	* include/functions_db.php: Added get_user_first_group(). Changed
	user_access_to_agent() parameters order.
	
	* include/functions_reporting.php: Style corrections.
	
	* include/functions_ui.php: Added doc to print_status_image(). Added 
	print_ui_agents_list() to print a list of agents with a search form and
	a lot of configuration options easily.
	
	* include/functions_ui_renders.php: Added to repository. New API for
	renders on UI components.
	
	* operation/agentes/estado_agente.php: Make table wider.
	
	* godmode/reporting/reporting_builder.php: Replaced exit with return. Use
	pandoraSelectGroup control.
	
	* godmode/servers/manage_recontask_form.php: Style corrections to fit
	Pandora styles.
	
	* godmode/servers/modificar_server.php: Removed a notice from a typo.
	
	* godmode/setup/setup.php: Fixed table data indexes. Removed javascript
	code from visual setup.
	
	* godmode/setup/setup_visuals.php: Some strings changed. Style correction.
	
	* godmode/menu.php: Added policies enterprise menu option.
	
	* images/policies.png: Added to repository.
	
	* godmode/agentes/modificar_agente.php: Style correction by using pandora
	functions.

	* godmode/agentes/massive_operations.php: Fixed tab styles that was showing
	wrong the .

	* godmode/agentes/manage_config_remote.php: Changes in
	user_access_to_agent()

	* general/ui/agents_list.php: Added to repository. Reusable render for an
	agent list.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1632 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-20 14:00:27 +00:00
Esteban Sanchez 80108d54e6 2009-04-13 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/agent_manager.php: Fixed an error when an agent was
	created without name. Added support for new server assignment via server
	name instead of lot of comboboxes. Added os preview.
	
	* godmode/agentes/configurar_agente.php: Added support for new server
	assignment via server name. Do not show tabs on creation mode. Some 
	translatable strings replaced with common ones.
	
	* godmode/agentes/modificar_agente.php: Use Pandora agents.
	
	* godmode/modules/manage_nc_groups.php,
	godmode/setup/news.php,
	godmode/modules/manage_network_components.php,
	godmode/reporting/map_builder.php,
	godmode/agentes/planned_downtime.php: Some translatable strings replaced
	with common ones.
	
	* godmode/servers/modificar_server.php: Updated to changes in tserver. Use
	get_server_info() for that.
	
	* include/functions_db.php: Updated to changes in tserver about
	server_type field on get_server_info(). Style correction.
	
	* include/functions_servers.php: Added to repository. Servers API.
	
	* operation/servers/view_server.php: Style correction.
	
	* extras/pandoradb_migrate_v2.x_to_v3.0.sql, pandoradb.sql: Less space on
	server_name field on tagente.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1615 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-13 15:05:21 +00:00
guruevi d1bf374dac 2009-04-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: get_group_agents fixed search
	
	* operation/agentes/estado_agente.php: Small style changes and bugfixes

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1607 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-10 14:03:24 +00:00
guruevi 2b083b7904 2009-04-09 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php: Added get_agent_module_info which gives
	valuable information that can be re-used and expanded
	
	* include/functions_events.php, include/functions_ui.php: The chunk_split 
	only works with set width removed for wide css. General cleanup
	
	* include/functions_db.php: get_group_agents allows search now
	
	* include/styles/pandora_width.css, include/styles/pandora.css, 
	include/styles/menu.css: The menu for the agent editor is now even with the
	operation menu and also takes up the whole width
	
	* operation/agentes/tactical.php: Changed for width. Now takes up the wide
	
	* operation/agentes/estado_agente.php: Rewritten. Now outputs variable
	width table and is cleaner

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1606 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-09 21:06:17 +00:00
slerena caa687fd2c 2009-04-03 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php,
	* include/functions_db.php: Fixed a notice who breaks the PDF report.
	Added homeurl preffix to some includes that breaks PDF reporting.

	* pandora_console_upgrade: Fixedd issue with old-style config.php.

	* godmode/alerts/alert_list.php: Fixed bad combo values (ID insted names).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1596 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-03 10:44:26 +00:00
slerena 36426d4c9e 2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
	scheme. tagente-> new server_name field to assign server (old fields will
	be removed).  talert_templates has two new types (warning, critical).
	tevento has "user_comment" new field. Tserver has three new fields, 
	server_type (so some old fields will be deleted), threads and queued_modules
	this last two are for statistical options. Tusuario add language type to
	override global language.
	
	* update_manager/main.php: Minor changes for correct ACL usage. Non PM
	users could see in what revision it the system, but only that.
	
	* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
	
	* general/noaccess.php: Added footer and ending div. Page was very ugly
	when showing noaccess errors, nobody see it ???.
	
	* godmode/menu.php: A LOT of ACL fixes on several options.
	
	* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
	
	* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
	stuff, because was not working. This also adds a lot of ACL checks. 
	
	* godmode/agentes/massive_config.php, massive*: ACL changes.
	
	* godmode/agentes/modificar_agente.php: Fixed ACL problems.
	
	* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
	some types (data, plugin and prediction).
	
	* godmode/alerts/alert_list.php: Fixed ACL problem.
	
	* godmode/reporting/graph_builder.php: Added ACl restriction for 
	non-viewable agents for current user. Seems to be a problem with data
	with more than 2 sources.
	
	* godmode/reporting/map_builder.php: ACL checks improved.
	
	* godmode/reporting/reporting_builder.php: ACL checks added (was missing), 
	some code ported from 2.1, other is new. New fields shown in list.
	
	* include/functions.php: Fixed the annoying bug of "bad counters" in
	function human_time_description_raw(). Function used,format_numeric() should
	not be used never to calculate nothing, only to print formatted strings.
	
	* include/functions_db.php: Added function user_access_to_agent() to know
	if a given user has access to a given agent.
	
	* include/functioins_report.php: get_report() should let admin to watch any
	report. Fixed.
	
	* agentes/alerts_status.php: Fixed ACL problem for view alert.
	
	* operation/incidents/incident.php: Bad call for pagination() was giving
	problems to pagination call. Somebody changes pagination() interface and 
	make this broken. Please if you change any interface, be sure that is compatible
	with old code or make a post in the list about this !
		
	* godmode/users/user_edit.php: Additional ACL check to do not let anybody
	to watch non accesible users. Even for see the username or description.
	
	* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 19:16:59 +00:00
Esteban Sanchez 610fe5042b 2009-04-02 Esteban Sanchez <estebans@artica.es>
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Removed id on tconfig
	inserts.

	* godmode/agentes/configurar_agente.php: Min and max module values
	were not being updated.

	* godmode/alerts/configure_alert_template.php: Removed duplicated
	example. Added support for next warning and critical template types.

	* include/functions_ui.php, include/functions_alerts.php: Added new
	alert template types.

	* include/functions_db.php: temp_sql_delete() moved out of
	delete_agent() because there were errors if it was calling more than
	once.

	* include/functions_reports.php: Fixed doc for get_reports().

	* include/config_process.php: Updated build number.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1589 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 12:53:27 +00:00
Esteban Sanchez 31f37e6719 2009-04-01 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/alert_compounds.php: Fixed group All.

	* godmode/alerts/configure_alert_compound.php: Fixed group All.
	"Compound" labels renamed to "Correlated".

	* include/styles/pandora.css: Removed invisible class, which was
	duplicated from common.css.

	* include/functions_db.php: safe_acl_group() now handles group All.
	Fixes #2725019 and #2723089



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1586 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-01 14:00:52 +00:00
Esteban Sanchez 4afa5e190b 2009-04-01 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added
	priority field to talert_templates and removed from
	talert_template_module.

	* godmode/alerts/alert_list.php: Fixed SQL notice when fetching
	groups.

	* godmode/alerts/alert_templates.php: Added priority to the template
	tooltip.

	* godmode/alerts/configure_alert_template.php: Added priority field to
	alert templates.

	* include/functions_db.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1585 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-01 11:25:58 +00:00
slerena 5181998d1a 2009-03-31 Sancho Lerena <slerena@artica.es>
* include/styles/menu.css: Added icons for dashboard option (enterprise).
	
	* include/functions_config.php: Added support for round_corner option.
	
	* include/functions_db.php: Temporal support (not really work) for enterprise
	servers webcheck/goliat and inventory. This code should be corrected when
	make final dbstruct changes for new server_type numeric field.
	
	* include/functions_reports.php: Fixed an annoying notice.
	
	* index.php: Dashboard is not entered automatically on login in enterprise.
	
	* operation/events/events.php: Events from group 0 always displayed.
	
	* operation/servers/view_server.php: Icon for server status is now smaller.
	
	* operation/menu.php: New enterprise hook for Dashboard menu entry.
	
	* reporting/pchart_graph.php: Round corners on progressbar acording to
	setup option. Color of border is smoother.
	
	* godmode/setup/links.php: Fixed ACL condition (AND -> OR).
	
	* godmode/setup/setup.php: Fixed ACL. Moved visual options to other setup.
	
	* godmode/setup/filemgr.php: Fixed ACL condition (AND -> OR).
	
	* godmode/agentes/modificar_agente.php: Support for IP address search.
	
	* godmode/menu.php: Added new setup section for visual options.
	
	* godmode/setup/setup_visuals.php: New setup section for visual options.
	
	* images/mod_web_proc.png,
	  images/screenshot_not_found.jpg
	  images/mod_web_data.png
	  images/server_web.png: New icons added for enterprise options.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1580 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-31 14:32:58 +00:00
guruevi e4512f4544 2009-03-27 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Fixed group functions that would return
	data even if the user didn't have access to the group. Added 
	safe_acl_group which filters out groups the user doesn't have access to
	out of an array of groups. Added check_acl which deprecates give_acl
	(new naming scheme)


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1576 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-27 20:01:13 +00:00
Esteban Sanchez 68716acb0d 2009-03-27 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Fixed
	constraint restrictions on alert actions.

	* godmode/users/configure_user.php: Many bugfixes when creating and
	editing.
	
	* include/auth/mysql.php: Fixed return value on create_user() because
	it does not return an insert id.

	* include/functions_db.php: Call debug() on SQL errors to get a
	backtrace.

	* include/functions_ui.php: Added a return value to debug().

	* operation/users/user_edit.php: Renamed user_update().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1574 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-27 11:33:11 +00:00
Esteban Sanchez fd419a8216 2009-03-26 Esteban Sanchez <estebans@artica.es>
* godmode/users/configure_user.php: Complete rewritten to fix minor
	errors and fit the Pandora style.

	* include/auth/ldap.php: Removed process_user_isadmin(). Renamed
	process_user_password() to update_user_password(). Renamed
	process_user_info to update_user(). update_user_password() does not
	require old password anymore.

	* include/functions_db.php: Added empty checks on
	create_user_profile().

	* include/functions_ui.php: print_error_message() renamed to
	print_result_message().

	* godmode/agentes/configurar_agente.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/alerts/configure_alert_template.php,
	godmode/modules/manage_nc_groups.php,
	godmode/modules/manage_network_templates.php,
	godmode/modules/manage_network_templates_form.php,
	godmode/reporting/map_builder_wizard.php,
	godmode/reporting/reporting_builder.php,
	operation/agentes/alerts_status.php, operation/events/events.php,
	operation/incidents/incident.php,
	operation/incidents/incident_detail.php,
	operation/messages/message.php, operation/snmpconsole/snmp_view.php,
	operation/users/user_edit.php: Renamed print_result_message(). Some
	translatable strings reused to simplify i18n work.
	
	* godmode/users/user_list.php: Renamed print_result_message(). Use
	cross.png for deletion links. Style corrections.

	* godmode/setup/news.php: Renamed print_result_message(). Use
	process_sql_delete() instead of direct mysql_query.

	* godmode/reporting/map_builder.php: Renamed print_result_message().
	Style correction on process_sql_update().

	* godmode/alerts/configure_alert_compound.php: Renamed
	print_result_message(). Fixed steps_clean div.
	
	* godmode/setup/setup.php: Return control to index instead of exit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1567 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-26 11:14:49 +00:00
guruevi 090b0661a5 2009-03-25 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Made get_server_info more informational
	
	* operation/servers/view_server.php: Uses new get_server_info layout
	
	* operation/agentes/tactical.php: Use print_table and get_server_info
	
	* operation/menu.php: Removed incident search
	
	* operation/incidents/incident_search.php: Removed - now sits in incident
	
	* operation/incidents/incident.php: Added more search capabilities
	
	* operation/visual_console/index.php: Relative width and alignment
	
	* operation/visual_console/render_view.php: Small fixes

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1564 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 18:43:30 +00:00
Esteban Sanchez d9445f0b91 2009-03-25 Esteban Sanchez <estebans@artica.es>
* include/functions_alerts.php: Finished the alerts API by removing
	useless and focus of problems clean_*(). All the functions now uses
	process_sql_*().

	* godmode/alerts/alert_actions.php,
	godmode/alerts/alert_commands.php: Adapted to changes in
	functions_alerts.php.

	* godmode/alerts/configure_alert_template.php: Fixed default action
	updating when it's set to None. Fixed textarea height.

	* include/functions_reports.php: Added to repository. API to manage
	user reports.

	* include/functions_db.php: Moved get_reports() to
	functions_reports.php. Escape ` on get_db_value(). Use
	format_array_to_update_sql() on process_sql_update().

	* godmode/reporting/reporting_builder.php: Use functions from reports
	API.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1560 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 13:51:52 +00:00
guruevi f36371c329 2009-03-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Made get_server_info more accurate as far as
	exact module types etc.
	
	* operation/servers/view_server.php: Return dash in case there is no lag
	
	* operation/servers/view_server_detail.php: Style fixes

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1558 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-24 16:53:03 +00:00
Esteban Sanchez fc00a6f50d 2009-03-23 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/massive_edit_modules.php: The module selection is
	now done using cascade selects instead of having a confusing tree on
	the select.

	* godmode/alerts/alert_list.php: Fixed a bug when getting the latest
	module value.

	* godmode/alerts/alert_templates.php: Fixed an error that didn't allow
	deletion on some cases. Added an option to duplicate a template
	easily.

	* godmode/alerts/configure_alert_template.php: Added template
	duplication support. Fixed a mismatch on field1, field2 and field3
	which required to have a default action to be updated. This values are
	not loaded anymore from default action.

	* godmode/db/db_purge.php: Many styles correction. Use pandora
	functions for the bottom table.

	* include/functions_alerts.php: Added duplicate_alert_template().

	* include/functions_db.php: Added a parameter to get_agent_modules()
	to enable or disable the return of indexed values.

	* operation/agentes/sla_view.php: Style correction.

	* operation/agentes/ver_agente.php: Added support for indexed flag on
	get_agent_modules_json AJAX operation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1553 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-23 15:22:19 +00:00
guruevi db655ff4f5 2009-03-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_incidents.php: Style change
	
	* include/functions.php: Never is not correct in some cases. Unknown is 
	a better expression.
	
	* include/functions_ui.php: Added style attribute (default to nowrap)
	
	* include/functions_db.php: get_server_info now processes modules outside
	the loop. Less queries and now returns load as well
	
	* include/functions_html.php: print_submit_button now accepts arrays
	
	* operation/servers/view_server.php, operation/incidents/incident.php: 
	Better use of functions and style

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1551 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-20 19:57:13 +00:00
Esteban Sanchez e38b33958d 2009-03-18 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/massive_edit_modules.php: Added to repository. New
	interface to update modules massively. Should be improved lately.

	* reporting/pchart_graph.php: Fixed mess with color pallete.

	* godmode/agentes/massive_operations.php: Fixed sec parameter on
	links. Changed label. Added link to the new modules editor.

	* godmode/agentes/module_manager.php: Fixed an error when showing
	module group titles.

	* godmode/agentes/module_manager_editor.php: Decode values from
	components.
	
	* godmode/agentes/module_manager_editor_wmi.php: Bigger WMI query
	input text.

	* include/functions_db.php: Fixed a bug when using group on
	format_array_to_where_clause_sql().

	* include/functions_modules.php: Fixed an error on
	get_network_components() which was not filtering fine. Many fixes in
	get_network_component_groups() so it works better now. Added
	update_agent_module().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1550 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-18 15:42:15 +00:00
Esteban Sanchez 7c65c49f36 2009-03-17 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/massive_operations.php: Added to repository. New
	page to group massive operations in a single page.

	* godmode/agentes/massive_config.php: Renamed from manage_config.php.

	* godmode/agentes/massive_delete_agents.php: Renamed from
	manage_delete.php.
	
	* godmode/agentes/massive_delete_modules.php: Added to repository.
	Interface to delete modules.

	* godmode/agentes/massive_delete_alerts.php: Added to repository.
	Interface to delete alerts.

	* godmode/agentes/agent_manager.php: Fixed table width to make it
	variable.

	* godmode/agentes/module_manager.php: Rewritten to use Pandora
	functions.

	* include/javascript/jquery.pandora.controls.js: Added
	pandoraSelectAgentAlert. Renamed pandoraSelectAgent to
	pandoraSelectAgentModule. Get only needed fields to make it quicker
	and avoid showing disabled modules.

	* godmode/alerts/alert_list.php: Adapted to changes in
	jquery.pandora.controls.js.

	* godmode/menu.php: Group some pages into new "Massive operation"
	submenu.

	* images/copy.png: Replaced with a better icon.

	* images/delete_agents.png, images/delete_alerts.php,
	images/delete_modules.php: Added to repository.

	* include/styles/pandora.css: Set color on input.sub

	* include/styles/pandora_width.css: Make menu_tab_frame wider.

	* include/functions_db.php: Removed deprecated
	dame_nombre_grupomodulo(). Added support to __() to receive multiple
	parameters so translatable strings can handle now printf format
	characters.

	* include/functions_modules.php: Added delete_agent_module().

	* operation/agentes/ver_agente.php: Allow fields to be passed to
	get_agent_modules_json AJAX operation.

	* reporting/fgraph.php: Replaced sprintf() with __(). Some casts
	added. Show a sparse chart even if it has no max/min value.

	* godmode/modules/manage_network_components_form_network.php,
	operation/agentes/estado_ultimopaquete.php,
	godmode/modules/manage_network_components_form_wmi.php: Use
	get_modulegroup_name().

	* godmode/agentes/configurar_agente.php,
	godmode/modules/manage_network_components.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1544 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-17 15:15:55 +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 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
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
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 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 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
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 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 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
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
Esteban Sanchez 6a37411c63 2009-02-23 Esteban Sanchez <estebans@artica.es>
* include/functions_html.php: Fixed id counter on print_select.

	* include/functions_db.php: Documentation style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1474 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-23 15:04:32 +00:00
Esteban Sanchez 7991f8af1b 2009-02-23 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/map_builder.php: Use process_sql_update and
	process_sql_insert instead of generating SQL sentences. Added
	wz_jsgraphics to draw the lines. Do not draw any lines if no map is
	selected.

	* include/functions_db.php: Moved return_status_layout() to
	functions_visual_map.php (and renamed to get_layout_status()). Allow
	passing a string to get_db_all_rows_filter()
esteban@silviojose:~/work/src/pandora/pandora_console$ head -30 ChangeLog 
2009-02-23  Esteban Sanchez  <estebans@artica.es>

	* godmode/reporting/map_builder.php: Use process_sql_update and
	process_sql_insert instead of generating SQL sentences. Added
	wz_jsgraphics to draw the lines. Do not draw any lines if no map is
	selected.

	* include/functions_db.php: Moved return_status_layout() to
	functions_visual_map.php (and renamed to get_layout_status()). Allow
	passing a string to get_db_all_rows_filter()

	* include/functions_visual_map.php: Moved get_layout_status() from
	functions_db.php. Added get_user_layouts().

	* operation/visual_console/index.php: Use get_user_layouts() to fetch
	layouts.

	* operation/visual_console/render_view.php: Added wz_jsgraphics and
	changed direct config manipulation with require_javascript_file().

	* godmode/reporting/reporting_builder.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1473 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-23 13:41:40 +00:00
guruevi fd22412aed 2009-02-19 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandoradb_migrate_20_to_21.sql, pandora_db.sql: Altered tmensajes for
	unixtime
	
	* general/header.php: New messages function added flashing 
	acknowledgment in case of new messages
	
	* general/logon_ok.php: Since messages are now in header, they don't need
	to be there per se
	
	* images/close.png, images/transparent.png: Background and close button
	for overlays.
	
	* include/javascript/jquery.pandora.js: Used for loop for flashing thing
	and added overlay function
	
	* include/javascript/jquery.overlay.js: You'll need this for overlay
	
	* include/functions_messages.php: Message functions are here. Messages are
	fully abstracted so they can be drop-in replaced with something else
	
	* include/functions_ui.php: Small fixes. Not necessary to load en language
	files for javascript since they're empty, it only adds to load/interpret
	
	* include/functions_db.php: Added get_group_users and get_db_array. Useful
	
	* include/functions_html.php: Small doc fixes and fixed table heads
	
	* include/styles/pandora.css: Added Overlay classes

	* ajax.php: We need to call safe_url_extraclean for cross scripting
	
	* operation/messages/message.php: Rebuilt to use new functions
	
	* operation/menu.php: New message link instead of group link
	
	* operation/visual_console/render_view.php: Fixed conflict with timer
	
	* index.php: Added div for overlay (not in pure mode) and fixed erroneous
	div in pure mode.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1469 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-19 21:34:27 +00:00
Esteban Sanchez 659a08125f 2009-02-19 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Added require_css_file(),
	require_javascript_file() and require_jquery_file() to add CSS,
	javascript and jQuery files to the header easily without changing
	config object. A path parameter is addded to allow the use on
	enterprise code.

	* include/functions_db.php: Added
	get_db_value_filter(), get_db_all_rows_filter() and
	process_sql_delete(). Fixed delete_agent() style and use these
	functions. Added process_page_head() from functions_ui.php and changed
	a bit the config javascript object part.

	* include/functions_custom_graphs.php: Get results indexed by id on
	get_user_custom_graphs().

	* include/functions.php: Moved process_page_head to functions_ui.php.
	
	* godmode/agentes/manage_delete.php: New interface to perform massive
	agents deletion.

	* godmode/menu.php: Added new option to massive agents deletion.

	* general/main_menu.php, godmode/agentes/manage_config.php,
	godmode/agentes/module_manager_editor.php,
	godmode/agentes/planned_downtime.php,
	godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
	godmode/alerts/configure_alert_compound.php,
	godmode/alerts/configure_alert_template.php,
	godmode/reporting/map_builder.php, operation/agentes/networkmap.php,
	operation/reporting/reporting_viewer.php,
	operation/visual_console/render_view.php: Use new functions in include
	CSS and javascript files.

	* index.php: Bit of style when printing the header so the HTML can be
	readed easily in a editor.

	* include/javascript/pandora.js: Added a variable to determine the
	enterprise directory.

	* include/styles/pandora.css: Added style for manage_delete.php



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1467 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-19 16:10:04 +00:00
Esteban Sanchez 0d5884b55c 2009-02-18 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Removed from repository. Agent
	alerts manager is now done in alerts/alert_list.php

	* godmode/agentes/manage_config.php, godmode/alerts/configure_alert,
	godmode/agentes/configurar_agente.php: Use alerts/alert_list.php
	instead of deleted agentes/alert_manager.php.

	* godmode/alerts/alert_list.php: It can handle now a list of agents or
	be included by configurar_agente. Now it's a single page to manage all
	the alerts defined in agents.

	* godmode/reporting/map_builder.php: Javascript style correction.

	* include/javascript/jquery.pandora.controls.js: Added
	pandoraSelectAgent which allows the loading of a module list from an
	agent list.

	* include/styles/pandora.css: Styles for alert_list.

	* include/functions_agents.php: Added options to
	get_agent_alerts_compound() and get_agent_alerts_simple() to add extra
	user filtering.

	* pandoradb.sql, pandoradb_migrate_20_to_21.sql,
	include/functions_alerts.php: Actions in an alert module has now id or
	they cannot be removed.

	* include/functions_db.php: format_array_to_where_clause_sql() can now
	get limit and offset values.

	* include/functions_html.php: Removed select- prefix to print_select
	elements because it was breaking javascript code. Needs more works on
	that.

	* operation/agentes/estado_agente.php: Added
	get_agent_module_last_value AJAX operation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1466 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-18 12:29:30 +00:00
guruevi 0f4f36dcf9 2009-02-17 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/login_ok.php, operation/visual_console/index.php,
	operation/visual_console/render_view.php: Small cosmetic fixes
	
	* include/functions_visual_map.php: Cosmetic fixes and put the if/elseif
	statements in a simpler switch statement
	
	* include/functions_db.php: dame_grupo_icono is now get_group_icon

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1465 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-17 21:37:39 +00:00