From 0d645d0349d63724900a3a4174b324a861a07eaa Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Fri, 9 Oct 2015 15:16:29 +0200 Subject: [PATCH] Removed old unused version checking --- discovery.php | 4 -- includes/defaults.inc.php | 2 - includes/versioncheck.inc.php | 73 ----------------------------------- 3 files changed, 79 deletions(-) delete mode 100644 includes/versioncheck.inc.php diff --git a/discovery.php b/discovery.php index 3006399ff..bd0572b15 100755 --- a/discovery.php +++ b/discovery.php @@ -120,10 +120,6 @@ if ($discovered_devices) { $string = $argv[0]." $doing ".date($config['dateformat']['compact'])." - $discovered_devices devices discovered in $proctime secs"; d_echo("$string\n"); -if ($options['h'] != 'new' && $config['version_check']) { - include 'includes/versioncheck.inc.php'; -} - if (!isset($options['q'])) { echo ('MySQL: Cell['.($db_stats['fetchcell'] + 0).'/'.round(($db_stats['fetchcell_sec'] + 0), 2).'s]'.' Row['.($db_stats['fetchrow'] + 0).'/'.round(($db_stats['fetchrow_sec'] + 0), 2).'s]'.' Rows['.($db_stats['fetchrows'] + 0).'/'.round(($db_stats['fetchrows_sec'] + 0), 2).'s]'.' Column['.($db_stats['fetchcol'] + 0).'/'.round(($db_stats['fetchcol_sec'] + 0), 2).'s]'.' Update['.($db_stats['update'] + 0).'/'.round(($db_stats['update_sec'] + 0), 2).'s]'.' Insert['.($db_stats['insert'] + 0).'/'.round(($db_stats['insert_sec'] + 0), 2).'s]'.' Delete['.($db_stats['delete'] + 0).'/'.round(($db_stats['delete_sec'] + 0), 2).'s]'); echo "\n"; diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index a47a32d87..ed643cd7f 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -373,8 +373,6 @@ $config['show_overview_tab'] = true; // The device overview page options $config['overview_show_sysDescr'] = true; -// Enable version checker & stats -$config['version_check'] = 0; // Enable checking of version in discovery // Poller/Discovery Modules $config['enable_bgp'] = 1; diff --git a/includes/versioncheck.inc.php b/includes/versioncheck.inc.php deleted file mode 100644 index 2f3143c49..000000000 --- a/includes/versioncheck.inc.php +++ /dev/null @@ -1,73 +0,0 @@ - ".$config['rrd_dir']."/version.txt "); - } else { - if ($cur != $data) - { - echo("Current Revision : $cur_revision\n"); - - if ($omnipotence > $cur_revision) - { - echo("New Revision : $omnipotence\n"); - } - - # if ($omnipotence > $cur_omnipotence) - # { - # echo("New version : $omnipotence.$year.$month.$revision\n"); - # } elseif ($year > $cur_year) { - # echo("New version : $omnipotence.$year.$month.$revision\n"); - # } elseif ($month > $cur_month) { - # echo("New version : $omnipotence.$year.$month.$revision\n"); - # } elseif ($revision > $cur_revision) { - # echo("New release : $omnipotence.$year.$month.$revision\n"); - # } - } - } - } - - fclose($dataHandle); - } -*/