more work in translation to portuguese from Portugal (pt-pt)
This commit is contained in:
parent
42db314c54
commit
ba56a2ab8a
|
|
@ -35,4 +35,73 @@
|
|||
$content_calls_active['check-donotdisturbstatus']['en-us'] = 'Do Not Disturb';
|
||||
$content_calls_active['check-donotdisturbstatus']['pt-pt'] = 'Não Perturbar';
|
||||
|
||||
//v_calls_active_assigned_extensions_inc
|
||||
$content_calls_active['label-time']['en-us'] = 'Time';
|
||||
$content_calls_active['label-time']['pt-pt'] = 'Tempo';
|
||||
|
||||
$content_calls_active['label-cidname']['en-us'] = 'CID Name';
|
||||
$content_calls_active['label-cidname']['pt-pt'] = 'Nome CID';
|
||||
|
||||
$content_calls_active['label-cidnum']['en-us'] = 'CID Number';
|
||||
$content_calls_active['label-cidnum']['pt-pt'] = 'Numero CID';
|
||||
|
||||
$content_calls_active['label-dest']['en-us'] = 'Dest';
|
||||
$content_calls_active['label-dest']['pt-pt'] = 'Destino';
|
||||
|
||||
$content_calls_active['label-app']['en-us'] = 'Application';
|
||||
$content_calls_active['label-app']['pt-pt'] = 'Aplicação';
|
||||
|
||||
$content_calls_active['label-secure']['en-us'] = 'Secure';
|
||||
$content_calls_active['label-secure']['pt-pt'] = 'Seguro';
|
||||
|
||||
$content_calls_active['label-name']['en-us'] = 'Name';
|
||||
$content_calls_active['label-name']['pt-pt'] = 'Nome';
|
||||
|
||||
$content_calls_active['label-opt']['en-us'] = 'Options';
|
||||
$content_calls_active['label-opt']['pt-pt'] = 'Opções';
|
||||
|
||||
$content_calls_active['label-transf']['en-us'] = 'Transfer';
|
||||
$content_calls_active['label-transf']['pt-pt'] = 'Transferir';
|
||||
|
||||
$content_calls_active['label-park']['en-us'] = 'park';
|
||||
$content_calls_active['label-park']['pt-pt'] = 'parquear';
|
||||
|
||||
$content_calls_active['confirm-hangup']['en-us'] = 'Do you really want to hangup this call?';
|
||||
$content_calls_active['confirm-hangup']['pt-pt'] = 'Quer realmente terminar esta chamada?';
|
||||
|
||||
$content_calls_active['label-hangup']['en-us'] = 'hangup';
|
||||
$content_calls_active['label-hangup']['pt-pt'] = 'terminar';
|
||||
|
||||
$content_calls_active['label-stop']['en-us'] = 'stop record';
|
||||
$content_calls_active['label-stop']['pt-pt'] = 'parar de gravar';
|
||||
|
||||
$content_calls_active['label-start']['en-us'] = 'start record';
|
||||
$content_calls_active['label-start']['pt-pt'] = 'iniciar a gravação';
|
||||
|
||||
|
||||
//v_calls_active_extensions_inc
|
||||
$content_calls_active['confirm-socket']['en-us'] = 'Connection to Event Socket failed.';
|
||||
$content_calls_active['confirm-socket']['pt-pt'] = 'Conexão com socket falhou.';
|
||||
|
||||
$content_calls_active['label-message']['en-us'] = 'Message';
|
||||
$content_calls_active['label-message']['pt-pt'] = 'Mensagem';
|
||||
|
||||
$content_calls_active['label-ext']['en-us'] = 'Ext';
|
||||
$content_calls_active['label-ext']['pt-pt'] = 'Extensão';
|
||||
|
||||
$content_calls_active['label-parkext']['en-us'] = 'Park';
|
||||
$content_calls_active['label-parkext']['pt-pt'] = 'Parquear Extensão';
|
||||
|
||||
$content_calls_active['label-profile']['en-us'] = 'Profile';
|
||||
$content_calls_active['label-profile']['pt-pt'] = 'Perfil';
|
||||
|
||||
$content_calls_active['label-created']['en-us'] = 'Created';
|
||||
$content_calls_active['label-created']['pt-pt'] = 'Criado';
|
||||
|
||||
$content_calls_active['label-num']['en-us'] = 'Number';
|
||||
$content_calls_active['label-num']['pt-pt'] = 'Numero';
|
||||
|
||||
$content_calls_active['label-codec']['en-us'] = 'Read / Write Codec';
|
||||
$content_calls_active['label-codec']['pt-pt'] = 'Codec de Leitura / Escrita ';
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -51,16 +51,16 @@ if (permission_exists('extensions_active_assigned_view')) {
|
|||
else {
|
||||
echo "<th>".$content_calls_active['label-status']."</th>\n";
|
||||
}
|
||||
echo "<th>Time</th>\n";
|
||||
echo "<th>".$content_calls_active['label-time']."</th>\n";
|
||||
//echo "<th>Direction</th>\n";
|
||||
//echo "<th>Profile</th>\n";
|
||||
echo "<th>CID Name</th>\n";
|
||||
echo "<th>CID Number</th>\n";
|
||||
echo "<th>Dest</th>\n";
|
||||
echo "<th>Application</th>\n";
|
||||
echo "<th>Secure</th>\n";
|
||||
echo "<th>Name</th>\n";
|
||||
echo "<th>Options</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cidname']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cidnum']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-dest']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-app']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-secure']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-name']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-opt']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
foreach ($_SESSION['extension_array'] as $row) {
|
||||
$domain_uuid = $row['domain_uuid'];
|
||||
|
|
@ -161,20 +161,20 @@ if (permission_exists('extensions_active_assigned_view')) {
|
|||
echo "</td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
|
||||
//transfer
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>Transfer To</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">transfer</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$content_calls_active['label-transfer']."</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a> \n";
|
||||
//park
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">park</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a> \n";
|
||||
//hangup
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('Do you really want to hangup this call?');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">hangup</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a> \n";
|
||||
//record start/stop
|
||||
$tmp_file = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/".$uuid.".wav";
|
||||
if (file_exists($tmp_file)) {
|
||||
//stop
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">stop record</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a> \n";
|
||||
}
|
||||
else {
|
||||
//start
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">start record</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$content_calls_active['label-start']."</a> \n";
|
||||
}
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
include "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('extensions_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -34,6 +35,10 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
foreach($content_calls_active as $key => $value) {
|
||||
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//set debug to true or false
|
||||
$debug = false;
|
||||
|
||||
|
|
@ -94,11 +99,11 @@ else {
|
|||
|
||||
//get information over event socket
|
||||
if (!$fp) {
|
||||
$msg = "<div align='center'>Connection to Event Socket failed.<br /></div>";
|
||||
$msg = "<div align='center'>".$content_calls_active['confirm-socket']."<br /></div>";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='40%'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th align='left'>Message</th>\n";
|
||||
echo "<th align='left'>".$content_calls_active['label-message']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='row_style1'><strong>$msg</strong></td>\n";
|
||||
|
|
@ -325,27 +330,27 @@ else {
|
|||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th width='50px;'>Ext</th>\n";
|
||||
echo "<th width='50px;'>".$content_calls_active['label-ext']."</th>\n";
|
||||
if ($_SESSION['user_status_display'] == "false") {
|
||||
//hide the user_status when it is set to false
|
||||
}
|
||||
else {
|
||||
echo "<th>Status</th>\n";
|
||||
echo "<th>".$content_calls_active['label-status']."</th>\n";
|
||||
}
|
||||
echo "<th>Time</th>\n";
|
||||
echo "<th>".$content_calls_active['label-time']."</th>\n";
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if (strlen(($_GET['rows'])) == 0) {
|
||||
echo "<th>CID Name</th>\n";
|
||||
echo "<th>CID Number</th>\n";
|
||||
echo "<th>Dest</th>\n";
|
||||
echo "<th>App</th>\n";
|
||||
echo "<th>Secure</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cidname']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cidnum']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-dest']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-app']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-secure']."</th>\n";
|
||||
}
|
||||
}
|
||||
echo "<th>Name</th>\n";
|
||||
echo "<th>".$content_calls_active['label-name']."</th>\n";
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if (strlen(($_GET['rows'])) == 0) {
|
||||
echo "<th>Options</th>\n";
|
||||
echo "<th>".$content_calls_active['label-opt']."</th>\n";
|
||||
}
|
||||
}
|
||||
echo "</tr>\n";
|
||||
|
|
@ -457,20 +462,20 @@ else {
|
|||
if ($found_extension) {
|
||||
echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
|
||||
//transfer
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">transfer</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a> \n";
|
||||
//park
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">park</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a> \n";
|
||||
//hangup
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('Do you really want to hangup this call?');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">hangup</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a> \n";
|
||||
//record start/stop
|
||||
$tmp_file = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/".$uuid.".wav";
|
||||
if (file_exists($tmp_file)) {
|
||||
//stop
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">stop record</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a> \n";
|
||||
}
|
||||
else {
|
||||
//start
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">start record</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$content_calls_active['label-start']."</a> \n";
|
||||
}
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
|
|
@ -493,27 +498,27 @@ else {
|
|||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th>Ext</th>\n";
|
||||
echo "<th>".$content_calls_active['label-ext']."</th>\n";
|
||||
if ($_SESSION['user_status_display'] == "false") {
|
||||
//hide the user_status when it is set to false
|
||||
}
|
||||
else {
|
||||
echo "<th>Status</th>\n";
|
||||
echo "<th>".$content_calls_active['label-status']."</th>\n";
|
||||
}
|
||||
echo "<th>Time</th>\n";
|
||||
echo "<th>".$content_calls_active['label-time']."</th>\n";
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if ($_GET['rows'] == 0) {
|
||||
echo "<th>CID Name</th>\n";
|
||||
echo "<th>CID Number</th>\n";
|
||||
echo "<th>Dest</th>\n";
|
||||
echo "<th>App</th>\n";
|
||||
echo "<th>Secure</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cidname']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cidnum']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-dest']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-app']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-secure']."</th>\n";
|
||||
}
|
||||
}
|
||||
echo "<th>Name</th>\n";
|
||||
echo "<th>".$content_calls_active['label-name']."</th>\n";
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if ($_GET['rows'] == 0) {
|
||||
echo "<th>Options</th>\n";
|
||||
echo "<th>".$content_calls_active['label-opt']."</th>\n";
|
||||
}
|
||||
}
|
||||
echo "</tr>\n";
|
||||
|
|
@ -528,10 +533,10 @@ else {
|
|||
//valet park
|
||||
echo "<table width='100%' border='0' cellpadding='5' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th valign='top'>Park Extension</th>\n";
|
||||
echo "<th valign='top'>Time</th>\n";
|
||||
echo "<th valign='top'>CID Name</th>\n";
|
||||
echo "<th valign='top'>CID Number</th>\n";
|
||||
echo "<th valign='top'>".$content_calls_active['label-parkext']."</th>\n";
|
||||
echo "<th valign='top'>".$content_calls_active['label-time']."</th>\n";
|
||||
echo "<th valign='top'>".$content_calls_active['label-cidname']."</th>\n";
|
||||
echo "<th valign='top'>".$content_calls_active['label-cidnum']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
foreach ($valet_array as $row) {
|
||||
if (strlen($row['extension']) > 0) {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
include "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('calls_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -34,17 +35,21 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
foreach($content_calls_active as $key => $value) {
|
||||
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//set the command
|
||||
$switch_cmd = 'show channels';
|
||||
//create the event socket connection
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
//if the connnection is available then run it and return the results
|
||||
if (!$fp) {
|
||||
$msg = "<div align='center'>Connection to Event Socket failed.<br /></div>";
|
||||
$msg = "<div align='center'>".$content_calls_active['confirm-socket']."<br /></div>";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='40%'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th align='left'>Message</th>\n";
|
||||
echo "<th align='left'>".$content_calls_active['label-message']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='row_style1'><strong>$msg</strong></td>\n";
|
||||
|
|
@ -74,25 +79,25 @@ else {
|
|||
//echo "<th>ID</th>\n";
|
||||
//echo "<th>UUID</th>\n";
|
||||
//echo "<th>Dir</th>\n";
|
||||
echo "<th>Profile</th>\n";
|
||||
echo "<th>Created</th>\n";
|
||||
echo "<th>".$content_calls_active['label-profile']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-created']."</th>\n";
|
||||
//echo "<th>Created Epoch</th>\n";
|
||||
//echo "<th>Name</th>\n";
|
||||
echo "<th>Number</th>\n";
|
||||
echo "<th>".$content_calls_active['label-num']."</th>\n";
|
||||
//echo "<th>State</th>\n";
|
||||
echo "<th>CID Name</th>\n";
|
||||
echo "<th>CID Number</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cidname']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cidnum']."</th>\n";
|
||||
//echo "<th>IP Addr</th>\n";
|
||||
echo "<th>Dest</th>\n";
|
||||
echo "<th>Application</th>\n";
|
||||
echo "<th>".$content_calls_active['label-dest']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-app']."</th>\n";
|
||||
//echo "<th>Dialplan</th>\n";
|
||||
//echo "<th>Context</th>\n";
|
||||
echo "<th>Read / Write Codec</th>\n";
|
||||
echo "<th>".$content_calls_active['label-codec']."</th>\n";
|
||||
//echo "<th>Read Rate</th>\n";
|
||||
//echo "<th>Write Codec</th>\n";
|
||||
//echo "<th>Write Rate</th>\n";
|
||||
echo "<th>Secure</th>\n";
|
||||
echo "<th>Options</th>\n";
|
||||
echo "<th>".$content_calls_active['label-secure']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-opt']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
foreach ($result_array as $row) {
|
||||
|
|
@ -143,22 +148,22 @@ else {
|
|||
echo "<td valign='top' class='".$row_style[$c]."'>$secure </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align:center;'>\n";
|
||||
//transfer
|
||||
echo " <a href='javascript:void(0);' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>Transfer To</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">xfer</a> \n";
|
||||
echo " <a href='javascript:void(0);' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$content_calls_active['label-transfer']."</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a> \n";
|
||||
//park
|
||||
echo " <a href='javascript:void(0);' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">park</a> \n";
|
||||
echo " <a href='javascript:void(0);' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a> \n";
|
||||
//hangup
|
||||
echo " <a href='javascript:void(0);' onclick=\"confirm_response = confirm('Do you really want to hangup this call?');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">hangup</a> \n";
|
||||
echo " <a href='javascript:void(0);' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a> \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 " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_calls_&name='+escape('$cid_num'));\">stop rec</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_calls_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a> \n";
|
||||
}
|
||||
else {
|
||||
//start
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_calls_');\">rec</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_calls_');\">".$content_calls_active['label-start']."</a> \n";
|
||||
}
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
|
|
|
|||
|
|
@ -1,39 +1,150 @@
|
|||
<?php
|
||||
|
||||
$content['title']['en-us'] = 'Fax Server';
|
||||
$content['title']['pt-pt'] = 'Servidor de Fax';
|
||||
$content_fax['title']['en-us'] = 'Fax Server';
|
||||
$content_fax['title']['pt-pt'] = 'Servidor de Fax';
|
||||
|
||||
$content['description']['en-us'] = 'To receive a FAX setup a fax extension and then direct the incoming to it.';
|
||||
$content['description']['pt-pt'] = 'Para receber um FAX, configure uma extensão de fax e encaminhe o tráfego de entrada para essa extensão.';
|
||||
$content_fax['description']['en-us'] = 'To receive a FAX setup a fax extension and then direct the incoming to it.';
|
||||
$content_fax['description']['pt-pt'] = 'Para receber um FAX, configure uma extensão de fax e encaminhe o tráfego de entrada para essa extensão.';
|
||||
|
||||
$content['confirm-delete']['en-us'] = 'Are you sure you want to delete this?';
|
||||
$content['confirm-delete']['pt-pt'] = 'Tem a certeza que pretende apagar?';
|
||||
$content_fax['confirm-delete']['en-us'] = 'Are you sure you want to delete this?';
|
||||
$content_fax['confirm-delete']['pt-pt'] = 'Tem a certeza que pretende apagar?';
|
||||
|
||||
$content['label-extension']['en-us'] = 'Extension';
|
||||
$content['label-extension']['pt-pt'] = 'Extensão';
|
||||
$content_fax['label-extension']['en-us'] = 'Extension';
|
||||
$content_fax['label-extension']['pt-pt'] = 'Extensão';
|
||||
|
||||
$content['label-name']['en-us'] = 'Name';
|
||||
$content['label-name']['pt-pt'] = 'Nome';
|
||||
$content_fax['label-name']['en-us'] = 'Name';
|
||||
$content_fax['label-name']['pt-pt'] = 'Nome';
|
||||
|
||||
$content['label-email']['en-us'] = 'Email';
|
||||
$content['label-email']['pt-pt'] = 'E-mail';
|
||||
$content_fax['label-email']['en-us'] = 'Email';
|
||||
$content_fax['label-email']['pt-pt'] = 'E-mail';
|
||||
|
||||
$content['label-upload']['en-us'] = 'Upload';
|
||||
$content['label-upload']['pt-pt'] = 'Carregar';
|
||||
$content_fax['label-description']['en-us'] = 'Description';
|
||||
$content_fax['label-description']['pt-pt'] = 'Descrição';
|
||||
|
||||
$content_fax['label-upload']['en-us'] = 'Upload';
|
||||
$content_fax['label-upload']['pt-pt'] = 'Carregar';
|
||||
|
||||
$content_fax['label-uploadinfo']['en-us'] = 'Select the file to upload and send as a fax.';
|
||||
$content_fax['label-uploadinfo']['pt-pt'] = 'Selecione o ficheiro para fazer o upload e enviar por fax.';
|
||||
|
||||
$content['button-back']['en-us'] = 'Back';
|
||||
$content['button-back']['pt-pt'] = 'Voltar';
|
||||
|
||||
$content['button-settings']['en-us'] = 'Settings';
|
||||
$content['button-settings']['pt-pt'] = 'Configurações';
|
||||
$content_fax['button-settings']['en-us'] = 'Settings';
|
||||
$content_fax['button-settings']['pt-pt'] = 'Configurações';
|
||||
|
||||
$content['button-send']['en-us'] = 'Send';
|
||||
$content['button-send']['pt-pt'] = 'Enviar';
|
||||
$content_fax['button-send']['en-us'] = 'Send';
|
||||
$content_fax['button-send']['pt-pt'] = 'Enviar';
|
||||
|
||||
$content['button-copy']['en-us'] = 'Copy';
|
||||
$content['button-copy']['pt-pt'] = 'Copiar';
|
||||
$content_fax['button-copy']['en-us'] = 'Copy';
|
||||
$content_fax['button-copy']['pt-pt'] = 'Copiar';
|
||||
|
||||
$content['button-save']['en-us'] = 'Save';
|
||||
$content['button-save']['pt-pt'] = 'Guardar';
|
||||
$content_fax['button-save']['en-us'] = 'Save';
|
||||
$content_fax['button-save']['pt-pt'] = 'Guardar';
|
||||
|
||||
//fax_copy
|
||||
$content_fax['confirm-copy']['en-us'] = 'Copy Complete';
|
||||
$content_fax['confirm-copy']['pt-pt'] = 'Copia Completa';
|
||||
|
||||
//fax_delete
|
||||
$content_fax['confirm-delete']['en-us'] = 'Delete Complete';
|
||||
$content_fax['confirm-delete']['pt-pt'] = 'Eliminação Completa';
|
||||
|
||||
//fax_edit
|
||||
$content_fax['confirm-add']['en-us'] = 'Add Complete';
|
||||
$content_fax['confirm-add']['pt-pt'] = 'Adição Completa';
|
||||
|
||||
$content_fax['confirm-update']['en-us'] = 'Update Complete';
|
||||
$content_fax['confirm-update']['pt-pt'] = 'Actualização Completa';
|
||||
|
||||
$content_fax['confirm-ext']['en-us'] = 'Please provide: Extension';
|
||||
$content_fax['confirm-ext']['pt-pt'] = 'Por favor, forneça: Extensão';
|
||||
|
||||
$content_fax['confirm-fax']['en-us'] = 'Please provide: A file to Fax';
|
||||
$content_fax['confirm-fax']['pt-pt'] = 'Por favor forneça: um ficheiro para enviar Fax';
|
||||
|
||||
$content_fax['confirm-faxadd']['en-us'] = 'Fax Add';
|
||||
$content_fax['confirm-faxadd']['pt-pt'] = 'Adição de Fax';
|
||||
|
||||
$content_fax['confirm-faxedit']['en-us'] = 'Fax Edit';
|
||||
$content_fax['confirm-faxedit']['pt-pt'] = 'Edição de Fax';
|
||||
|
||||
$content_fax['confirm-copyinfo']['en-us'] = 'Do you really want to copy this?';
|
||||
$content_fax['confirm-copyinfo']['pt-pt'] = 'Deseja realmente copiar isto?';
|
||||
|
||||
$content_fax['label-nameinfo']['en-us'] = 'Enter the name here.';
|
||||
$content_fax['label-nameinfo']['pt-pt'] = 'Insira aqui o nome.';
|
||||
|
||||
$content_fax['label-extensioninfo']['en-us'] = 'Enter the fax extension here.';
|
||||
$content_fax['label-extensioninfo']['pt-pt'] = 'Insira aqui a extensão do fax';
|
||||
|
||||
$content_fax['label-emailinfo']['en-us'] = 'Enter the email address to send the FAX to.';
|
||||
$content_fax['label-emailinfo']['pt-pt'] = 'Insira o endereço de e-mail para enviar o fax.';
|
||||
|
||||
$content_fax['label-descriptioninfo']['en-us'] = 'Enter the description here.';
|
||||
$content_fax['label-descriptioninfo']['pt-pt'] = 'Insira aqui a descrição';
|
||||
|
||||
$content_fax['label-pin']['en-us'] = 'PIN Number';
|
||||
$content_fax['label-pin']['pt-pt'] = 'Numero PIN';
|
||||
|
||||
$content_fax['label-pininfo']['en-us'] = 'Enter the PIN number here.';
|
||||
$content_fax['label-pininfo']['pt-pt'] = 'Insira aqui o número do PIN.';
|
||||
|
||||
$content_fax['label-calleridname']['en-us'] = 'Caller ID Name';
|
||||
$content_fax['label-calleridname']['pt-pt'] = 'Nome de Origem';
|
||||
|
||||
$content_fax['label-calleridnumber']['en-us'] = 'Caller ID Number';
|
||||
$content_fax['label-calleridnumber']['pt-pt'] = 'Numero de Origem';
|
||||
|
||||
$content_fax['label-calleridnameinfo']['en-us'] = 'Enter the Caller ID name here.';
|
||||
$content_fax['label-calleridnameinfo']['pt-pt'] = 'Insira aqui o nome de Origem.';
|
||||
|
||||
$content_fax['label-calleridnumberinfo']['en-us'] = 'Enter the Caller ID number here.';
|
||||
$content_fax['label-calleridnumberinfo']['pt-pt'] = 'Insira aqui o numero de Origem.';
|
||||
|
||||
$content_fax['label-forward']['en-us'] = 'Forward Number';
|
||||
$content_fax['label-forward']['pt-pt'] = 'Numero de Encaminhamento';
|
||||
|
||||
$content_fax['label-forwardinfo']['en-us'] = 'Enter the forward number here. Used to forward the fax to a registered extension or external number.';
|
||||
$content_fax['label-forwardinfo']['pt-pt'] = 'Insira aqui o número de encaminhamento. Usado para encaminhar o fax para uma extensão registrada ou número externo.';
|
||||
|
||||
$content_fax['label-userlist']['en-us'] = 'User List';
|
||||
$content_fax['label-userlist']['pt-pt'] = 'Lista de utilizadores';
|
||||
|
||||
$content_fax['button-add']['en-us'] = 'Add';
|
||||
$content_fax['button-add']['pt-pt'] = 'Adicionar';
|
||||
|
||||
$content_fax['label-addinfo']['en-us'] = 'Assign the users that are can manage this fax extension.';
|
||||
$content_fax['label-addinfo']['pt-pt'] = 'Atribuir os utilizadores que podem gerir esta extensão de fax.';
|
||||
|
||||
$content_fax['label-file']['en-us'] = 'File not found.';
|
||||
$content_fax['label-file']['pt-pt'] = 'Ficheiro não encontrado.';
|
||||
|
||||
$content_fax['description2']['en-us'] = 'To send a fax you can upload a .tif file or if ghost script has been installed then you can also send a fax by uploading a PDF.';
|
||||
$content_fax['description2']['pt-pt'] = 'Para enviar um fax, pode carregar um ficheiro .tif ou se o ghost script foi instalado, então também pode enviar um fax, carregando um ficheiro .pdf.';
|
||||
|
||||
$content_fax['description3']['en-us'] = 'When sending a fax you can view status of the transmission by viewing the logs from the Status tab or by watching the response from the console.';
|
||||
$content_fax['description3']['pt-pt'] = 'Ao enviar um fax, pode ver o estado da transmissão, visualizando os logs da tab Status ou assistindo a resposta através da consola.';
|
||||
|
||||
$content_fax['label-faxnumber']['en-us'] = 'Fax Number';
|
||||
$content_fax['label-faxnumber']['pt-pt'] = 'Numero de Fax';
|
||||
|
||||
$content_fax['label-faxnumberinfo']['en-us'] = 'Enter the number here.';
|
||||
$content_fax['label-faxnumberinfo']['pt-pt'] = 'Insira aqui o numero.';
|
||||
|
||||
$content_fax['label-location']['en-us'] = 'location';
|
||||
$content_fax['label-location']['pt-pt'] = 'localização';
|
||||
|
||||
$content_fax['tabel-file']['en-us'] = 'File Name (download)';
|
||||
$content_fax['tabel-file']['pt-pt'] = 'Nome do Ficheiro (descarregado)';
|
||||
|
||||
$content_fax['tabel-view']['en-us'] = 'View';
|
||||
$content_fax['tabel-view']['pt-pt'] = 'Visualizar';
|
||||
|
||||
$content_fax['tabel-modified']['en-us'] = 'Last Modified';
|
||||
$content_fax['tabel-modified']['pt-pt'] = 'Última alteração';
|
||||
|
||||
$content_fax['tabel-size']['en-us'] = 'Size';
|
||||
$content_fax['tabel-size']['pt-pt'] = 'Tamanho';
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
include "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
require_once "includes/Logging.php";
|
||||
|
||||
if (permission_exists('fax_extension_view')) {
|
||||
//access granted
|
||||
|
|
@ -38,11 +39,8 @@ require_once "includes/header.php";
|
|||
require_once "includes/paging.php";
|
||||
|
||||
//prepare the languages
|
||||
echo "<!--\n";
|
||||
require_once "app_languages.php";
|
||||
echo "-->\n";
|
||||
foreach($content as $key => $value) {
|
||||
$content[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
foreach($content_fax as $key => $value) {
|
||||
$content_fax[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//get the http get values and set them as php variables
|
||||
|
|
@ -59,7 +57,7 @@ require_once "includes/paging.php";
|
|||
echo " <tr>\n";
|
||||
echo " <td align='left'>\n";
|
||||
echo " <p><span class=\"vexpl\"><span class=\"red\"><strong>FAX<br></strong></span>\n";
|
||||
echo " To receive a FAX setup a fax extension and then direct the incoming to it.\n";
|
||||
echo " ".$content_fax['description']."\n";
|
||||
echo " </p>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
|
@ -125,10 +123,10 @@ require_once "includes/paging.php";
|
|||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('fax_extension', 'Extension', $order_by, $order);
|
||||
echo th_order_by('fax_name', 'Name', $order_by, $order);
|
||||
echo th_order_by('fax_email', 'Email', $order_by, $order);
|
||||
echo th_order_by('fax_description', 'Description', $order_by, $order);
|
||||
echo th_order_by('fax_extension', $content_fax['label-extension'], $order_by, $order);
|
||||
echo th_order_by('fax_name', $content_fax['label-name'], $order_by, $order);
|
||||
echo th_order_by('fax_email', $content_fax['label-email'], $order_by, $order);
|
||||
echo th_order_by('fax_description', $content_fax['label-description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('fax_extension_add')) {
|
||||
echo " <a href='fax_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
|
|
@ -148,7 +146,7 @@ require_once "includes/paging.php";
|
|||
echo " <a href='fax_view.php?id=".$row['fax_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('fax_extension_delete')) {
|
||||
echo " <a href='fax_delete.php?id=".$row['fax_uuid']."' alt='delete' onclick=\"return confirm('".$content['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
echo " <a href='fax_delete.php?id=".$row['fax_uuid']."' alt='delete' onclick=\"return confirm('".$content_fax['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ include "root.php";
|
|||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
require_once "includes/paging.php";
|
||||
require_once "app_languages.php";
|
||||
if (permission_exists('fax_extension_add')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -35,6 +36,10 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
foreach($content_fax as $key => $value) {
|
||||
$content_fax[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//set the http get/post variable(s) to a php variable
|
||||
if (isset($_REQUEST["id"])) {
|
||||
$fax_uuid = check_str($_REQUEST["id"]);
|
||||
|
|
@ -105,7 +110,7 @@ else {
|
|||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=fax.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Copy Complete\n";
|
||||
echo "".$content_fax['confirm-copy']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
include "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
require_once "app_languages.php";
|
||||
if (permission_exists('fax_extension_delete')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -34,6 +35,11 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
//prepare the languages
|
||||
foreach($content_fax as $key => $value) {
|
||||
$content_fax[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//get the http get value and set it as a php variable
|
||||
if (count($_GET)>0) {
|
||||
$fax_uuid = check_str($_GET["id"]);
|
||||
|
|
@ -86,7 +92,7 @@ else {
|
|||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=fax.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Delete Complete\n";
|
||||
echo "".$content_fax['confirm-delete']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
include "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
require_once "app_languages.php";
|
||||
if (permission_exists('fax_extension_add') || permission_exists('fax_extension_edit') || permission_exists('fax_extension_delete')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -34,6 +35,11 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
//prepare the languages
|
||||
foreach($content_fax as $key => $value) {
|
||||
$content_fax[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//get the fax_extension and save it as a variable
|
||||
if (strlen($_REQUEST["fax_extension"]) > 0) {
|
||||
$fax_extension = check_str($_REQUEST["fax_extension"]);
|
||||
|
|
@ -125,7 +131,7 @@ else {
|
|||
//redirect the browser
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=fax_edit.php?id=$fax_uuid\">\n";
|
||||
echo "<div align='center'>Delete Complete</div>";
|
||||
echo "<div align='center'>".$content_fax['confirm-delete']."</div>";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
}
|
||||
|
|
@ -154,7 +160,7 @@ else {
|
|||
//redirect the browser
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=fax_edit.php?id=$fax_uuid\">\n";
|
||||
echo "<div align='center'>Add Complete</div>";
|
||||
echo "<div align='center'>".$content_fax['confirm-add']."</div>";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
}
|
||||
|
|
@ -170,8 +176,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
}
|
||||
|
||||
//check for all required data
|
||||
if (strlen($fax_extension) == 0) { $msg .= "Please provide: Extension<br>\n"; }
|
||||
if (strlen($fax_name) == 0) { $msg .= "Please provide: A file to Fax<br>\n"; }
|
||||
if (strlen($fax_extension) == 0) { $msg .= "".$content_fax['confirm-ext']."<br>\n"; }
|
||||
if (strlen($fax_name) == 0) { $msg .= "".$content_fax['confirm-fax']."<br>\n"; }
|
||||
//if (strlen($fax_email) == 0) { $msg .= "Please provide: Email<br>\n"; }
|
||||
//if (strlen($fax_pin_number) == 0) { $msg .= "Please provide: Pin Number<br>\n"; }
|
||||
//if (strlen($fax_caller_id_name) == 0) { $msg .= "Please provide: Caller ID Name<br>\n"; }
|
||||
|
|
@ -448,10 +454,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "<meta http-equiv=\"refresh\" content=\"2;url=fax.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
if ($action == "update" && permission_exists('fax_extension_edit')) {
|
||||
echo "Update Complete\n";
|
||||
echo "".$content_fax['confirm-update']."\n";
|
||||
}
|
||||
if ($action == "add" && permission_exists('fax_extension_add')) {
|
||||
echo "Add Complete\n";
|
||||
echo "".$content_fax['confirm-add']."\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
|
|
@ -502,109 +508,98 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
if ($action == "add") {
|
||||
echo "<td align='left' width='30%' nowrap><b>Fax Add</b></td>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$content_fax['confirm-faxadd']."</b></td>\n";
|
||||
}
|
||||
if ($action == "update") {
|
||||
echo "<td align='left' width='30%' nowrap><b>Fax Edit</b></td>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$content_fax['confirm-faxedit']."</b></td>\n";
|
||||
}
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='copy' onclick=\"if (confirm('Do you really want to copy this?')){window.location='fax_copy.php?id=".$fax_uuid."';}\" value='Copy'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='fax.php'\" value='Back'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='copy' onclick=\"if (confirm('".$content_fax['confirm-copyinfo']."')){window.location='fax_copy.php?id=".$fax_uuid."';}\" value='".$content_fax['button-copy']."'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='fax.php'\" value='".$content_fax['button-back']."'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Name:\n";
|
||||
echo " ".$content_fax['label-name'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_name' maxlength='255' value=\"$fax_name\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the name.\n";
|
||||
echo "".$content_fax['label-nameinfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Extension:\n";
|
||||
echo " ".$content_fax['label-extension'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_extension' maxlength='255' value=\"$fax_extension\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the fax extension number.\n";
|
||||
echo "".$content_fax['label-extensioninfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Destination Number:\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_destination_number' maxlength='255' value=\"$fax_destination_number\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the fax destination number.\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Email:\n";
|
||||
echo " ".$content_fax['label-email'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_email' maxlength='255' value=\"$fax_email\">\n";
|
||||
echo "<br />\n";
|
||||
echo " Enter the email address to send the FAX to.\n";
|
||||
echo " ".$content_fax['label-emailinfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " PIN Number:\n";
|
||||
echo " ".$content_fax['label-pin'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_pin_number' maxlength='255' value=\"$fax_pin_number\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the PIN number.\n";
|
||||
echo "".$content_fax['label-pininfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Caller ID Name:\n";
|
||||
echo " ".$content_fax['label-calleridname'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_caller_id_name' maxlength='255' value=\"$fax_caller_id_name\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the Caller ID Name.\n";
|
||||
echo "".$content_fax['label-calleridnameinfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Caller ID Number:\n";
|
||||
echo " ".$content_fax['label-calleridnumber'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_caller_id_number' maxlength='255' value=\"$fax_caller_id_number\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the Caller ID Number.\n";
|
||||
echo "".$content_fax['label-calleridnumberinfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Forward Number:\n";
|
||||
echo " ".$content_fax['label-forward'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_forward_number' maxlength='255' value=\"".format_phone($fax_forward_number)."\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the forward number. Used to forward the fax to a registered extension or external number.\n";
|
||||
echo "".$content_fax['label-forwardinfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if ($action == "update") {
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell' valign='top'>User List:</td>";
|
||||
echo " <td class='vncell' valign='top'>".$content_fax['label-userlist'].":</td>";
|
||||
echo " <td class='vtable'>";
|
||||
|
||||
echo " <table width='52%'>\n";
|
||||
|
|
@ -620,7 +615,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo " <tr>\n";
|
||||
echo " <td class='vtable'>".$field['username']."</td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <a href='fax_edit.php?id=".$fax_uuid."&domain_uuid=".$_SESSION['domain_uuid']."&user_uuid=".$field['user_uuid']."&a=delete' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
echo " <a href='fax_edit.php?id=".$fax_uuid."&domain_uuid=".$_SESSION['domain_uuid']."&user_uuid=".$field['user_uuid']."&a=delete' alt='delete' onclick=\"return confirm('".$content_fax['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
}
|
||||
|
|
@ -638,10 +633,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo " <option value='".$field['user_uuid']."'>".$field['username']."</option>\n";
|
||||
}
|
||||
echo " </select>";
|
||||
echo " <input type=\"submit\" class='btn' value=\"Add\">\n";
|
||||
echo " <input type=\"submit\" class='btn' value=\"".$content_fax['button-add']."\">\n";
|
||||
unset($sql, $result);
|
||||
echo " <br>\n";
|
||||
echo " Assign the users that are can manage this fax extension.\n";
|
||||
echo " ".$content_fax['label-addinfo']."\n";
|
||||
echo " <br />\n";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
|
|
@ -650,12 +645,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Description:\n";
|
||||
echo " ".$content_fax['label-description'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_description' maxlength='255' value=\"$fax_description\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the description.\n";
|
||||
echo "".$content_fax['label-descriptioninfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo " <tr>\n";
|
||||
|
|
@ -664,7 +659,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo " <input type='hidden' name='fax_uuid' value='$fax_uuid'>\n";
|
||||
echo " <input type='hidden' name='dialplan_uuid' value='$dialplan_uuid'>\n";
|
||||
}
|
||||
echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$content_fax['button-save']."'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
include "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
require_once "app_languages.php";
|
||||
if (permission_exists('fax_extension_view')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -34,6 +35,11 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
//prepare the languages
|
||||
foreach($content_fax as $key => $value) {
|
||||
$content_fax[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//get the fax_extension and save it as a variable
|
||||
if (strlen($_REQUEST["fax_extension"]) > 0) {
|
||||
$fax_extension = check_str($_REQUEST["fax_extension"]);
|
||||
|
|
@ -154,7 +160,7 @@ else {
|
|||
fpassthru($fd);
|
||||
}
|
||||
else {
|
||||
echo "File not found.";
|
||||
echo "".$content_fax['label-file']."";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
|
@ -325,13 +331,13 @@ else {
|
|||
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td align='left' width='30%'>\n";
|
||||
echo " <span class=\"vexpl\"><span class=\"red\"><strong>Fax Server</strong></span>\n";
|
||||
echo " <span class=\"vexpl\"><span class=\"red\"><strong>".$content_fax['title']."</strong></span>\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' align='right'>\n";
|
||||
if (permission_exists('fax_extension_add') || permission_exists('fax_extension_edit')) {
|
||||
echo " <input type='button' class='btn' name='' alt='settings' onclick=\"window.location='fax_edit.php?id=$fax_uuid'\" value='Settings'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='settings' onclick=\"window.location='fax_edit.php?id=$fax_uuid'\" value='".$content_fax['button-settings']."'>\n";
|
||||
}
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='fax.php'\" value='Back'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='fax.php'\" value='".$content_fax['button-back']."'>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
|
@ -343,33 +349,33 @@ else {
|
|||
echo " <tr>\n";
|
||||
echo " <td colspan='2' align='left'>\n";
|
||||
//pkg_add -r ghostscript8-nox11; rehash
|
||||
echo " To send a fax you can upload a .tif file or if ghost script has been installed then you can also send a fax by uploading a PDF. \n";
|
||||
echo " When sending a fax you can view status of the transmission by viewing the logs from the Status tab or by watching the response from the console.\n";
|
||||
echo " ".$content_fax['description2']." \n";
|
||||
echo " ".$content_fax['description3']."\n";
|
||||
echo " <br /><br />\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Fax Number:\n";
|
||||
echo " ".$content_fax['label-faxnumber'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input type=\"text\" name=\"fax_number\" class='formfld' style='' value=\"\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Enter the Number here.\n";
|
||||
echo "".$content_fax['label-faxnumberinfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Upload:\n";
|
||||
echo " ".$content_fax['label-upload'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input name=\"id\" type=\"hidden\" value=\"\$id\">\n";
|
||||
echo " <input name=\"type\" type=\"hidden\" value=\"fax_send\">\n";
|
||||
echo " <input name=\"fax_file\" type=\"file\" class=\"btn\" id=\"fax_file\">\n";
|
||||
echo " <br />\n";
|
||||
echo " Select the file to upload and send as a fax.\n";
|
||||
echo " ".$content_fax['label-uploadinfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
|
|
@ -379,7 +385,7 @@ else {
|
|||
echo " <input type=\"hidden\" name=\"fax_caller_id_number\" value=\"".$fax_caller_id_number."\">\n";
|
||||
echo " <input type=\"hidden\" name=\"fax_extension\" value=\"".$fax_extension."\">\n";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=\"".$fax_uuid."\">\n";
|
||||
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"Send\">\n";
|
||||
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"".$content_fax['button-send']."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
|
@ -399,7 +405,7 @@ else {
|
|||
echo " </td>\n";
|
||||
echo " <td align='right'>";
|
||||
if ($v_path_show) {
|
||||
echo "<b>location:</b> ";
|
||||
echo "<b>".$content_fax['label-location'].":</b> ";
|
||||
echo $dir_fax_inbox." ";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
|
@ -414,10 +420,10 @@ else {
|
|||
echo " <div id=\"\">\n";
|
||||
echo " <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <th width=\"60%\" class=\"listhdrr\">File Name (download)</td>\n";
|
||||
echo " <th width=\"10%\" class=\"listhdrr\">View</td>\n";
|
||||
echo " <th width=\"20%\" class=\"listhdr\">Last Modified</td>\n";
|
||||
echo " <th width=\"10%\" class=\"listhdr\" nowrap>Size</td>\n";
|
||||
echo " <th width=\"60%\" class=\"listhdrr\">".$content_fax['tabel-file']."</td>\n";
|
||||
echo " <th width=\"10%\" class=\"listhdrr\">".$content_fax['tabel-view']."</td>\n";
|
||||
echo " <th width=\"20%\" class=\"listhdr\">".$content_fax['tabel-modified']."</td>\n";
|
||||
echo " <th width=\"10%\" class=\"listhdr\" nowrap>Size".$content_fax['tabel-size']."</td>\n";
|
||||
echo " </tr>";
|
||||
|
||||
|
||||
|
|
@ -513,7 +519,7 @@ else {
|
|||
echo " <table border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n";
|
||||
echo " <tr>\n";
|
||||
if (permission_exists('fax_inbox_delete')) {
|
||||
echo " <td><a href=\"fax_view.php?id=".$fax_uuid."&type=fax_inbox&a=del&fax_extension=".urlencode($fax_extension)."&filename=".urlencode($file)."\" onclick=\"return confirm('Do you really want to delete this file?')\">$v_link_label_delete</a></td>\n";
|
||||
echo " <td><a href=\"fax_view.php?id=".$fax_uuid."&type=fax_inbox&a=del&fax_extension=".urlencode($fax_extension)."&filename=".urlencode($file)."\" onclick=\"return confirm('".$content_fax['confirm-delete']."')\">$v_link_label_delete</a></td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
|
|
@ -542,7 +548,7 @@ else {
|
|||
echo " </td>\n";
|
||||
echo " <td align='right'>\n";
|
||||
if ($v_path_show) {
|
||||
echo "<b>location: </b>\n";
|
||||
echo "<b>".$content_fax['label-location'].": </b>\n";
|
||||
echo $dir_fax_sent." \n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
|
@ -551,10 +557,10 @@ else {
|
|||
echo "\n";
|
||||
echo " <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <th width=\"60%\">File Name (download)</td>\n";
|
||||
echo " <th width=\"10%\">View</td>\n";
|
||||
echo " <th width=\"20%\">Last Modified</td>\n";
|
||||
echo " <th width=\"10%\" nowrap>Size</td>\n";
|
||||
echo " <th width=\"60%\">".$content_fax['tabel-file']."</td>\n";
|
||||
echo " <th width=\"10%\">".$content_fax['tabel-view']."</td>\n";
|
||||
echo " <th width=\"20%\">".$content_fax['tabel-modified']."</td>\n";
|
||||
echo " <th width=\"10%\" nowrap>".$content_fax['tabel-size']."</td>\n";
|
||||
echo " </tr>";
|
||||
|
||||
if ($handle = opendir($dir_fax_sent)) {
|
||||
|
|
@ -647,7 +653,7 @@ else {
|
|||
echo " <table border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n";
|
||||
echo " <tr>\n";
|
||||
if (permission_exists('fax_sent_delete')) {
|
||||
echo " <td><a href=\"fax_view.php?id=".$fax_uuid."&type=fax_sent&a=del&fax_extension=".urlencode($fax_extension)."&filename=".urlencode($file)."\" onclick=\"return confirm('Do you really want to delete this file?')\">$v_link_label_delete</a></td>\n";
|
||||
echo " <td><a href=\"fax_view.php?id=".$fax_uuid."&type=fax_sent&a=del&fax_extension=".urlencode($fax_extension)."&filename=".urlencode($file)."\" onclick=\"return confirm('".$content_fax['confirm-delete']."')\">$v_link_label_delete</a></td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue