start of translation to portuguese from Portugal (pt-pt)

This commit is contained in:
Nuno Miguel Reis
2012-10-06 18:00:11 +00:00
parent 74a7f0bb7f
commit e1a3d90cfe
21 changed files with 626 additions and 147 deletions

View File

@@ -0,0 +1,90 @@
<?php
$content_calls['title']['en-us'] = 'Calls';
$content_calls['title']['pt-pt'] = 'Chamadas';
$content_calls['description']['en-us'] = 'Directs incoming calls for extension:';
$content_calls['description']['pt-pt'] = 'Direciona as chamadas recebidas para a extensão:';
$content_calls['description2']['en-us'] = 'Use the links to configure call forward follow me, or do no disturb.';
$content_calls['description2']['pt-pt'] = 'Utilizar os links para definir as funcinalidades de encaminhamento de chamada, segue-me, ou não perturbar.';
$content_calls['description3']['en-us'] = 'The following list the extensions that have been assigned to this user account.';
$content_calls['description3']['pt-pt'] = 'A tabela a seguir lista as extensões que foram atribuídas a esta conta de utilizador.';
$content_calls['lable-callforward']['en-us'] = 'Call Forward';
$content_calls['lable-callforward']['pt-pt'] = 'Encaminhamento de Chamada';
$content_calls['lable-enabled']['en-us'] = 'Enabled';
$content_calls['lable-enabled']['pt-pt'] = 'Activo';
$content_calls['lable-enable']['en-us'] = 'Enable';
$content_calls['lable-enable']['pt-pt'] = 'Activar';
$content_calls['lable-disabled']['en-us'] = 'Disabled';
$content_calls['lable-disabled']['pt-pt'] = 'Desactivo';
$content_calls['lable-disable']['en-us'] = 'Disabled';
$content_calls['lable-disable']['pt-pt'] = 'Desactivar';
$content_calls['lable-number']['en-us'] = 'Number';
$content_calls['lable-number']['pt-pt'] = 'Numero';
$content_calls['lable-followme']['en-us'] = 'Follow Me';
$content_calls['lable-followme']['pt-pt'] = 'Segue-me';
$content_calls['lable-ring1']['en-us'] = 'Ring 1st Number';
$content_calls['lable-ring1']['pt-pt'] = '1º Numero a Tocar';
$content_calls['lable-ring2']['en-us'] = 'Ring 2st Number';
$content_calls['lable-ring2']['pt-pt'] = '2º Numero a Tocar';
$content_calls['lable-ring3']['en-us'] = 'Ring 3st Number';
$content_calls['lable-ring3']['pt-pt'] = '3º Numero a Tocar';
$content_calls['lable-ring4']['en-us'] = 'Ring 4st Number';
$content_calls['lable-ring4']['pt-pt'] = '4º Numero a Tocar';
$content_calls['lable-ring5']['en-us'] = 'Ring 5st Number';
$content_calls['lable-ring5']['pt-pt'] = '5º Numero a Tocar';
$content_calls['lable-ringorder']['en-us'] = 'Ring Order';
$content_calls['lable-ringorder']['pt-pt'] = 'Ordem de chamada';
$content_calls['check-sequence']['en-us'] = 'sequence';
$content_calls['ckeck-sequence']['pt-pt'] = 'sequêncial';
$content_calls['check-simultaneous']['en-us'] = 'simultaneous';
$content_calls['ckeck-simultaneous']['pt-pt'] = 'simultâneo';
$content_calls['lable-prompt']['en-us'] = 'Prompt to accept the call';
$content_calls['lable-prompt']['pt-pt'] = 'Perguntar para aceitar a chamada';
$content_calls['check-true']['en-us'] = 'true';
$content_calls['ckeck-true']['pt-pt'] = 'verdadeiro';
$content_calls['check-false']['en-us'] = 'false';
$content_calls['ckeck-false']['pt-pt'] = 'falso';
$content_calls['lable-dnd']['en-us'] = 'Do Not Disturb';
$content_calls['lable-dnd']['pt-pt'] = 'Não Perturbar';
$content_calls['button-back']['en-us'] = 'Back';
$content_calls['button-back']['pt-pt'] = 'Voltar';
$content_calls['button-save']['en-us'] = 'Save';
$content_calls['button-save']['pt-pt'] = 'Guardar';
$content_calls['confirm-update']['en-us'] = 'Update Complete';
$content_calls['confirm-update']['pt-pt'] = 'Actualização Completa';
$content_calls['table-extension']['en-us'] = 'Extension';
$content_calls['table-extension']['pt-pt'] = 'Extensão';
$content_calls['table-tools']['en-us'] = 'Tools';
$content_calls['table-tools']['pt-pt'] = 'Ferramentas';
$content_calls['table-description']['en-us'] = 'Description';
$content_calls['table-description']['pt-pt'] = 'Descrição';
?>

View File

@@ -26,6 +26,7 @@
require_once "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
require_once "app_languages.php";
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
//access granted
}
@@ -33,6 +34,10 @@ else {
echo "access denied";
exit;
}
foreach($content_calls as $key => $value) {
$content_calls[$key] = $value[$_SESSION['domain']['language']['code']];
}
//define the destination_select function
function destination_select($select_name, $select_value, $select_default) {
@@ -384,7 +389,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"3;url=".PROJECT_PATH."/app/calls/v_calls.php\">\n";
echo "<div align='center'>\n";
echo "Update Complete<br />\n";
echo "".$content_calls['confirm-update']."<br />\n";
echo "</div>\n";
require_once "includes/footer.php";
return;
@@ -491,21 +496,21 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap>\n";
echo " <b>Calls</b>\n";
echo " <b>".$content_calls['title']."</b>\n";
echo "</td>\n";
echo "<td width='70%' align='right'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_calls.php'\" value='Back'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_calls.php'\" value='".$content_calls['button-back']."'>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo " Directs incoming calls for extension $extension.<br /><br />\n";
echo " ".$content_calls['description']." $extension.<br /><br />\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " <strong>Call Forward:</strong>\n";
echo " <strong>".$content_calls['lable-callforward'].":</strong>\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$on_click = "document.getElementById('follow_me_enabled').checked=true;";
@@ -513,16 +518,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$on_click .= "document.getElementById('dnd_enabled').checked=false;";
$on_click .= "document.getElementById('dnd_disabled').checked=true;";
if ($call_forward_enabled == "true") {
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' checked='checked'/> Enabled \n";
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' checked='checked'/> ".$content_calls['lable-enabled']." \n";
}
else {
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' /> Enable \n";
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' /> ".$content_calls['lable-enable']." \n";
}
if ($call_forward_enabled == "false" || $call_forward_enabled == "") {
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' checked='checked' /> Disabled \n";
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' checked='checked' /> ".$content_calls['lable-disabled']." \n";
}
else {
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' /> Disable \n";
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' /> ".$content_calls['lable-disable']." \n";
}
unset($on_click);
echo "<br />\n";
@@ -533,7 +538,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Number:\n";
echo " ".$content_calls['lable-number'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='call_forward_number' maxlength='255' value=\"$call_forward_number\">\n";
@@ -550,7 +555,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " <strong>Follow Me:</strong>\n";
echo " <strong>".$content_calls['lable-followme'].":</strong>\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$on_click = "document.getElementById('call_forward_enabled').checked=true;";
@@ -558,16 +563,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$on_click .= "document.getElementById('dnd_enabled').checked=false;";
$on_click .= "document.getElementById('dnd_disabled').checked=true;";
if ($follow_me_enabled == "true") {
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" checked='checked'/> Enabled \n";
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" checked='checked'/> ".$content_calls['lable-enabled']." \n";
}
else {
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" /> Enable \n";
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" /> ".$content_calls['lable-enable']." \n";
}
if ($follow_me_enabled == "false" || $follow_me_enabled == "") {
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" checked='checked' /> Disabled \n";
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" checked='checked' /> ".$content_calls['lable-disabled']." \n";
}
else {
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" /> Disable \n";
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" /> ".$content_calls['lable-disable']." \n";
}
unset($on_click);
echo "<br />\n";
@@ -577,7 +582,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 1st Number:\n";
echo " ".$content_calls['lable-ring1'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_1' maxlength='255' value=\"$destination_data_1\">\n";
@@ -590,7 +595,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 2nd Number:\n";
echo " ".$content_calls['lable-ring2'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_2' maxlength='255' value=\"$destination_data_2\">\n";
@@ -603,7 +608,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 3rd Number:\n";
echo " ".$content_calls['lable-ring3'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_3' maxlength='255' value=\"$destination_data_3\">\n";
@@ -616,7 +621,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 4th Number:\n";
echo " ".$content_calls['lable-ring4'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_4' maxlength='255' value=\"$destination_data_4\">\n";
@@ -629,7 +634,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 5th Number:\n";
echo " ".$content_calls['lable-ring5'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_5' maxlength='255' value=\"$destination_data_5\">\n";
@@ -642,7 +647,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring Order:\n";
echo " ".$content_calls['lable-ringorder'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "<select class='formfld' name='follow_me_type'>\n";
@@ -667,7 +672,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Prompt to accept the call:\n";
echo " ".$content_calls['lable-prompt'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "<select class='formfld' name='hunt_group_call_prompt'>\n";
@@ -698,7 +703,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " <strong>Do Not Disturb:</strong>\n";
echo " <strong>".$content_calls['lable-dnd'].":</strong>\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$on_click = "document.getElementById('call_forward_enabled').checked=true;";
@@ -706,16 +711,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$on_click .= "document.getElementById('follow_me_enabled').checked=true;";
$on_click .= "document.getElementById('follow_me_disabled').checked=true;";
if ($dnd_enabled == "true") {
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\" checked='checked'/> Enabled \n";
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\" checked='checked'/> ".$content_calls['lable-enabled']." \n";
}
else {
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\"/> Enable \n";
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\"/> ".$content_calls['lable-enable']." \n";
}
if ($dnd_enabled == "false" || $dnd_enabled == "") {
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" checked='checked' /> Disabled \n";
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" checked='checked' /> ".$content_calls['lable-disabled']." \n";
}
else {
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" /> Disable \n";
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" /> ".$content_calls['lable-disable']." \n";
}
echo " <br />\n";
echo "</td>\n";
@@ -738,7 +743,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo " <input type='hidden' name='id' value='$extension_uuid'>\n";
}
echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
echo " <input type='submit' name='submit' class='btn' value='".$content_calls['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo "</table>";

View File

@@ -26,6 +26,7 @@
include "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
include "app_languages.php";
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
//access granted
}
@@ -37,7 +38,11 @@ require_once "includes/header.php";
require_once "includes/paging.php";
$order_by = $_GET["order_by"];
$order = $_GET["order"];
$order = $_GET["order"];
foreach($content_calls as $key => $value) {
$content_calls[$key] = $value[$_SESSION['domain']['language']['code']];
}
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
@@ -48,9 +53,9 @@ $order = $_GET["order"];
if ($is_included != "true") {
echo " <table width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align='left'><b>Calls</b><br>\n";
echo " Use the links to configure call forward follow me, or do no disturb.\n";
echo " The following list the extensions that have been assigned to this user account. \n";
echo " <td align='left'><b>".$content_calls['title']."</b><br>\n";
echo " ".$content_calls['description2']."\n";
echo " ".$content_calls['description3']." \n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
@@ -133,9 +138,9 @@ $order = $_GET["order"];
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>Extension</th>\n";
echo "<th>Tools</th>\n";
echo "<th>Description</th>\n";
echo "<th>".$content_calls['table-extension']."</th>\n";
echo "<th>".$content_calls['table-tools']."</th>\n";
echo "<th>".$content_calls['table-description']."</th>\n";
echo "</tr>\n";
if ($result_count > 0) {
@@ -144,15 +149,15 @@ $order = $_GET["order"];
echo " <td valign='top' class='".$row_style[$c]."'>".$row['extension']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>\n";
if (permission_exists('call_forward')) {
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row['extension_uuid']."&a=call_forward' alt='Call Forward'>Call Forward</a> \n";
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=call_forward' alt='Call Forward'>".$content_calls['lable-callforward']."</a> \n";
echo " &nbsp;&nbsp;\n";
}
if (permission_exists('follow_me')) {
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row['extension_uuid']."&a=follow_me' alt='Follow Me'>Follow Me</a> \n";
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=follow_me' alt='Follow Me'>".$content_calls['lable-followme']."</a> \n";
echo " &nbsp;&nbsp;\n";
}
if (permission_exists('do_not_disturb')) {
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row['extension_uuid']."&a=do_not_disturb' alt='Do Not Disturb'>Do Not Disturb</a> \n";
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=do_not_disturb' alt='Do Not Disturb'>".$content_calls['lable-dnd']."</a> \n";
}
echo " </td>\n";
echo " <td valign='top' class='row_stylebg' width='40%'>".$row['description']."&nbsp;</td>\n";

View File

@@ -0,0 +1,38 @@
<?php
//v_calls_active
$content_calls_active['title']['en-us'] = 'Active Calls';
$content_calls_active['title']['pt-pt'] = 'Chamadas Activas';
$content_calls_active['description']['en-us'] = 'Use this to monitor and interact with the active calls.';
$content_calls_active['description']['pt-pt'] = 'Utilize este menu para monitorizar e interagir com as chamadas ativas.';
//v_calls_active_extensions
$content_calls_active['title2']['en-us'] = 'Active Extensions';
$content_calls_active['title2']['pt-pt'] = 'Extensões Activas';
$content_calls_active['label-status']['en-us'] = 'Status';
$content_calls_active['label-status']['pt-pt'] = 'Estado';
$content_calls_active['label-transfer']['en-us'] = 'Transfer To';
$content_calls_active['label-transfer']['pt-pt'] = 'Transferir para';
$content_calls_active['description2']['en-us'] = 'Use this to view all extensions and monitor and interact with active calls.';
$content_calls_active['description2']['pt-pt'] = 'Utilize este menu para ver todas as extensões, monitorizar e interagir com as chamadas ativas.';
$content_calls_active['check-availablestatus']['en-us'] = 'Available';
$content_calls_active['check-availablestatus']['pt-pt'] = 'Disponível';
$content_calls_active['check-availableondemandstatus']['en-us'] = 'Available (On Demand)';
$content_calls_active['check-availableondemandstatus']['pt-pt'] = 'Disponível (A pedido)';
$content_calls_active['check-logedoutstatus']['en-us'] = 'Logged Out';
$content_calls_active['check-logedoutstatus']['pt-pt'] = 'Desligado';
$content_calls_active['check-onbreakstatus']['en-us'] = 'On Break';
$content_calls_active['check-onbreakstatus']['pt-pt'] = 'Em Pausa';
$content_calls_active['check-donotdisturbstatus']['en-us'] = 'Do Not Disturb';
$content_calls_active['check-donotdisturbstatus']['pt-pt'] = 'Não Perturbar';
?>

View File

@@ -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,6 +35,10 @@ else {
exit;
}
foreach($content_calls_active as $key => $value) {
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
}
$conference_name = trim($_REQUEST["c"]);
$tmp_conference_name = str_replace("_", " ", $conference_name);
@@ -110,8 +115,8 @@ echo "<div align='center'>";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align='left'><b>Active Calls</b><br>\n";
echo " Use this to monitor and interact with the active calls.\n";
echo " <td align='left'><b>".$content_calls_active['title']."</b><br>\n";
echo " ".$content_calls_active['description']."\n";
echo " </td>\n";
echo " <td align='right'>\n";

View File

@@ -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']];
}
//http get and set variables
$event_type = $_GET['event_type']; //open_window //iframe
if ($event_type=="iframe") {
@@ -201,7 +206,7 @@ echo "<div align='center'>";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align='left' colspan='2' nowrap='nowrap'>\n";
echo " <b>Active Extensions</b><br>\n";
echo " <b>".$content_calls_active['title2']."</b><br>\n";
echo " </td>\n";
//get the user status when the page loads
@@ -228,40 +233,40 @@ else {
echo " <td class='' valign='bottom' align='right' style='width:200px' nowrap='nowrap'>\n";
//status list
echo " &nbsp;";
echo " <strong>Status</strong>&nbsp;\n";
echo " <strong>".$content_calls_active['label-status']."</strong>&nbsp;\n";
$cmd = "'v_calls_exec.php?action=user_status&data='+this.value+'";
$cmd .= "&cmd=callcenter_config+agent+set+status+".$_SESSION['username']."@".$_SESSION['domain_name']."+'+this.value";
echo " <select id='agent_status' name='agent_status' class='formfld' style='width:125px' nowrap='nowrap' onchange=\"send_cmd($cmd);\">\n";
echo " <option value=' '></option>\n";
if ($user_status == "Available") {
echo " <option value='Available' selected='selected'>Available</option>\n";
echo " <option value='Available' selected='selected'>".$content_calls_active['check-availablestatus']."</option>\n";
}
else {
echo " <option value='Available'>Available</option>\n";
echo " <option value='Available'>".$content_calls_active['check-availablestatus']."</option>\n";
}
if ($user_status == "Available (On Demand)") {
echo " <option value='Available_On_Demand' selected='selected'>Available (On Demand)</option>\n";
echo " <option value='Available_On_Demand' selected='selected'>".$content_calls_active['check-availableondemandstatus']."</option>\n";
}
else {
echo " <option value='Available_On_Demand'>Available (On Demand)</option>\n";
echo " <option value='Available_On_Demand'>".$content_calls_active['check-availableondemandstatus']."</option>\n";
}
if ($user_status == "Logged Out") {
echo " <option value='Logged_Out' selected='selected'>Logged Out</option>\n";
echo " <option value='Logged_Out' selected='selected'>".$content_calls_active['check-logedoutstatus']."</option>\n";
}
else {
echo " <option value='Logged_Out'>Logged Out</option>\n";
echo " <option value='Logged_Out'>".$content_calls_active['check-logedoutstatus']."</option>\n";
}
if ($user_status == "On Break") {
echo " <option value='On_Break' selected='selected'>On Break</option>\n";
echo " <option value='On_Break' selected='selected'>".$content_calls_active['check-onbreakstatus']."</option>\n";
}
else {
echo " <option value='On_Break'>On Break</option>\n";
echo " <option value='On_Break'>".$content_calls_active['check-onbreakstatus']."</option>\n";
}
if ($user_status == "Do Not Disturb") {
echo " <option value='Do_Not_Disturb' selected='selected'>Do Not Disturb</option>\n";
echo " <option value='Do_Not_Disturb' selected='selected'>".$content_calls_active['check-donotdisturbstatus']."</option>\n";
}
else {
echo " <option value='Do_Not_Disturb'>Do Not Disturb</option>\n";
echo " <option value='Do_Not_Disturb'>".$content_calls_active['check-donotdisturbstatus']."</option>\n";
}
echo " </select>\n";
echo " </td>\n";
@@ -269,13 +274,13 @@ else {
echo " <td align='right' nowrap='nowrap'>\n";
echo " &nbsp;";
echo " <strong>Transfer To</strong>\n";
echo " <strong>".$content_calls_active['label-transfer']."</strong>\n";
echo " <input type=\"text\" id=\"form_value\" name=\"form_value\" class='formfld' style='width:125px'/>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align='left' colspan='99'>\n";
echo " Use this to view all extensions and monitor and interact with active calls.\n";
echo " ".$content_calls_active['description2']."\n";
echo " </td>\n";
echo " </tr>\n";
echo "</table>\n";

View File

@@ -26,6 +26,7 @@
include "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
if (permission_exists('fax_extension_view')) {
//access granted
}

View File

@@ -0,0 +1,65 @@
<?php
$contentusers['title']['en-us'] = 'Account Settings';
$contentusers['title']['pt-pt'] = 'Configurações de Conta';
$contentusers['description']['en-us'] = 'Edit account information.';
$contentusers['description']['pt-pt'] = 'Editar informações de conta.';
$contentusers['button-back']['en-us'] = 'Back';
$contentusers['button-back']['pt-pt'] = 'Voltar';
$contentusers['button-save']['en-us'] = 'Save';
$contentusers['button-save']['pt-pt'] = 'Guardar';
$contentusers['table-title']['en-us'] = 'User Info';
$contentusers['table-title']['pt-pt'] = 'Informações de Utilizador';
$contentusers['label-username']['en-us'] = 'Username';
$contentusers['label-username']['pt-pt'] = 'Nome de Utilizador';
$contentusers['label-password']['en-us'] = 'Password';
$contentusers['label-password']['pt-pt'] = 'Palavra passe';
$contentusers['label-confirmpassword']['en-us'] = 'Confirm Password';
$contentusers['label-confirmpassword']['pt-pt'] = 'Confirme Palavra Chave';
$contentusers['label-extension']['en-us'] = 'Extension';
$contentusers['label-extension']['pt-pt'] = 'Extensão';
$contentusers['table2-title']['en-us'] = 'Additional Info';
$contentusers['table2-title']['pt-pt'] = 'Informações Adicionais';
$contentusers['label-status']['en-us'] = 'Status';
$contentusers['label-status']['pt-pt'] = 'Estado';
$contentusers['label-infostatus']['en-us'] = 'Select a the user status.';
$contentusers['label-infostatus']['pt-pt'] = 'Selecione um estado para o utilizador.';
$contentusers['check-availablestatus']['en-us'] = 'Available';
$contentusers['check-availablestatus']['pt-pt'] = 'Disponível';
$contentusers['check-availableondemandstatus']['en-us'] = 'Available (On Demand)';
$contentusers['check-availableondemandstatus']['pt-pt'] = 'Disponível (A pedido)';
$contentusers['check-logedoutstatus']['en-us'] = 'Logged Out';
$contentusers['check-logedoutstatus']['pt-pt'] = 'Desligado';
$contentusers['check-onbreakstatus']['en-us'] = 'On Break';
$contentusers['check-onbreakstatus']['pt-pt'] = 'Em Pausa';
$contentusers['check-donotdisturbstatus']['en-us'] = 'Do Not Disturb';
$contentusers['check-donotdisturbstatus']['pt-pt'] = 'Não Perturbar';
$contentusers['label-time']['en-us'] = 'Time Zone';
$contentusers['label-time']['pt-pt'] = 'Fuso Horário';
$contentusers['label-infotime']['en-us'] = 'Select the default time zone.';
$contentusers['label-infotime']['pt-pt'] = 'Selecione o fuso horário padrão.';
$contentusers['confirm-password']['en-us'] = 'Passwords did not match.';
$contentusers['confirm-password']['pt-pt'] = 'As palavras chave não coincidem.';
$contentusers['confirm-update']['en-us'] = 'Update Complete';
$contentusers['confirm-update']['pt-pt'] = 'Actualização Completa';
?>

View File

@@ -26,6 +26,8 @@
include "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
include "app_languages.php";
if (permission_exists("user_account_settings_view")) {
//access granted
}
@@ -34,6 +36,11 @@ else {
return;
}
foreach($contentusers as $key => $value) {
$contentusers[$key] = $value[$_SESSION['domain']['language']['code']];
}
//set the username from v_users
$username = $_SESSION["username"];
$user_uuid = $_SESSION["user_uuid"];
@@ -80,7 +87,7 @@ if (count($_POST)>0 && $_POST["persistform"] != "1") {
$msg = '';
//if (strlen($password) == 0) { $msg .= "Password cannot be blank.<br>\n"; }
if ($password != $confirm_password) { $msg .= "Passwords did not match.<br>\n"; }
if ($password != $confirm_password) { $msg .= "".$contentusers['confirm-password']."<br>\n"; }
//if (strlen($user_time_zone) == 0) { $msg .= "Please provide an time zone.<br>\n"; }
if (strlen($msg) > 0) {
@@ -191,7 +198,7 @@ if (count($_POST)>0 && $_POST["persistform"] != "1") {
//redirect the browser
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=".PROJECT_PATH."/app/users/usersupdate.php\">\n";
echo "<div align='center'>Update Complete</div>";
echo "<div align='center'>".$contentusers['confirm-update']."</div>";
require_once "includes/footer.php";
return;
}
@@ -226,15 +233,15 @@ else {
echo "<td>\n";
echo "<table $table_width cellpadding='3' cellspacing='0' border='0'>";
echo "<td align='left' width='90%' nowrap><b>Account Settings</b></td>\n";
echo "<td align='left' width='90%' nowrap><b>".$contentusers['title']."</b></td>\n";
echo "<td nowrap='nowrap'>\n";
echo " <input type='submit' name='submit' class='btn' value='Save'>";
echo " <input type='button' class='btn' onclick=\"window.location='".PROJECT_PATH."/index2.php'\" value='Back'>";
echo " <input type='submit' name='submit' class='btn' value='".$contentusers['button-save']."'>";
echo " <input type='button' class='btn' onclick=\"window.location='".PROJECT_PATH."/index2.php'\" value='".$contentusers['button-back']."'>";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo " Edit account information. \n";
echo " ".$contentusers['description']." \n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
@@ -243,20 +250,20 @@ else {
echo "<table $table_width cellpadding='6' cellspacing='0' border='0'>";
echo "<tr>\n";
echo " <th class='th' colspan='2' align='left'>User Info</th>\n";
echo " <th class='th' colspan='2' align='left'>".$contentusers['table-title']."</th>\n";
echo "</tr>\n";
echo " <tr>";
echo " <td width='30%' class='vncellreq'>Username:</td>";
echo " <td width='30%' class='vncellreq'>".$contentusers['label-username'].":</td>";
echo " <td width='70%' class='vtable'>$username</td>";
echo " </tr>";
echo " <tr>";
echo " <td class='vncell'>Password:</td>";
echo " <td class='vncell'>".$contentusers['label-password'].":</td>";
echo " <td class='vtable'><input type='password' autocomplete='off' class='formfld' name='password' value=\"\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td class='vncell'>Confirm Password:</td>";
echo " <td class='vncell'>".$contentusers['label-confirmpassword'].":</td>";
echo " <td class='vtable'><input type='password' autocomplete='off' class='formfld' name='confirm_password' value=\"\"></td>";
echo " </tr>";
@@ -268,7 +275,7 @@ else {
echo "<table $table_width cellpadding='6' cellspacing='0'>";
echo " <tr>\n";
echo " <th class='th' colspan='2' align='left'>Additional Info</th>\n";
echo " <th class='th' colspan='2' align='left'>".$contentusers['table2-title']."</th>\n";
echo " </tr>\n";
if ($_SESSION['user_status_display'] == "false") {
@@ -277,44 +284,44 @@ else {
else {
echo " <tr>\n";
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
echo " Status:\n";
echo " ".$contentusers['label-status'].":\n";
echo " </td>\n";
echo " <td class=\"vtable\">\n";
echo " <select id='user_status' name='user_status' class='formfld' style=''>\n";
echo " <option value=''></option>\n";
if ($user_status == "Available") {
echo " <option value='Available' selected='selected'>Available</option>\n";
echo " <option value='Available' selected='selected'>".$contentusers['check-availablestatus']."</option>\n";
}
else {
echo " <option value='Available'>Available</option>\n";
echo " <option value='Available'>".$contentusers['check-availablestatus']."</option>\n";
}
if ($user_status == "Available (On Demand)") {
echo " <option value='Available (On Demand)' selected='selected'>Available (On Demand)</option>\n";
echo " <option value='Available (On Demand)' selected='selected'>".$contentusers['check-availableondemandstatus']."</option>\n";
}
else {
echo " <option value='Available (On Demand)'>Available (On Demand)</option>\n";
echo " <option value='Available (On Demand)'>".$contentusers['check-availableondemandstatus']."</option>\n";
}
if ($user_status == "Logged Out") {
echo " <option value='Logged Out' selected='selected'>Logged Out</option>\n";
echo " <option value='Logged Out' selected='selected'>".$contentusers['check-logedoutstatus']."</option>\n";
}
else {
echo " <option value='Logged Out'>Logged Out</option>\n";
echo " <option value='Logged Out'>".$contentusers['check-logedoutstatus']."</option>\n";
}
if ($user_status == "On Break") {
echo " <option value='On Break' selected='selected'>On Break</option>\n";
echo " <option value='On Break' selected='selected'>".$contentusers['check-onbreakstatus']."</option>\n";
}
else {
echo " <option value='On Break'>On Break</option>\n";
echo " <option value='On Break'>".$contentusers['check-onbreakstatus']."</option>\n";
}
if ($user_status == "Do Not Disturb") {
echo " <option value='Do Not Disturb' selected='selected'>Do Not Disturb</option>\n";
echo " <option value='Do Not Disturb' selected='selected'>".$contentusers['check-donotdisturbstatus']."</option>\n";
}
else {
echo " <option value='Do Not Disturb'>Do Not Disturb</option>\n";
echo " <option value='Do Not Disturb'>".$contentusers['check-donotdisturbstatus']."</option>\n";
}
echo " </select>\n";
echo " <br />\n";
echo " Select a the user status.<br />\n";
echo " ".$contentusers['label-infostatus']."<br />\n";
echo " </td>\n";
echo " </tr>\n";
}
@@ -355,7 +362,7 @@ else {
echo " <tr>\n";
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
echo " Time Zone: \n";
echo " ".$contentusers['label-time'].": \n";
echo " </td>\n";
echo " <td class=\"vtable\" align='left'>\n";
echo " <select id='user_time_zone' name='user_time_zone' class='formfld' style=''>\n";
@@ -384,7 +391,7 @@ else {
}
echo " </select>\n";
echo " <br />\n";
echo " Select the default time zone.<br />\n";
echo " ".$contentusers['label-infotime']."<br />\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>";
@@ -394,7 +401,7 @@ else {
echo "<table $table_width>";
echo " <tr>";
echo " <td colspan='2' align='right'>";
echo " <input type='submit' name='submit' class='btn' value='Save'>";
echo " <input type='submit' name='submit' class='btn' value='".$contentusers['button-save']."'>";
echo " </td>";
echo " </tr>";
echo "</table>";
@@ -408,4 +415,4 @@ else {
//include the footer
require_once "includes/footer.php";
?>
?>

View File

@@ -0,0 +1,69 @@
<?php
//v_voicemail_greetings
$contentvoicemail_greetings['title']['en-us'] = 'Voicemail Greetings';
$contentvoicemail_greetings['title']['pt-pt'] = 'Saudações de correio de voz';
$contentvoicemail_greetings['description']['en-us'] = 'Select the active greeting message to play for extension:';
$contentvoicemail_greetings['description']['pt-pt'] = 'Selecione e active mensagem de saudação para executar na extensão:';
$contentvoicemail_greetings['label-upload']['en-us'] = 'File to Upload';
$contentvoicemail_greetings['label-upload']['pt-pt'] = 'Ficheiro a Carregar';
$contentvoicemail_greetings['table-choose']['en-us'] = 'Choose';
$contentvoicemail_greetings['table-choose']['pt-pt'] = 'Escolher';
$contentvoicemail_greetings['table-name']['en-us'] = 'Name';
$contentvoicemail_greetings['table-name']['pt-pt'] = 'Nome';
$contentvoicemail_greetings['table-download']['en-us'] = 'Download';
$contentvoicemail_greetings['table-download']['pt-pt'] = 'Descarregar';
$contentvoicemail_greetings['table-size']['en-us'] = 'Size';
$contentvoicemail_greetings['table-size']['pt-pt'] = 'Tamanho';
$contentvoicemail_greetings['table-description']['en-us'] = 'Description';
$contentvoicemail_greetings['table-description']['pt-pt'] = 'Descrição';
$contentvoicemail_greetings['button-back']['en-us'] = 'Back';
$contentvoicemail_greetings['button-back']['pt-pt'] = 'Voltar';
$contentvoicemail_greetings['button-save']['en-us'] = 'Save';
$contentvoicemail_greetings['button-save']['pt-pt'] = 'Guardar';
//v_voicemail_greetings_delete
$contentvoicemail_greetings['confirm-delete2']['en-us'] = 'Delete Complete';
$contentvoicemail_greetings['confirm-delete2']['pt-pt'] = 'Eliminação Completa';
//v_voicemail_greetings_edit
$contentvoicemail_greetings['confirm-name']['en-us'] = 'Please provide: Greeting Name (play)';
$contentvoicemail_greetings['confirm-name']['pt-pt'] = 'Por favor, forneça: Nome da saudação (execução)';
$contentvoicemail_greetings['confirm-add']['en-us'] = 'Add Complete';
$contentvoicemail_greetings['confirm-add']['pt-pt'] = 'Adição Completa';
$contentvoicemail_greetings['confirm-update']['en-us'] = 'Update Complete';
$contentvoicemail_greetings['confirm-update']['pt-pt'] = 'Actualização Completa';
$contentvoicemail_greetings['label-add']['en-us'] = 'Add Greeting';
$contentvoicemail_greetings['label-add']['pt-pt'] = 'Adição de Saudação';
$contentvoicemail_greetings['label-edit']['en-us'] = 'Edit Greeting';
$contentvoicemail_greetings['label-edit']['pt-pt'] = 'Edição de Saudação';
$contentvoicemail_greetings['label-name']['en-us'] = 'Greeting Name';
$contentvoicemail_greetings['label-name']['pt-pt'] = 'Nome da Saudação';
$contentvoicemail_greetings['label-nameinfo']['en-us'] = 'Greeting Name. example: greeting_x';
$contentvoicemail_greetings['label-nameinfo']['pt-pt'] = 'Nome da Saudação. exemplo: saudação_x';
$contentvoicemail_greetings['label-description']['en-us'] = 'Description';
$contentvoicemail_greetings['label-description']['pt-pt'] = 'Descrição';
$contentvoicemail_greetings['label-descriptioninfo']['en-us'] = 'You may enter a description here for your reference (not parsed).';
$contentvoicemail_greetings['label-descriptioninfo']['pt-pt'] = 'Pode inserir aqui uma descrição para referência.';
?>

View File

@@ -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('voicemail_greetings_view')) {
//access granted
}
@@ -34,6 +35,10 @@ else {
exit;
}
foreach($contentvoicemail_greetings as $key => $value) {
$contentvoicemail_greetings[$key] = $value[$_SESSION['domain']['language']['code']];
}
require_once "includes/paging.php";
//set the max php execution time
@@ -221,20 +226,20 @@ require_once "includes/paging.php";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align='left' width=\"50%\">\n";
echo " <strong>Voicemail Greetings:</strong><br>\n";
echo " <strong>".$contentvoicemail_greetings['title'].":</strong><br>\n";
echo " </td>";
echo " <td width='50%' align='right'>\n";
echo " <label for=\"file\">File to Upload:</label>\n";
echo " <label for=\"file\">".$contentvoicemail_greetings['label-upload'].":</label>\n";
echo " <input name=\"file\" type=\"file\" class=\"btn\" id=\"file\">\n";
echo " <input name=\"type\" type=\"hidden\" value=\"rec\">\n";
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"Save\">\n";
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"".$contentvoicemail_greetings['button-save']."\">\n";
echo " &nbsp;&nbsp;&nbsp;\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"javascript:history.back();\" value='Back'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"javascript:history.back();\" value='".$contentvoicemail_greetings['button-back']."'>\n";
echo " </td>\n";
echo " </tr>";
echo " <tr>";
echo " <td align='left' colspan='2'>\n";
echo " Select the active greeting message to play for extension $user_id. <br />\n";
echo " ".$contentvoicemail_greetings['description']." $user_id. <br />\n";
echo " </td>\n";
echo " </tr>\n";
echo "</table>\n";
@@ -310,11 +315,11 @@ require_once "includes/paging.php";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>Choose</th>\n";
echo th_order_by('greeting_name', 'Name', $order_by, $order);
echo "<th align='right'>Download</th>\n";
echo "<th width=\"50px\" class=\"listhdr\" nowrap=\"nowrap\">Size</th>\n";
echo th_order_by('greeting_description', 'Description', $order_by, $order);
echo "<th>".$contentvoicemail_greetings['table-choose']."</th>\n";
echo th_order_by('greeting_name', $contentvoicemail_greetings['table-name'], $order_by, $order);
echo "<th align='right'>".$contentvoicemail_greetings['table-download']."</th>\n";
echo "<th width=\"50px\" class=\"listhdr\" nowrap=\"nowrap\">".$contentvoicemail_greetings['table-size']."</th>\n";
echo th_order_by('greeting_description', $contentvoicemail_greetings['table-description'], $order_by, $order);
echo "<td align='right' width='42'>\n";
//if (permission_exists('voicemail_greetings_add')) {
// echo " <a href='v_voicemail_greetings_edit.php?&user_id=".$user_id."' alt='add'>$v_link_label_add</a>\n";

View File

@@ -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('voicemail_greetings_delete')) {
//access granted
}
@@ -34,6 +35,10 @@ else {
exit;
}
foreach($contentvoicemail_greetings as $key => $value) {
$contentvoicemail_greetings[$key] = $value[$_SESSION['domain']['language']['code']];
}
if (count($_GET)>0) {
$id = $_GET["id"];
$user_id = $_GET["user_id"];
@@ -76,7 +81,7 @@ if (strlen($id)>0) {
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_voicemail_greetings.php?id=$user_id\">\n";
echo "<div align='center'>\n";
echo "Delete Complete\n";
echo "".$contentvoicemail_greetings['confirm-delete2']."\n";
echo "</div>\n";
require_once "includes/footer.php";
return;

View File

@@ -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('voicemail_greetings_add') || permission_exists('voicemail_greetings_edit')) {
//access granted
}
@@ -34,6 +35,10 @@ else {
exit;
}
foreach($contentvoicemail_greetings as $key => $value) {
$contentvoicemail_greetings[$key] = $value[$_SESSION['domain']['language']['code']];
}
//set the action as an add or an update
if (isset($_REQUEST["id"])) {
$action = "update";
@@ -63,7 +68,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//check for all required data
//if (strlen($domain_uuid) == 0) { $msg .= "Please provide: domain_uuid<br>\n"; }
if (strlen($greeting_name) == 0) { $msg .= "Please provide: Greeting Name (play)<br>\n"; }
if (strlen($greeting_name) == 0) { $msg .= "".$contentvoicemail_greetings['confirm-name']."<br>\n"; }
//if (strlen($greeting_description) == 0) { $msg .= "Please provide: Description<br>\n"; }
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "includes/header.php";
@@ -102,7 +107,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_voicemail_greetings.php?id=".$user_id."\">\n";
echo "<div align='center'>\n";
echo "Add Complete\n";
echo "".$contentvoicemail_greetings['confirm-add']."\n";
echo "</div>\n";
require_once "includes/footer.php";
return;
@@ -143,7 +148,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_voicemail_greetings.php?id=".$user_id."\">\n";
echo "<div align='center'>\n";
echo "Update Complete\n";
echo "".$contentvoicemail_greetings['confirm-update']."\n";
echo "</div>\n";
require_once "includes/footer.php";
return;
@@ -186,33 +191,33 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
if ($action == "add") {
echo "<td align='left' width='30%' nowrap><b>Add Greeting</b></td>\n";
echo "<td align='left' width='30%' nowrap><b>".$contentvoicemail_greetings['label-add']."</b></td>\n";
}
if ($action == "update") {
echo "<td align='left' width='30%' nowrap><b>Edit Greeting</b></td>\n";
echo "<td align='left' width='30%' nowrap><b>".$contentvoicemail_greetings['label-edit']['en-us']."</b></td>\n";
}
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_voicemail_greetings.php?id=".$user_id."'\" value='Back'></td>\n";
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_voicemail_greetings.php?id=".$user_id."'\" value='".$contentvoicemail_greetings['button-back']."'></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
echo " Greeting Name:\n";
echo " ".$contentvoicemail_greetings['label-name'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='greeting_name' maxlength='255' value=\"$greeting_name\">\n";
echo "<br />\n";
echo "Greeting Name. example: greeting_x\n";
echo "".$contentvoicemail_greetings['label-nameinfo']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Description:\n";
echo " ".$contentvoicemail_greetings['label-description'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='greeting_description' maxlength='255' value=\"$greeting_description\">\n";
echo "<br />\n";
echo "You may enter a description here for your reference (not parsed).\n";
echo "".$contentvoicemail_greetings['label-descriptioninfo']."\n";
echo "</td>\n";
echo "</tr>\n";
echo " <tr>\n";
@@ -221,7 +226,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " <input type='hidden' name='greeting_uuid' value='$greeting_uuid'>\n";
}
echo " <input type='hidden' name='user_id' value='$user_id'>\n";
echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
echo " <input type='submit' name='submit' class='btn' value='".$contentvoicemail_greetings['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo "</table>";

View File

@@ -0,0 +1,119 @@
<?php
$contentvoicemail_msgs['title']['en-us'] = 'Voicemail Messages';
$contentvoicemail_msgs['title']['pt-pt'] = 'Mensagens de correio de voz';
$contentvoicemail_msgs['description']['en-us'] = 'Voicemails are listed, played, downloaded and deleted from this page.';
$contentvoicemail_msgs['description']['pt-pt'] = 'As mensagens de voz são listadas, reproduzidas, descarregadas e excluídas através desta página.';
$contentvoicemail_msgs['button-greetings']['en-us'] = 'Greetings';
$contentvoicemail_msgs['button-greetings']['pt-pt'] = 'Saudações';
$contentvoicemail_msgs['button-settings']['en-us'] = 'Settings';
$contentvoicemail_msgs['button-settings']['pt-pt'] = 'Definições';
$contentvoicemail_msgs['table-mailbox']['en-us'] = 'Mailbox';
$contentvoicemail_msgs['table-mailbox']['pt-pt'] = 'Caixa de Correio';
$contentvoicemail_msgs['description2']['en-us'] = 'Voicemails for an extension are shown to the user(s) that have been assigned to an extension.';
$contentvoicemail_msgs['description2']['pt-pt'] = 'As mensagens de voz de uma extensão são apresentadas para os utilizadores que foram associados a uma extensão.';
$contentvoicemail_msgs['description3']['en-us'] = 'User accounts are created in the "User Manager" and then are assigned on the "Extensions" page.';
$contentvoicemail_msgs['description3']['pt-pt'] = 'As contas de utilizador são criadas no "Gestor de utilizadores" e, em seguida, são atribuídos na página de "Extensões".';
$contentvoicemail_msgs['label-created']['en-us'] = 'Created';
$contentvoicemail_msgs['label-created']['pt-pt'] = 'Criado';
$contentvoicemail_msgs['label-calleridname']['en-us'] = 'Caller ID Name';
$contentvoicemail_msgs['label-calleridname']['pt-pt'] = 'Nome de Origem';
$contentvoicemail_msgs['label-calleridnumber']['en-us'] = 'Caller ID Number';
$contentvoicemail_msgs['label-calleridnumber']['pt-pt'] = 'Número de Origem';
$contentvoicemail_msgs['label-folder']['en-us'] = 'Folder';
$contentvoicemail_msgs['label-folder']['pt-pt'] = 'Pasta';
$contentvoicemail_msgs['label-length']['en-us'] = 'Length (play)';
$contentvoicemail_msgs['label-length']['pt-pt'] = 'Comprimento (Reprodução)';
$contentvoicemail_msgs['label-size']['en-us'] = 'Size (download)';
$contentvoicemail_msgs['label-size']['pt-pt'] = 'Tamanho (download)';
$contentvoicemail_msgs['confirm-delete']['en-us'] = 'Are you sure you want to delete this?';
$contentvoicemail_msgs['confirm-delete']['pt-pt'] = 'Tem a certeza que pretende apagar?';
$contentvoicemail_msgs['confirm-password']['en-us'] = 'Please provide: Voicemail Password';
$contentvoicemail_msgs['confirm-password']['pt-pt'] = 'Por favor, forneça: Palavra passe de Correio de Voz';
$contentvoicemail_msgs['confirm-update']['en-us'] = 'Update Complete';
$contentvoicemail_msgs['confirm-update']['pt-pt'] = 'Actualização Completa';
$contentvoicemail_msgs['label-voicemail']['en-us'] = 'Voicemail Settings for:';
$contentvoicemail_msgs['label-voicemail']['pt-pt'] = 'Configurações de correio de voz para:';
$contentvoicemail_msgs['button-back']['en-us'] = 'Back';
$contentvoicemail_msgs['button-back']['pt-pt'] = 'Voltar';
$contentvoicemail_msgs['button-save']['en-us'] = 'Save';
$contentvoicemail_msgs['button-save']['pt-pt'] = 'Guardar';
$contentvoicemail_msgs['label-password']['en-us'] = 'Voicemail Password';
$contentvoicemail_msgs['label-password']['pt-pt'] = 'Palavra Chave de Correio de Voz';
$contentvoicemail_msgs['label-passwordinfo']['en-us'] = 'Enter the password here.';
$contentvoicemail_msgs['label-passwordinfo']['pt-pt'] = 'Digite a palavra passe aqui.';
$contentvoicemail_msgs['label-enabled']['en-us'] = 'Voicemail Enabled';
$contentvoicemail_msgs['label-enabled']['pt-pt'] = 'Correio de Voz Ativado';
$contentvoicemail_msgs['label-enabledinfo']['en-us'] = 'Enable/disable voicemail for this extension.';
$contentvoicemail_msgs['label-enabledinfo']['pt-pt'] = 'Ativar/desativar o correio de voz para esta extensão.';
$contentvoicemail_msgs['check-true']['en-us'] = 'true';
$contentvoicemail_msgs['ckeck-true']['pt-pt'] = 'verdade';
$contentvoicemail_msgs['check-false']['en-us'] = 'false';
$contentvoicemail_msgs['ckeck-false']['pt-pt'] = 'falso';
$contentvoicemail_msgs['label-mail']['en-us'] = 'Voicemail Mail To';
$contentvoicemail_msgs['label-mail']['pt-pt'] = 'Correio de voz para Email';
$contentvoicemail_msgs['label-mailinfo']['en-us'] = 'Optional: Enter the email address to send voicemail to.';
$contentvoicemail_msgs['label-mailinfo']['pt-pt'] = 'Opcional: Digite o endereço de e-mail para enviar correio de voz para lá.';
$contentvoicemail_msgs['label-attach']['en-us'] = 'Voicemail Attach File';
$contentvoicemail_msgs['label-attach']['pt-pt'] = 'Anexar arquivo ao Correio de Voz';
$contentvoicemail_msgs['label-attachinfo']['en-us'] = 'Choose whether to attach the file to the email.';
$contentvoicemail_msgs['label-attachinfo']['pt-pt'] = 'Escolha se desejar, anexar o arquivo para o e-mail.';
$contentvoicemail_msgs['label-vm']['en-us'] = 'VM Keep Local After Email';
$contentvoicemail_msgs['label-vm']['pt-pt'] = 'Mantenha o Correio de Voz local após e-mail';
$contentvoicemail_msgs['label-vminfo']['en-us'] = 'Keep local file after sending the email.';
$contentvoicemail_msgs['label-vminfo']['pt-pt'] = 'Manter uma copia do arquivo localmente, após o envio do e-mail.';
$contentvoicemail_msgs['confirm-delete2']['en-us'] = 'Delete';
$contentvoicemail_msgs['confirm-delete2']['pt-pt'] = 'Eliminação';
$contentvoicemail_msgs['confirm-complete']['en-us'] = 'Complete';
$contentvoicemail_msgs['confirm-complete']['pt-pt'] = 'Completa';
$contentvoicemail_msgs['confirm-failed']['en-us'] = 'Failed';
$contentvoicemail_msgs['confirm-failed']['pt-pt'] = 'Falhada';
$contentvoicemail_msgs['confirm-socket']['en-us'] = 'Connection to Event Socket failed.';
$contentvoicemail_msgs['confirm-socket']['pt-pt'] = 'Ligação ao Event Socket falhou.';
$contentvoicemail_msgs['label-message']['en-us'] = 'Message';
$contentvoicemail_msgs['label-message']['pt-pt'] = 'Mensagem';
?>

View File

@@ -26,6 +26,7 @@
include "root.php";
require "includes/require.php";
require_once "includes/checkauth.php";
require_once "app_languages.php";
if (permission_exists('voicemail_view')) {
//access granted
}
@@ -34,6 +35,9 @@ else {
exit;
}
foreach($contentvoicemail_msgs as $key => $value) {
$contentvoicemail_msgs[$key] = $value[$_SESSION['domain']['language']['code']];
}
//download the voicemail
if ($_GET['a'] == "download") {
@@ -126,15 +130,15 @@ else {
echo "<table width='100%' border='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='50%' nowrap><b>Voicemail Messages</b></td>\n";
echo "<td align='left' width='50%' nowrap><b>".$contentvoicemail_msgs['title']."</b></td>\n";
echo "<td align='left' width='50%' align='right'>&nbsp;</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan='2' align='left'>\n";
echo "Voicemails are listed, played, downloaded and deleted from this page. \n";
echo "".$contentvoicemail_msgs['description']." \n";
if (if_group("admin") || if_group("superadmin")) {
echo "Voicemails for an extension are shown to the user(s) that have been assigned to an extension.\n";
echo "User accounts are created in the 'User Manager' and then are assigned on the 'Extensions' page. \n";
echo "".$contentvoicemail_msgs['description2']." \n";
echo "".$contentvoicemail_msgs['description3']." \n";
echo " <br />\n";
echo " <br />\n";
}
@@ -144,18 +148,18 @@ else {
$tmp_msg_header = '';
$tmp_msg_header .= "<tr>\n";
$tmp_msg_header .= th_order_by('created_epoch', 'Created', $order_by, $order);
$tmp_msg_header .= th_order_by('created_epoch', $contentvoicemail_msgs['label-created'], $order_by, $order);
//$tmp_msg_header .= th_order_by('read_epoch', 'Read', $order_by, $order);
//$tmp_msg_header .= th_order_by('username', 'Ext', $order_by, $order);
//$tmp_msg_header .= th_order_by('domain', 'Domain', $order_by, $order);
//$tmp_msg_header .= th_order_by('uuid', 'UUID', $order_by, $order);
$tmp_msg_header .= th_order_by('cid_name', 'Caller ID Name', $order_by, $order);
$tmp_msg_header .= th_order_by('cid_number', 'Caller ID Number', $order_by, $order);
$tmp_msg_header .= th_order_by('in_folder', 'Folder', $order_by, $order);
$tmp_msg_header .= th_order_by('cid_name', $contentvoicemail_msgs['label-calleridname'], $order_by, $order);
$tmp_msg_header .= th_order_by('cid_number', $contentvoicemail_msgs['label-calleridnumber'], $order_by, $order);
$tmp_msg_header .= th_order_by('in_folder', $contentvoicemail_msgs['label-folder'], $order_by, $order);
//$tmp_msg_header .= "<th>Options</th>\n";
//$tmp_msg_header .= th_order_by('file_path', 'File Path', $order_by, $order);
$tmp_msg_header .= th_order_by('message_len', 'Length (play)', $order_by, $order);
$tmp_msg_header .= "<th nowrap>Size (download)</th>\n";
$tmp_msg_header .= th_order_by('message_len', $contentvoicemail_msgs['label-length'], $order_by, $order);
$tmp_msg_header .= "<th nowrap>".$contentvoicemail_msgs['label-size']."</th>\n";
//$tmp_msg_header .= th_order_by('flags', 'Flags', $order_by, $order);
//$tmp_msg_header .= th_order_by('read_flags', 'Read Flags', $order_by, $order);
$tmp_msg_header .= "<td align='right' width='22'>\n";
@@ -173,12 +177,12 @@ else {
if (strlen($value['user']) > 0) {
echo "<tr><td colspan='5' align='left'>\n";
echo " <br />\n";
echo " <b>Mailbox: ".$value['user']."</b>&nbsp;\n";
echo " <b>".$contentvoicemail_msgs['table-mailbox'].": ".$value['user']."</b>&nbsp;\n";
echo " \n";
echo "</td>\n";
echo "<td valign='bottom' align='right'>\n";
echo " <input type='button' class='btn' name='' alt='greetings' onclick=\"window.location='".PROJECT_PATH."/app/voicemail_greetings/v_voicemail_greetings.php?id=".$value['user']."'\" value='Greetings'>\n";
echo " <input type='button' class='btn' name='' alt='settings' onclick=\"window.location='v_voicemail_msgs_password.php?id=".$value['extension_uuid']."'\" value='Settings'>\n";
echo " <input type='button' class='btn' name='' alt='greetings' onclick=\"window.location='".PROJECT_PATH."/app/voicemail_greetings/v_voicemail_greetings.php?id=".$value['user']."'\" value='".$contentvoicemail_msgs['button-greetings']."'>\n";
echo " <input type='button' class='btn' name='' alt='settings' onclick=\"window.location='v_voicemail_msgs_password.php?id=".$value['extension_uuid']."'\" value='".$contentvoicemail_msgs['button-settings']."'>\n";
echo "</td>\n";
echo "</tr>\n";
@@ -263,7 +267,7 @@ else {
echo "</td>\n";
echo " <td valign='top' align='center' nowrap>\n";
//echo " <a href='v_voicemail_msgs_edit.php?id=".$row[voicemail_msg_id]."' alt='edit'>$v_link_label_edit</a>\n";
echo " &nbsp;&nbsp;<a href='v_voicemail_msgs_delete.php?uuid=".$row['uuid']."&id=".$row['username']."' alt='delete message' title='delete message' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
echo " &nbsp;&nbsp;<a href='v_voicemail_msgs_delete.php?uuid=".$row['uuid']."&id=".$row['username']."' alt='delete message' title='delete message' onclick=\"return confirm('".$contentvoicemail_msgs['confirm-delete']."')\">$v_link_label_delete</a>\n";
echo " </td>\n";
echo "</tr>\n";

View File

@@ -26,6 +26,7 @@
include "root.php";
require "includes/require.php";
require_once "includes/checkauth.php";
require_once "app_languages.php";
if (permission_exists('voicemail_delete')) {
//access granted
}
@@ -34,6 +35,10 @@ else {
exit;
}
foreach($contentvoicemail_msgs as $key => $value) {
$contentvoicemail_msgs[$key] = $value[$_SESSION['domain']['language']['code']];
}
//get the http get values
if (count($_GET)>0) {
$uuid = $_GET["uuid"];
@@ -46,7 +51,7 @@ 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) {
$msg = "<div align='center'>Connection to Event Socket failed.<br /></div>";
$msg = "<div align='center'>".$contentvoicemail_msgs['confirm-socket']."<br /></div>";
}
//show the error message or show the content
@@ -55,7 +60,7 @@ else {
echo "<div align='center'>\n";
echo " <table width='40%'>\n";
echo " <tr>\n";
echo " <th align='left'>Message</th>\n";
echo " <th align='left'>".$contentvoicemail_msgs['label-message']."</th>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td class='row_style1'><strong>$msg</strong></td>\n";
@@ -71,17 +76,17 @@ else {
$response = trim(event_socket_request($fp, $cmd));
echo $xml_response;
if (strcmp($response,"+OK")==0) {
$msg = "Complete";
$msg = "".$contentvoicemail_msgs['confirm-complete']."";
}
else {
$msg = "Failed";
$msg = "".$contentvoicemail_msgs['confirm-failed']."";
}
//redirect the user
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_voicemail_msgs.php\">\n";
echo "<div align='center'>\n";
echo "Delete $msg\n";
echo "".$contentvoicemail_msgs['confirm-delete2']." $msg\n";
echo "</div>\n";
require_once "includes/footer.php";
return;

View File

@@ -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('voicemail_edit')) {
//access granted
}
@@ -34,6 +35,10 @@ else {
exit;
}
foreach($contentvoicemail_msgs as $key => $value) {
$contentvoicemail_msgs[$key] = $value[$_SESSION['domain']['language']['code']];
}
//set the action as an add or update
if (isset($_REQUEST["id"])) {
$action = "update";
@@ -114,7 +119,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//if (strlen($extension) == 0) { $msg .= "Please provide: Extension<br>\n"; }
//if (strlen($password) == 0) { $msg .= "Please provide: Password<br>\n"; }
//if (strlen($mailbox) == 0) { $msg .= "Please provide: Mailbox<br>\n"; }
if (strlen($vm_password) == 0) { $msg .= "Please provide: Voicemail Password<br>\n"; }
if (strlen($vm_password) == 0) { $msg .= "".$contentvoicemail_msgs['confirm-password']."<br>\n"; }
//if (strlen($accountcode) == 0) { $msg .= "Please provide: Account Code<br>\n"; }
//if (strlen($effective_caller_id_name) == 0) { $msg .= "Please provide: Effective Caller ID Name<br>\n"; }
//if (strlen($effective_caller_id_number) == 0) { $msg .= "Please provide: Effective Caller ID Number<br>\n"; }
@@ -184,7 +189,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_voicemail_msgs.php\">\n";
echo "<div align='center'>\n";
echo "Update Complete\n";
echo "".$contentvoicemail_msgs['confirm-update']."\n";
echo "</div>\n";
require_once "includes/footer.php";
return;
@@ -266,18 +271,18 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<tr>\n";
echo " <td width='30%' nowrap valign='top' align='left'><b>Voicemail Settings for $extension</b></td>\n";
echo " <td width='70%' align='right' valign='top'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_voicemail_msgs.php'\" value='Back'><br /><br /></td>\n";
echo " <td width='30%' nowrap valign='top' align='left'><b>".$contentvoicemail_msgs['label-voicemail']." $extension</b></td>\n";
echo " <td width='70%' align='right' valign='top'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_voicemail_msgs.php'\" value='".$contentvoicemail_msgs['button-back']."'><br /><br /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Voicemail Password:\n";
echo " ".$contentvoicemail_msgs['label-password'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='password' name='vm_password' id='password' onfocus=\"document.getElementById('show_password').innerHTML = 'Password: '+document.getElementById('password').value;\" autocomplete='off' maxlength='50' value=\"$vm_password\">\n";
echo "<br />\n";
echo "<span onclick=\"document.getElementById('show_password').innerHTML = ''\">Enter the password here. </span><span id='show_password'></span>\n";
echo "<span onclick=\"document.getElementById('show_password').innerHTML = ''\">".$contentvoicemail_msgs['label-passwordinfo']." </span><span id='show_password'></span>\n";
echo "</td>\n";
echo "</tr>\n";
@@ -305,7 +310,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Voicemail Enabled:\n";
echo " ".$contentvoicemail_msgs['label-enabled'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='vm_enabled'>\n";
@@ -324,24 +329,24 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
echo " </select>\n";
echo "<br />\n";
echo "Enable/disable voicemail for this extension.\n";
echo " ".$contentvoicemail_msgs['label-enabledinfo']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Voicemail Mail To:\n";
echo " ".$contentvoicemail_msgs['label-mail'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='vm_mailto' maxlength='255' value=\"$vm_mailto\">\n";
echo "<br />\n";
echo "Optional: Enter the email address to send voicemail to.\n";
echo "".$contentvoicemail_msgs['label-mailinfo']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Voicemail Attach File:\n";
echo " ".$contentvoicemail_msgs['label-attach'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='vm_attach_file'>\n";
@@ -360,13 +365,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
echo " </select>\n";
echo "<br />\n";
echo "Choose whether to attach the file to the email.\n";
echo "".$contentvoicemail_msgs['label-attachinfo']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " VM Keep Local After Email:\n";
echo " ".$contentvoicemail_msgs['label-vm'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='vm_keep_local_after_email'>\n";
@@ -385,7 +390,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
echo " </select>\n";
echo "<br />\n";
echo "Keep local file after sending the email. \n";
echo "".$contentvoicemail_msgs['label-vminfo']." \n";
echo "</td>\n";
echo "</tr>\n";
@@ -405,7 +410,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo " <input type='hidden' name='extension_uuid' value='$extension_uuid'>\n";
}
echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
echo " <input type='submit' name='submit' class='btn' value='".$contentvoicemail_msgs['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo "</table>";

View File

@@ -27,6 +27,7 @@
include "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
require_once "app_languages.php";
if (permission_exists('voicemail_view')) {
//access granted
}
@@ -35,6 +36,10 @@ else {
exit;
}
foreach($contentvoicemail_msgs as $key => $value) {
$contentvoicemail_msgs[$key] = $value[$_SESSION['domain']['language']['code']];
}
//get the http get values
$uuid = $_GET['uuid'];
$file_ext = $_GET['ext'];
@@ -48,7 +53,7 @@ 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) {
$msg = "<div align='center'>Connection to Event Socket failed.<br /></div>";
$msg = "<div align='center'>".$contentvoicemail_msgs['confirm-socket']."<br /></div>";
}
//show the error message or show the content
@@ -57,7 +62,7 @@ else {
echo "<div align='center'>\n";
echo " <table width='40%'>\n";
echo " <tr>\n";
echo " <th align='left'>Message</th>\n";
echo " <th align='left'>".$contentvoicemail_msgs['label-message']."</th>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td class='row_style1'><strong>$msg</strong></td>\n";

33
app_languages.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
$content['title-table']['en-us'] = 'User Information';
$content['title-table']['pt-pt'] = 'Informação do Utilizador';
$content['label-name']['en-us'] = 'User Name';
$content['label-name']['pt-pt'] = 'Nome do Utilizador';
$content['label-voicemail']['en-us'] = 'Voicemail';
$content['label-voicemail']['pt-pt'] = 'Correio de Voz';
$content['label-view-messages']['en-us'] = 'View Messages';
$content['label-view-messages']['pt-pt'] = 'Ver Mensagens';
$content_calls['table-extension']['en-us'] = 'Extension';
$content_calls['table-extension']['pt-pt'] = 'Extensão';
$content_calls['table-tools']['en-us'] = 'Tools';
$content_calls['table-tools']['pt-pt'] = 'Ferramentas';
$content_calls['table-description']['en-us'] = 'Description';
$content_calls['table-description']['pt-pt'] = 'Descrição';
$content_calls['lable-callforward']['en-us'] = 'Call Forward';
$content_calls['lable-callforward']['pt-pt'] = 'Encaminhamento de Chamada';
$content_calls['lable-followme']['en-us'] = 'Follow Me';
$content_calls['lable-followme']['pt-pt'] = 'Segue-me';
$content_calls['lable-dnd']['en-us'] = 'Do Not Disturb';
$content_calls['lable-dnd']['pt-pt'] = 'Não Perturbar';
?>

View File

@@ -31,10 +31,15 @@ if (!file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php"))
require_once "includes/require.php";
require_once "includes/checkauth.php";
require_once "includes/header.php";
require_once "app_languages.php";
echo "<br />";
echo "<br />";
foreach($content as $key => $value) {
$content[$key] = $value[$_SESSION['domain']['language']['code']];
}
//information
//echo "<table width=\"100%\" border=\"0\" cellpadding=\"7\" cellspacing=\"0\">\n";
//echo " <tr>\n";
@@ -47,24 +52,22 @@ echo "<br />";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"7\" cellspacing=\"0\">\n";
echo "<tr>\n";
echo " <th class='th' colspan='2' align='left'>User Information&nbsp;</th>\n";
echo " <th class='th' colspan='2' align='left'>".$content['title-table']."&nbsp;</th>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
echo " UserName: \n";
echo " ".$content['label-name'].": \n";
echo " </td>\n";
echo " <td class=\"row_style1\">\n";
echo " <a href='".PROJECT_PATH."/app/users/usersupdate.php'>".$_SESSION["username"]."</a> \n";
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
echo " Voicemail: \n";
echo " ".$content['label-voicemail'].": \n";
echo " </td>\n";
echo " <td class=\"row_style1\">\n";
echo " <a href='".PROJECT_PATH."/app/voicemail_msgs/v_voicemail_msgs.php'>View Messages</a> \n";
echo " <a href='".PROJECT_PATH."/app/voicemail_msgs/v_voicemail_msgs.php'>".$content['label-view-messages']."</a> \n";
echo " </td>\n";
echo "</tr>\n";
echo "</table>\n";
@@ -90,4 +93,4 @@ echo "<br />";
//show the footer
require_once "includes/footer.php";
?>
?>

View File

@@ -1755,4 +1755,4 @@ if ($_POST["install_step"] == "3" && count($_POST)>0 && strlen($_POST["persistfo
echo $output;
unset($output);
?>
?>