diff --git a/app/registrations/app_languages.php b/app/registrations/app_languages.php index ac1d900f98..8dee17e7db 100644 --- a/app/registrations/app_languages.php +++ b/app/registrations/app_languages.php @@ -50,6 +50,16 @@ $text['button-reboot']['pt-pt'] = "Reinicialização"; $text['button-reboot']['fr-fr'] = "Redémarrage"; + $text['button-reboot']['en-us'] = "Reboot"; + $text['button-reboot']['es-cl'] = "Reiniciar"; + $text['button-reboot']['pt-pt'] = "Reinicialização"; + $text['button-reboot']['fr-fr'] = "Redémarrage"; + + $text['button-check_sync']['en-us'] = "Check Sync"; + $text['button-check_sync']['es-cl'] = "Compruebe Sync"; + $text['button-check_sync']['pt-pt'] = "Sincronização"; + $text['button-check_sync']['fr-fr'] = "Contrôle Sync"; + $text['label-message']['en-us'] = "Message"; $text['label-message']['es-cl'] = "Mensaje"; $text['label-message']['pt-pt'] = "Mensagem"; diff --git a/app/registrations/cmd.php b/app/registrations/cmd.php index 66f5e7ef74..998d482931 100644 --- a/app/registrations/cmd.php +++ b/app/registrations/cmd.php @@ -73,15 +73,20 @@ else { //create the event socket connection $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) { - //app.lua event_notify - if ($cmd == "reboot" || $cmd == "resync") { - $cmd_complete = "api luarun app.lua event_notify ".$cmd." ".$user." ".$domain." ".$vendor; - $response = event_socket_request($fp, $cmd_complete); - - $_SESSION['message'] = $text['label-event']." ".ucwords($cmd)."     ".$text['label-response'].$response; - unset($cmd); + //lua + //$command = "api luarun app.lua event_notify ".$cmd." ".$user." ".$domain." ".$vendor; + //reboot + if ($cmd == "reboot") { + $command = "api sofia profile internal flush_inbound_reg ".$user." reboot"; } - + //check_sync + if ($cmd == "check_sync") { + $command = "api sofia profile internal check_sync ".$user; + } + //send the command + $response = event_socket_request($fp, $command); + //show the response + $_SESSION['message'] = $text['label-event']." ".ucwords($cmd)."     ".$text['label-response'].$response; //close the connection fclose($fp); } diff --git a/app/registrations/status_registrations.php b/app/registrations/status_registrations.php index a46f6709d3..2382c1bd11 100644 --- a/app/registrations/status_registrations.php +++ b/app/registrations/status_registrations.php @@ -210,8 +210,8 @@ require_once "resources/check_auth.php"; //echo "  ".$row['mwi-account']." \n"; echo "  ".$row['status']." \n"; echo " \n"; - //echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo "\n"; if ($c==0) { $c=1; } else { $c=0; }