refs #208 removes some comments
parent
49dfba6c95
commit
cc0a0bffbc
|
@ -66,7 +66,7 @@ public function installOglive($isoname)
|
|||
|
||||
public function callOgLive($parameter)
|
||||
{
|
||||
$socketPath = '/tmp/oglive_daemon.sock'; // Path to the UNIX socket
|
||||
$socketPath = '/tmp/oglive_daemon.sock';
|
||||
$socket = socket_create(AF_UNIX, SOCK_STREAM, 0);
|
||||
if ($socket === false) {
|
||||
syslog(LOG_ERR, 'Error al crear el socket: ' . socket_strerror(socket_last_error()));
|
||||
|
@ -87,7 +87,7 @@ public function callOgLive($parameter)
|
|||
}
|
||||
|
||||
$args = explode(' ', $parameter);
|
||||
$action = array_shift($args); // Toma la primera palabra como la acción
|
||||
$action = array_shift($args);
|
||||
$command = [
|
||||
'action' => $action,
|
||||
'args' => $args
|
||||
|
|
Loading…
Reference in New Issue