Remove some deprecated functions

This commit is contained in:
Tony Murray
2016-04-24 01:05:14 -05:00
parent 413d0b7c5e
commit b98ba8c1a4
7 changed files with 14 additions and 16 deletions

View File

@@ -699,8 +699,8 @@ function get_smokeping_files($device) {
if ($handle = opendir($smokeping_dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != '.' && $file != '..') {
if (eregi('.rrd', $file)) {
if (eregi('~', $file)) {
if (stripos($file, '.rrd') !== false) {
if (strpos($file, '~') !== false) {
list($target,$slave) = explode('~', str_replace('.rrd', '', $file));
$target = str_replace('_', '.', $target);
$smokeping_files['in'][$target][$slave] = $file;