* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* bin/pandora_network: Better management of snmpget binary call, using
a config setup variable and checking it in startup.
* pandora_server.conf: new options added (snmpget, UDP multicast)
* Config.pm: New options managed (snmpget), new version updated (3.0-dev)
* DB.pm: Fixed two issues that makes me some problems on undefined values.
* Tools.pm: New function to manage numerical data.
* util/plugin/multicast.pl: Fixed plugin for multicast check.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1508 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* include/javascript/jquery.pandora.controls.js: Changed agent and
module selector to allow any kind of object instead of only an id.
Tiny changes to allow multiple elements in a page.
* include/functions_html.php: Added a separator for duplicated select
elements (it's useful sometimes to get this number with javascript and
using a separator helps)
* godmode/agentes/manage_delete.php,
godmode/agentes/manage_config.php: Fixed agent and group selector to
fits changes in pandora.controls.js.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1475 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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
* pandoradb_migrate_20_to_21.sql, pandoradb.sql: Fixed going up/down
strings
* godmode/setup/setup.php: Fixed event hours display
* operation/events/events.php: Fixed several major bugs with pagination
and the new event types.
* include/functions.php, include/functions_ui.php,
include/functions_html.php: Moved pagination and print_help_tip to
functions_ui.php. Repeat id's are now fixed backwards compatible.
Also fixed a bug in print_select where type comparisons against would
fail since PHP evaluates strings to (int) 0
* include/functions_events.php: Added print_event_type_img () and altered
the other functions to work with it
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1471 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* styles/pandora.css: Added input.add to a list which was missing.
Aligns labels to the left.
* pandoradb_data.sql: Fixed link to ArticaST.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f