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