diff --git a/check-services.php b/check-services.php
index 55295a70f..e053126b2 100755
--- a/check-services.php
+++ b/check-services.php
@@ -34,7 +34,7 @@ foreach (dbFetchRows('SELECT * FROM `devices` AS D, `services` AS S WHERE S.devi
$cmd = $config['nagios_plugins'] . "/check_" . $service['service_type'] . " -H " . ($service['service_ip'] ? $service['service_ip'] : $service['hostname']);
$cmd .= " ".$service['service_param'];
$check = shell_exec($cmd);
- list($check, $time) = split("\|", $check);
+ list($check, $time) = explode("|", $check);
if(stristr($check, "ok -")) {
$status = 1;
}
diff --git a/html/includes/graphs/application/shoutcast_multi_bits.inc.php b/html/includes/graphs/application/shoutcast_multi_bits.inc.php
index d526863ae..a54d6b8d5 100644
--- a/html/includes/graphs/application/shoutcast_multi_bits.inc.php
+++ b/html/includes/graphs/application/shoutcast_multi_bits.inc.php
@@ -37,7 +37,7 @@ if ($handle = opendir($rrddir)) {
foreach ($files as $id => $file) {
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
$hostname = eregi_replace('.rrd', '', $hostname);
- list($host, $port) = split('_', $hostname, 2);
+ list($host, $port) = explode('_', $hostname, 2);
$rrd_filenames[] = $rrddir.'/'.$file;
$rrd_list[$i]['filename'] = $rrddir.'/'.$file;
$rrd_list[$i]['descr'] = $host.':'.$port;
diff --git a/html/includes/graphs/application/shoutcast_multi_stats.inc.php b/html/includes/graphs/application/shoutcast_multi_stats.inc.php
index 26b989c22..a6618207e 100644
--- a/html/includes/graphs/application/shoutcast_multi_stats.inc.php
+++ b/html/includes/graphs/application/shoutcast_multi_stats.inc.php
@@ -25,7 +25,7 @@ if ($handle = opendir($rrddir)) {
foreach ($files as $id => $file) {
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
$hostname = eregi_replace('.rrd', '', $hostname);
- list($host, $port) = split('_', $hostname, 2);
+ list($host, $port) = explode('_', $hostname, 2);
$rrd_filenames[] = $rrddir.'/'.$file;
$rrd_list[$i]['filename'] = $rrddir.'/'.$file;
$rrd_list[$i]['descr'] = $host.':'.$port;
diff --git a/html/pages/device/apps/shoutcast.inc.php b/html/pages/device/apps/shoutcast.inc.php
index 0eea36986..b5deb39eb 100644
--- a/html/pages/device/apps/shoutcast.inc.php
+++ b/html/pages/device/apps/shoutcast.inc.php
@@ -42,7 +42,7 @@ if (isset($total) && $total === true) {
foreach ($files as $id => $file) {
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
$hostname = eregi_replace('.rrd', '', $hostname);
- list($host, $port) = split('_', $hostname, 2);
+ list($host, $port) = explode('_', $hostname, 2);
$graphs = array(
'shoutcast_bits' => 'Traffic Statistics - '.$host.' (Port: '.$port.')',
'shoutcast_stats' => 'Shoutcast Statistics - '.$host.' (Port: '.$port.')',
diff --git a/html/pages/settings/alerting.inc.php b/html/pages/settings/alerting.inc.php
index b7cd30927..243f98a7d 100644
--- a/html/pages/settings/alerting.inc.php
+++ b/html/pages/settings/alerting.inc.php
@@ -307,7 +307,7 @@ echo '
';
$api_urls = get_config_like_name('alert.transports.api.%.');
foreach ($api_urls as $api_url) {
- $api_split = split('\.', $api_url['config_name']);
+ $api_split = explode('.', $api_url['config_name']);
$api_method = $api_split[3];
echo '
diff --git a/includes/polling/applications/shoutcast.inc.php b/includes/polling/applications/shoutcast.inc.php
index 30428a6b6..a5650d256 100644
--- a/includes/polling/applications/shoutcast.inc.php
+++ b/includes/polling/applications/shoutcast.inc.php
@@ -15,7 +15,7 @@ foreach ($servers as $item => $server) {
if (!empty($server)) {
$data = explode(';', $server);
- list($host, $port) = split(':', $data['0'], 2);
+ list($host, $port) = explode(':', $data['0'], 2);
$bitrate = $data['1'];
$traf_in = $data['2'];
$traf_out = $data['3'];
diff --git a/includes/polling/os/netapp.inc.php b/includes/polling/os/netapp.inc.php
index c19776392..4273e2e8e 100644
--- a/includes/polling/os/netapp.inc.php
+++ b/includes/polling/os/netapp.inc.php
@@ -2,5 +2,5 @@
$serial = snmp_get($device, 'productSerialNum.0', '-Ovq', 'NETAPP-MIB');
$hardware = snmp_get($device, 'productModel.0', '-Ovq', 'NETAPP-MIB');
-list($version,) = split(':', snmp_get($device, 'productVersion.0', '-Ovq', 'NETAPP-MIB'));
+list($version,) = explode(':', snmp_get($device, 'productVersion.0', '-Ovq', 'NETAPP-MIB'));
$version = str_replace('NetApp Release ', '', $version);
diff --git a/includes/polling/temperatures/netapp.inc.php b/includes/polling/temperatures/netapp.inc.php
index 015c40a43..d8841b736 100644
--- a/includes/polling/temperatures/netapp.inc.php
+++ b/includes/polling/temperatures/netapp.inc.php
@@ -2,5 +2,5 @@
$sensor_value = trim(str_replace('"', '', snmp_get($device, $sensor['sensor_oid'], '-OUqnv', '')));
preg_match_all('/([0-9]+C)+/', $sensor_value, $temps);
-list(,$index) = split('\.', $sensor['sensor_index']);
+list(,$index) = explode('.', $sensor['sensor_index']);
$sensor_value = $temps[0][$index];
diff --git a/includes/services/dns/check.inc b/includes/services/dns/check.inc
index 0b259d68d..ed6fba724 100644
--- a/includes/services/dns/check.inc
+++ b/includes/services/dns/check.inc
@@ -6,7 +6,7 @@ if ($service['service_ip']) { $resolver = $service['service_ip']; } else {
$check = shell_exec($config['nagios_plugins'] . "/check_dns -H ".$nsquery." -s ".$resolver);
-list($check, $time) = split("\|", $check);
+list($check, $time) = explode("|", $check);
if(strstr($check, "DNS OK: ")) {
$status = '1';
diff --git a/includes/services/domain_expire/check.inc b/includes/services/domain_expire/check.inc
index f468e45d1..aec6c4867 100644
--- a/includes/services/domain_expire/check.inc
+++ b/includes/services/domain_expire/check.inc
@@ -10,7 +10,7 @@ if( $service['service_ip'] ) {
$cmd .= " ".$service['service_param'];
$check = shell_exec($cmd);
-list($check, $time) = split("\|", $check);
+list($check, $time) = explode("|", $check);
if(strstr($check, "OK - Domain")) {
$status = '1';
diff --git a/includes/services/ftp/check.inc b/includes/services/ftp/check.inc
index 67a8bed09..1ac1a4df9 100644
--- a/includes/services/ftp/check.inc
+++ b/includes/services/ftp/check.inc
@@ -2,7 +2,7 @@
$check = shell_exec($config['nagios_plugins'] . "/check_ftp -H ".$service['hostname']);
-list($check, $time) = split("\|", $check);
+list($check, $time) = explode("|", $check);
if(strstr($check, "FTP OK - ")) {
$status = '1';
diff --git a/includes/services/http/check.inc b/includes/services/http/check.inc
index 1a686865e..5c9067e8c 100644
--- a/includes/services/http/check.inc
+++ b/includes/services/http/check.inc
@@ -2,7 +2,7 @@
$check = shell_exec($config['nagios_plugins'] . "/check_http -H ".$service['hostname']." ".$service['service_param']);
-list($check, $time) = split("\|", $check);
+list($check, $time) = explode("|", $check);
if(strstr($check, "HTTP OK")) {
$status = '1';
diff --git a/includes/services/icmp/check.inc b/includes/services/icmp/check.inc
index f7e8bd823..9d96d502c 100644
--- a/includes/services/icmp/check.inc
+++ b/includes/services/icmp/check.inc
@@ -1,7 +1,7 @@
$server) {
- list($host, $port) = split(":", $server, 2);
+ list($host, $port) = explode(":", $server, 2);
array_push($data, get_data(trim($host), trim($port)));
}
return $data;