This commit is contained in:
Isaac Connor committed 2019-05-24 10:00:51 -04:00
1 parent 4e51379087
commit c02eb2cd46
1 file changed
+8 -8
+8 -8
View File
@@ -35,11 +35,11 @@ if ( sem_acquire($semaphore,1) !== false ) {
$msg = pack( 'lcn', MSG_CMD, $_REQUEST['command'], $_REQUEST['rate']+32768 );
break;
case CMD_ZOOMIN :
ZM\Logger::Debug( 'Zooming to '.$_REQUEST['x'].",".$_REQUEST['y'] );
ZM\Logger::Debug( 'Zooming to '.$_REQUEST['x'].','.$_REQUEST['y'] );
$msg = pack( 'lcnn', MSG_CMD, $_REQUEST['command'], $_REQUEST['x'], $_REQUEST['y'] );
break;
case CMD_PAN :
ZM\Logger::Debug( 'Panning to '.$_REQUEST['x'].",".$_REQUEST['y'] );
ZM\Logger::Debug( 'Panning to '.$_REQUEST['x'].','.$_REQUEST['y'] );
$msg = pack( 'lcnn', MSG_CMD, $_REQUEST['command'], $_REQUEST['x'], $_REQUEST['y'] );
break;
case CMD_SCALE :
@@ -131,7 +131,7 @@ if ( sem_acquire($semaphore,1) !== false ) {
$data['auth'] = generateAuthHash(ZM_AUTH_HASH_IPS);
}
}
ajaxResponse( array( 'status'=>$data ) );
ajaxResponse(array('status'=>$data));
break;
case MSG_DATA_EVENT :
if ( version_compare( phpversion(), '5.6.0', '<') ) {
@@ -158,16 +158,16 @@ if ( sem_acquire($semaphore,1) !== false ) {
sem_release($semaphore);
} else {
ZM\Logger::Debug("Couldn't get semaphore");
ajaxResponse( array() );
ajaxResponse(array());
}
ajaxError('Unrecognised action or insufficient permissions in ajax/stream');
function ajaxCleanup() {
global $socket, $localSocketFile;
if ( !empty( $socket ) )
@socket_close( $socket );
if ( !empty( $localSocketFile ) )
@unlink( $localSocketFile );
if ( !empty($socket) )
@socket_close($socket);
if ( !empty($localSocketFile) )
@unlink($localSocketFile);
}
?>