diff --git a/html/includes/graphs/application/shoutcast_multi_bits.inc.php b/html/includes/graphs/application/shoutcast_multi_bits.inc.php index a54d6b8d5a8c..1cadfa439ecb 100644 --- a/html/includes/graphs/application/shoutcast_multi_bits.inc.php +++ b/html/includes/graphs/application/shoutcast_multi_bits.inc.php @@ -27,7 +27,7 @@ if ($handle = opendir($rrddir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..') { - if (eregi('app-shoutcast-'.$app['app_id'], $file)) { + if (stripos($file, 'app-shoutcast-'.$app['app_id'])) { array_push($files, $file); } } @@ -35,8 +35,8 @@ } foreach ($files as $id => $file) { - $hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file); - $hostname = eregi_replace('.rrd', '', $hostname); + $hostname = str_ireplace('app-shoutcast-'.$app['app_id'].'-', '', $file); + $hostname = str_ireplace('.rrd', '', $hostname); list($host, $port) = explode('_', $hostname, 2); $rrd_filenames[] = $rrddir.'/'.$file; $rrd_list[$i]['filename'] = $rrddir.'/'.$file; diff --git a/html/includes/graphs/application/shoutcast_multi_stats.inc.php b/html/includes/graphs/application/shoutcast_multi_stats.inc.php index a6618207e220..1af206bb8b8e 100644 --- a/html/includes/graphs/application/shoutcast_multi_stats.inc.php +++ b/html/includes/graphs/application/shoutcast_multi_stats.inc.php @@ -15,7 +15,7 @@ if ($handle = opendir($rrddir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..') { - if (eregi('app-shoutcast-'.$app['app_id'], $file)) { + if (stripos($file, 'app-shoutcast-'.$app['app_id'])) { array_push($files, $file); } } @@ -23,8 +23,8 @@ } foreach ($files as $id => $file) { - $hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file); - $hostname = eregi_replace('.rrd', '', $hostname); + $hostname = str_ireplace('app-shoutcast-'.$app['app_id'].'-', '', $file); + $hostname = str_ireplace('.rrd', '', $hostname); list($host, $port) = explode('_', $hostname, 2); $rrd_filenames[] = $rrddir.'/'.$file; $rrd_list[$i]['filename'] = $rrddir.'/'.$file; diff --git a/html/pages/device/apps/shoutcast.inc.php b/html/pages/device/apps/shoutcast.inc.php index f2aadc7f18e0..f9278c650be9 100644 --- a/html/pages/device/apps/shoutcast.inc.php +++ b/html/pages/device/apps/shoutcast.inc.php @@ -10,7 +10,7 @@ if ($handle = opendir($rrddir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..') { - if (eregi('app-shoutcast-'.$app['app_id'], $file)) { + if (stripos($file, 'app-shoutcast-'.$app['app_id']) !== false) { array_push($files, $file); } } @@ -45,8 +45,8 @@ } foreach ($files as $id => $file) { - $hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file); - $hostname = eregi_replace('.rrd', '', $hostname); + $hostname = str_ireplace('app-shoutcast-'.$app['app_id'].'-', '', $file); + $hostname = str_ireplace('.rrd', '', $hostname); list($host, $port) = explode('_', $hostname, 2); $graphs = array( 'shoutcast_bits' => 'Traffic Statistics - '.$host.' (Port: '.$port.')', diff --git a/html/pages/front/map.php b/html/pages/front/map.php index e2b6b1e7ce50..162c898218b8 100644 --- a/html/pages/front/map.php +++ b/html/pages/front/map.php @@ -157,7 +157,7 @@ //From default.php - This code is not part of above license. if ($config['enable_syslog']) { $sql = "SELECT *, DATE_FORMAT(timestamp, '".$config['dateformat']['mysql']['compact']."') AS date from syslog ORDER BY seq DESC LIMIT 20"; -$query = mysql_query($sql); + echo('