From 79867059dc263b8ae475bfebefe0c8f7fd39e1df Mon Sep 17 00:00:00 2001 From: Jimmy Conner Date: Fri, 12 Dec 2014 03:06:29 +0000 Subject: [PATCH] Remove references to plugin architecture version Remove old unused functions from plugins.php git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7558 860744bd-22fc-0310-8c96-e9fe5004b5ca --- include/global_arrays.php | 3 -- plugins.php | 74 ++------------------------------------- 2 files changed, 2 insertions(+), 75 deletions(-) diff --git a/include/global_arrays.php b/include/global_arrays.php index bed99da88c..ed225bed63 100644 --- a/include/global_arrays.php +++ b/include/global_arrays.php @@ -682,9 +682,6 @@ $graph_datechar = array( GDC_HYPHEN => '-', GDC_SLASH => '/'); -$plugin_architecture = array( - 'version' => '3.1'); - $dsstats_refresh_interval = array( 'boost' => 'After Boost', '60' => '1 Hour', diff --git a/plugins.php b/plugins.php index 003c94a168..83d4163b84 100644 --- a/plugins.php +++ b/plugins.php @@ -176,74 +176,6 @@ function api_plugin_uninstall_old ($plugin) { return false; } -function update_show_updates () { - global $pluginslist, $config, $plugin_architecture; - - $cinfo = array(); - sort($pluginslist); - - $cinfo = update_get_plugin_info (); - - $x = 0; - - $info = update_get_cached_plugin_info(); - - $cactinew = update_check_if_newer($cinfo['cacti']['version'], $info['cacti']['version']) ; - if (isset($cinfo['cacti_plugin_arch']['version'])) { - $archnew = update_check_if_newer($cinfo['cacti_plugin_arch']['version'], $info['cacti_plugin_arch']['version']); - } else { - $archnew = 0; - } - - if ($cactinew) { - $x++; - print ""; - html_header(array("Cacti"), 2); - form_alternate_row('', true); - print ""; - form_alternate_row('', true); - print "
Version:" . $config["cacti_version"] . "
Changes:" . str_replace("\n", '
', $info['cacti']['changes']) . "
"; - } - if (isset($plugin_architecture['version']) && $archnew) { - $x++; - print ""; - html_header(array("Plugin Architecture"), 2); - form_alternate_row('', true); - print ""; - form_alternate_row('', true); - print "
Version:" . $plugin_architecture['version'] . "Changes:" . str_replace("\n", '
', $info['cacti_plugin_arch']['changes']) . "
"; - } - print ""; - - foreach ($pluginslist as $plugin) { - if (isset($cinfo[$plugin]) && update_check_if_newer($cinfo[$plugin]['version'], $info[$plugin]['version'])) { - $x++; - print "
"; - html_header(array((isset($cinfo[$plugin]['longname']) ? $cinfo[$plugin]['longname'] : $plugin)), 2); - form_alternate_row('', true); - print ""; - form_alternate_row('', true); - print ""; - form_alternate_row('', true); - print ""; - form_alternate_row('', true); - print ""; - form_alternate_row('', true); - print ""; - - print "
Directory:$pluginVersion:" . $info[$plugin]['version'] . "Author:" . (isset($cinfo[$plugin]['author']) && $cinfo[$plugin]['author'] != '' ? (isset($cinfo[$plugin]['email']) && $cinfo[$plugin]['email'] != '' ? "" . $cinfo[$plugin]['author'] . "" : $cinfo[$plugin]['author']) : "") . "Home Page:" . (isset($cinfo[$plugin]['webpage']) && $cinfo[$plugin]['webpage'] != '' ? "" . $cinfo[$plugin]['webpage'] . "" : "") . "Changes:" . str_replace("\n", '
', $info[$plugin]['changes']) . "
"; - } - } - if ($x == 0) - print "
There are currently no Updates!

"; - print ""; - html_end_box(TRUE); -} - -function update_check_if_newer() { - return false; -} - function plugins_temp_table_exists($table) { return sizeof(db_fetch_row("SHOW TABLES LIKE '$table'")); } @@ -336,7 +268,7 @@ function plugins_load_temp_table() { } function update_show_current () { - global $plugins, $pluginslist, $plugin_architecture, $config, $status_names, $actions, $item_rows; + global $plugins, $pluginslist, $config, $status_names, $actions, $item_rows; /* ================= input validation ================= */ input_validate_input_number(get_request_var_request("page")); @@ -422,9 +354,7 @@ function update_show_current () { Plugin Management (Cacti Version: " . $config["cacti_version"] . - (isset($plugin_architecture['version']) ? ", Plugin Architecture Version: " . $plugin_architecture['version']:"") . - ")", "100%", "", "3", "center", ""); + html_start_box("Plugin Management (Cacti Version: " . $config["cacti_version"] . ")", "100%", "", "3", "center", ""); ?>