mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-02-18 15:11:22 -05:00
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
This commit is contained in:
@@ -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."'" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user