Fix the interactive conference links.

This commit is contained in:
Mark Crane
2012-12-07 22:53:13 +00:00
parent e26100dbe9
commit 7a0761375c
+7 -8
View File
@@ -49,12 +49,6 @@ else {
exit; exit;
} }
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//get the http values and set them as php variables //get the http values and set them as php variables
if (count($_GET)>0) { if (count($_GET)>0) {
$cmd = trim(check_str($_GET["cmd"])); $cmd = trim(check_str($_GET["cmd"]));
@@ -70,16 +64,17 @@ else {
//authorized; //authorized;
} else { } else {
//not found. this command is not authorized //not found. this command is not authorized
echo $text['message-denied']; echo "access denied";
exit; exit;
} }
//check if the domain is in the switch_cmd //check if the domain is in the switch_cmd
if(stristr($name, $_SESSION['domain_name']) === FALSE) { if(stristr($name, $_SESSION['domain_name']) === FALSE) {
echo $text['message-denied']; echo "access denied";
exit; exit;
} }
//execute the command
if (count($_GET) > 0) { if (count($_GET) > 0) {
if (strlen($cmd) > 0) { if (strlen($cmd) > 0) {
//prepare the switch cmd //prepare the switch cmd
@@ -134,9 +129,13 @@ if (count($_GET)>0) {
$switch_cmd .= $recording_dir."/".$uuid.".wav"; $switch_cmd .= $recording_dir."/".$uuid.".wav";
$switch_result = event_socket_request($fp, 'api '.$switch_cmd); $switch_result = event_socket_request($fp, 'api '.$switch_cmd);
} }
elseif ($data == "kick") {
$switch_result = event_socket_request($fp, "api ".$switch_cmd);
}
//else { //else {
// $switch_result = event_socket_request($fp, 'api '.$switch_cmd); // $switch_result = event_socket_request($fp, 'api '.$switch_cmd);
//} //}
//echo $switch_cmd."<br\n>";
} }
} }
} }