Fix the gateway cache add the hostname and increase the security.

This commit is contained in:
Mark Crane
2013-11-27 16:47:06 +00:00
parent 4227ae1199
commit 2997c0a8f1
3 changed files with 25 additions and 23 deletions
+2 -2
View File
@@ -52,12 +52,12 @@ else {
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
if (strlen($_GET["a"]) > 0) {
$profile = $_GET["profile"];
$profile = check_str($_GET["profile"]);
if (strlen($profile) == 0) {
$profile = 'external';
}
if ($_GET["a"] == "stop") {
$gateway_name = $_GET["gateway"];
$gateway_name = check_str($_GET["gateway"]);
if (count($_SESSION["domains"]) > 1) {
$cmd = 'api sofia profile '.$profile.' killgw '.$_SESSION['domain_name'].'-'.$gateway_name;
}