diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index fe41819180..2b4245b977 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,16 @@ +2008-08-25 Sancho lerena + + * extensions/update_manager: Added update manager client for + PandoraFMS. + + * operation/reporting/custom_reporting.php: Moved PDF link. + + * operation/reporting/reporting_viewer_pdf.php: Moved to enterprise + version. + + * godmode/agentes/agent_disk_conf_editor.php: Moved to enterprise + version. + 2008-08-25 Evi Vanoost * godmode/agentes/modificar_agente.php: Updated delete routine to diff --git a/pandora_console/extensions/update_manager.php b/pandora_console/extensions/update_manager.php new file mode 100644 index 0000000000..beb50860fd --- /dev/null +++ b/pandora_console/extensions/update_manager.php @@ -0,0 +1,112 @@ +keygen_path); + + $package = um_client_check_latest_update ($settings, $user_key); + + if (is_object ($package)) { + echo '
'; + echo ' '; + echo __('There\'s a new update for Pandora'); + echo '. '; + echo __('More info'); + echo ''; + echo '
'; + } +} + +function pandora_update_manager_godmode () { + global $config; + global $db; + + load_update_manager_lib (); + + require_once ('update_manager/settings.php'); +} + +add_operation_menu_option (__('Update manager')); +add_godmode_menu_option (__('Update manager settings'), 'PM'); +add_extension_main_function ('pandora_update_manager_main'); +add_extension_godmode_function ('pandora_update_manager_godmode'); +add_extension_login_function ('pandora_update_manager_login'); + +$db = NULL; + +pandora_update_manager_install (); +?> diff --git a/pandora_console/godmode/agentes/agent_disk_conf_editor.php b/pandora_console/godmode/agentes/agent_disk_conf_editor.php index e0faeb2407..2b5d486ad1 100644 --- a/pandora_console/godmode/agentes/agent_disk_conf_editor.php +++ b/pandora_console/godmode/agentes/agent_disk_conf_editor.php @@ -1,94 +1,10 @@ -This feature is not included on OpenSource version. Please visit our website to learn more about the advanced features of Pandora FMS Enterprise edition"; -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation for version 2. -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -// Load global vars -require("include/config.php"); -if (! give_acl ($config['id_user'], 0, "AW")) { - audit_db ($config['id_user'], $REMOTE_ADDR, "ACL Violation", - "Trying to access agent manager"); - require ("general/noaccess.php"); - return; -} - -// Saves the configuration and the md5 hash -function save_config ($agent_config) { - global $agent_md5, $config; - - $agent_config = unsafe_string ($agent_config); - // Save configuration - $file = fopen ($config["remote_config"]."/".$agent_md5.".conf", "wb"); - fwrite ($file, $agent_config); - fclose ($file); - - // Save configuration md5 - $config_md5 = md5 ($agent_config); - $file = fopen ($config["remote_config"]."/".$agent_md5.".md5", "wb"); - fwrite ($file, $config_md5); - fclose ($file); -} - -// Update configuration -if (isset ($_POST["disk_conf"])) { - save_config (str_replace ("\r\n", "\n", $_POST["disk_conf"])); - echo "

".__('Agent successfully updated')."

"; -} - -// Read configuration file -$file_name = $config["remote_config"] . "/" . $agent_md5 . ".conf"; -$file = fopen ($file_name, "rb"); -$agent_config = fread ($file, filesize($file_name)); -fclose ($file); - -// Display it -echo '
'; -echo ''; -echo ''; -echo ''; -echo ''; -echo ''; -echo ''; -echo ''; -echo ''; -echo '
'.__('Agent name').''; -echo ''; -echo ''; -echo ''; -echo ''; -echo ''; -echo ''; -echo ''; -echo '
'; -echo ''; -echo '
'; -echo ''; -echo ''; -echo ''; -echo '
'; -echo '
'; -echo ''; -echo '
'; -echo '
'; - -// Footer -echo ""; + // Footer + echo ""; ?> diff --git a/pandora_console/index.php b/pandora_console/index.php index 85d2275fcd..8d2bcd7d93 100644 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -26,7 +26,7 @@ global $build_version; global $pandora_version; // Set to 1 to do not check for installer or config file (for development!). -$develop_bypass = 0; +$develop_bypass = 1; if ($develop_bypass != 1){ // If no config file, automatically try to install diff --git a/pandora_console/operation/reporting/custom_reporting.php b/pandora_console/operation/reporting/custom_reporting.php index 01b453743b..05ba786199 100644 --- a/pandora_console/operation/reporting/custom_reporting.php +++ b/pandora_console/operation/reporting/custom_reporting.php @@ -37,7 +37,6 @@ $table->head = array (); $table->head[0] = __('Report name'); $table->head[1] = __('Description'); $table->head[2] = __('HTML'); -$table->head[3] = __('PDF'); $table->align = array (); $table->align[2] = 'center'; $table->align[3] = 'center'; @@ -50,8 +49,6 @@ foreach ($reports as $report) { $data[1] = $report['description']; $data[2] = ' '; - $data[3] = ''; array_push ($table->data, $data); } diff --git a/pandora_console/operation/reporting/reporting_viewer_pdf.php b/pandora_console/operation/reporting/reporting_viewer_pdf.php deleted file mode 100644 index c39e4c8a30..0000000000 --- a/pandora_console/operation/reporting/reporting_viewer_pdf.php +++ /dev/null @@ -1,70 +0,0 @@ -No access without report type"; - audit_db ($config["id_user"], $REMOTE_ADDR, "ACL Violation", "Trying to access unauthorized report"); - exit; -} - -include ('../../include/pdf/class.ezpdf.php'); -require ('../../include/functions_reporting.php'); - -get_pdf_report ($report); - -?>