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 "
| Version: | " . $config["cacti_version"] . " | "; - form_alternate_row('', true); - print "Changes: | " . str_replace("\n", ' ', $info['cacti']['changes']) . " |
| Version: | " . $plugin_architecture['version'] . " | "; - form_alternate_row('', true); - print "Changes: | " . str_replace("\n", ' ', $info['cacti_plugin_arch']['changes']) . " |
| Directory: | $plugin | "; - form_alternate_row('', true); - print "Version: | " . $info[$plugin]['version'] . " | "; - form_alternate_row('', true); - print "Author: | " . (isset($cinfo[$plugin]['author']) && $cinfo[$plugin]['author'] != '' ? (isset($cinfo[$plugin]['email']) && $cinfo[$plugin]['email'] != '' ? "" . $cinfo[$plugin]['author'] . "" : $cinfo[$plugin]['author']) : "") . " | "; - form_alternate_row('', true); - print "Home Page: | " . (isset($cinfo[$plugin]['webpage']) && $cinfo[$plugin]['webpage'] != '' ? "" . $cinfo[$plugin]['webpage'] . "" : "") . " | "; - form_alternate_row('', true); - print "Changes: | " . str_replace("\n", ' ', $info[$plugin]['changes']) . " | ";
-
- print "