From aeee1aff698d57b41222ae2b4beacc7e42689f4e Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 15 Feb 2010 17:09:07 +0000 Subject: [PATCH] Changed calls of deprecated split function to use explode git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3019 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/includes/actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/includes/actions.php b/web/includes/actions.php index 2b18d0812..ee1e239e4 100644 --- a/web/includes/actions.php +++ b/web/includes/actions.php @@ -187,7 +187,7 @@ if ( !empty($action) ) if ( @socket_connect( $socket, $sockFile ) ) { $options = array(); - foreach ( split( " ", $ctrlCommand ) as $option ) + foreach ( explode( " ", $ctrlCommand ) as $option ) { if ( preg_match( '/--([^=]+)(?:=(.+))?/', $option, $matches ) ) { @@ -214,7 +214,7 @@ if ( !empty($action) ) { $zmuCommand = getZmuCommand( " -m ".$mid." -B".$_REQUEST['newBrightness']." -C".$_REQUEST['newContrast']." -H".$_REQUEST['newHue']." -O".$_REQUEST['newColour'] ); $zmuOutput = exec( escapeshellcmd( $zmuCommand ) ); - list( $brightness, $contrast, $hue, $colour ) = split( ' ', $zmuOutput ); + list( $brightness, $contrast, $hue, $colour ) = explode( ' ', $zmuOutput ); dbQuery( "update Monitors set Brightness = '".$brightness."', Contrast = '".$contrast."', Hue = '".$hue."', Colour = '".$colour."' where Id = '".$mid."'" ); } }