diff --git a/app/calls_active/app_languages.php b/app/calls_active/app_languages.php index 16be3233d3..31aa670fbf 100644 --- a/app/calls_active/app_languages.php +++ b/app/calls_active/app_languages.php @@ -16,14 +16,6 @@ $text['title']['pt-br'] = "Configurações da Conta"; $text['title']['pl'] = "Ustawienia konta"; $text['title']['sv-se'] = "Aktiva samtal"; -$text['label-transfer']['en-us'] = "Transfer To"; -$text['label-transfer']['es-cl'] = "Transferir a"; -$text['label-transfer']['fr-fr'] = "Transférer à"; -$text['label-transfer']['pt-pt'] = "Transferir Para"; -$text['label-transfer']['pt-br'] = "Tranferência"; -$text['label-transfer']['pl'] = "Transferowanie"; -$text['label-transfer']['sv-se'] = "Överför till"; - $text['label-time']['en-us'] = "Time"; $text['label-time']['es-cl'] = "Tiempo"; $text['label-time']['fr-fr'] = "Temps"; @@ -120,10 +112,10 @@ $text['label-message']['pt-br'] = "Mensagem"; $text['label-message']['pl'] = "Wiadomość"; $text['label-message']['sv-se'] = "Meddelande"; -$text['label-hangup']['en-us'] = "hangup"; -$text['label-hangup']['es-cl'] = "terminar"; -$text['label-hangup']['fr-fr'] = "raccrocher"; -$text['label-hangup']['pt-pt'] = "terminar"; +$text['label-hangup']['en-us'] = "Hangup"; +$text['label-hangup']['es-cl'] = "Terminar"; +$text['label-hangup']['fr-fr'] = "Raccrocher"; +$text['label-hangup']['pt-pt'] = "Terminar"; $text['label-hangup']['pt-br'] = "Desligar"; $text['label-hangup']['pl'] = "Zakończ rozmowę"; $text['label-hangup']['sv-se'] = "Avsluta"; diff --git a/app/calls_active/calls_active.php b/app/calls_active/calls_active.php index ef2fb98241..31e6d6136e 100644 --- a/app/calls_active/calls_active.php +++ b/app/calls_active/calls_active.php @@ -37,13 +37,11 @@ else { $language = new text; $text = $language->get(); -$conference_name = trim($_REQUEST["c"]); -$tmp_conference_name = str_replace("_", " ", $conference_name); - -require_once "resources/header.php"; $document['title'] = $text['title']; +require_once "resources/header.php"; +?> -?> ".$text['title'].""; +echo "

\n"; +echo $text['description']."\n"; +echo "

\n"; - -echo "\n"; -echo " \n"; -echo " \n"; -echo " \n"; -echo " \n"; -echo "
"; -echo " ".$text['title'].""; -echo "

\n"; -echo " ".$text['description']."\n"; -echo "

\n"; -echo "
\n"; - -echo " \n"; -echo " \n"; -echo " \n"; -echo " \n"; -echo "
\n"; -echo "
\n"; -echo "
\n"; -echo "
\n"; -echo "
\n"; -echo "
\n"; - -echo "
\n"; - -echo "
\n"; -echo "
".date('Y-m-d-s')."
\n"; +echo "
\n"; +echo "\n"; echo "


"; -echo "\n"; - require_once "resources/footer.php"; + +/* +// deprecated functions for this page + + function get_park_cmd(uuid, context) { + cmd = \"uuid_transfer \"+uuid+\" -bleg *6000 xml \"+context; + return escape(cmd); + } + + function get_record_cmd(uuid, prefix, name) { + cmd = \"uuid_record \"+uuid+\" start ".$_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/\"+uuid+\".wav\"; + return escape(cmd); + } +*/ ?> \ No newline at end of file diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index 8bbaba6420..0b48b91138 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -38,6 +38,9 @@ else { $language = new text; $text = $language->get(); +//include theme config for button images + include_once("themes/".$_SESSION['domain']['template']['name']."/config.php"); + //set the command $switch_cmd = 'show channels as json'; @@ -70,33 +73,20 @@ else { $row_style["1"] = "row_style1"; //show the results - echo "
\n"; - echo "
\n"; + echo "
\n"; - echo "\n"; + echo "
\n"; echo "\n"; - //echo "\n"; - //echo "\n"; - //echo "\n"; echo "\n"; echo "\n"; - //echo "\n"; - //echo "\n"; echo "\n"; - //echo "\n"; echo "\n"; echo "\n"; - //echo "\n"; echo "\n"; echo "\n"; - //echo "\n"; - //echo "\n"; echo "\n"; - //echo "\n"; - //echo "\n"; - //echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; foreach ($results["rows"] as $row) { @@ -104,6 +94,9 @@ else { foreach ($row as $key => $value) { $$key = $value; } + if (if_group("superadmin") && isset($_REQUEST['debug'])) { + echo ""; + } //get the sip profile $name_array = explode("/", $name); @@ -119,58 +112,40 @@ else { $cid_num = str_replace("+", "", $cid_num); echo "\n"; - //echo "\n"; - //echo "\n"; - //echo "\n"; - echo "\n"; - echo "\n"; - //echo "\n"; - //echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; - //echo "\n"; - echo "\n"; - echo "\n"; - //echo "\n"; - echo "\n"; - if (strlen($application) > 0) { - echo "\n"; - } - else { - echo "\n"; - } - //echo "\n"; - //echo "\n"; - echo "\n"; - //echo "\n"; - //echo "\n"; - //echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; - if ($c==0) { $c=1; } else { $c=0; } + $c = ($c) ? 0 : 1; } echo "\n"; echo "\n"; echo "
IDUUIDDir".$text['label-profile']."".$text['label-created']."Created EpochName".$text['label-number']."State".$text['label-cid-name']."".$text['label-cid-number']."IP Addr".$text['label-destination']."".$text['label-app']."DialplanContext".$text['label-codec']."Read RateWrite CodecWrite Rate".$text['label-secure']."".$text['label-opt']."
".print_r($row, true)."
$id  $uuid  $direction  $sip_profile  $created  $created_epoch  $name  ".$sip_profile." ".$created." ".$tmp_number." $state  $cid_name  $cid_num  $ip_addr  $dest  ".$application.":".$application_data."   $dialplan  $context  $read_codec:$read_rate / $write_codec:$write_rate  $read_rate  $write_codec  $write_rate  $secure  \n"; - //transfer - echo " ".$text['label-transfer']."';\" onclick=\"send_cmd('calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$text['label-transfer']." \n"; - //park - echo " ".$text['label-park']." \n"; - //hangup - echo " ".$text['label-hangup']." \n"; - //record start/stop - $tmp_dir = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d"); - mkdir($tmp_dir, 0777, true); - $tmp_file = $tmp_dir."/".$uuid.".wav"; - if (file_exists($tmp_file)) { - //stop - echo " ".$text['label-stop']." \n"; - } - else { - //start - echo " ".$text['label-start']." \n"; - } - echo "  "; - echo "".$cid_name." ".$cid_num." ".$dest." ".((strlen($application) > 0) ? $application.":".$application_data : null)." ".$read_codec.":".$read_rate." / ".$write_codec.":".$write_rate." ".$secure." ".$v_link_label_delete."
\n"; } + +/* +// deprecated features for this page + + //park + echo " ".$text['label-park']." \n"; + //record start/stop + $tmp_dir = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d"); + mkdir($tmp_dir, 0777, true); + $tmp_file = $tmp_dir."/".$uuid.".wav"; + if (file_exists($tmp_file)) { + //stop + echo " ".$text['label-stop']." \n"; + } + else { + //start + echo " ".$text['label-start']." \n"; + } +*/ ?> \ No newline at end of file diff --git a/app/fifo_list/fifo_list_inc.php b/app/fifo_list/fifo_list_inc.php index 19bef1a297..3a5235570b 100644 --- a/app/fifo_list/fifo_list_inc.php +++ b/app/fifo_list/fifo_list_inc.php @@ -38,9 +38,8 @@ else { $language = new text; $text = $language->get(); -//echo PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/config.php"; -//exit; -include_once("themes/".$_SESSION['domain']['template']['name']."/config.php"); +//include theme config for button images + include_once("themes/".$_SESSION['domain']['template']['name']."/config.php"); $switch_cmd = 'fifo list'; $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); diff --git a/app/operator_panel/index_inc.php b/app/operator_panel/index_inc.php index 1c833ebb5d..a1579b9ec1 100644 --- a/app/operator_panel/index_inc.php +++ b/app/operator_panel/index_inc.php @@ -372,7 +372,7 @@ foreach ($activity as $extension => $ext) { $block .= " "; $block .= ""; - if (isset($_GET['debug'])) { + if (if_group("superadmin") && isset($_GET['debug'])) { $block .= ""; $block .= "From ID
    ".$extension."
"; $block .= "uuid
    ".$ext['uuid']."
"; @@ -430,7 +430,7 @@ else { } echo "

"; -if (isset($_GET['debug'])) { +if (if_group("superadmin") && isset($_GET['debug'])) { echo '$activity
'; echo "