diff --git a/app/fax/app_languages.php b/app/fax/app_languages.php index 2598df2bf7..71796fb94b 100644 --- a/app/fax/app_languages.php +++ b/app/fax/app_languages.php @@ -1,156 +1,156 @@  \ No newline at end of file diff --git a/app/fax/fax.php b/app/fax/fax.php index cc425a2f6b..0eb9796e93 100644 --- a/app/fax/fax.php +++ b/app/fax/fax.php @@ -40,8 +40,8 @@ require_once "includes/paging.php"; echo "\n"; - foreach($content_fax as $key => $value) { - $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //get the http get values and set them as php variables @@ -58,7 +58,7 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo "

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

\n"; echo " \n"; echo " \n"; @@ -124,10 +124,10 @@ require_once "includes/paging.php"; echo "
\n"; echo "\n"; echo "\n"; - 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 th_order_by('fax_extension', $text['label-extension'], $order_by, $order); + echo th_order_by('fax_name', $text['label-name'], $order_by, $order); + echo th_order_by('fax_email', $text['label-email'], $order_by, $order); + echo th_order_by('fax_description', $text['label-description'], $order_by, $order); echo "\n"; echo "\n"; diff --git a/app/fax/fax_copy.php b/app/fax/fax_copy.php index 73fa574e88..3e28883e0f 100644 --- a/app/fax/fax_copy.php +++ b/app/fax/fax_copy.php @@ -36,8 +36,10 @@ else { exit; } - foreach($content_fax as $key => $value) { - $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //set the http get/post variable(s) to a php variable @@ -110,7 +112,7 @@ else { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "".$content_fax['confirm-copy']."\n"; + echo "".$text['confirm-copy']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/fax/fax_delete.php b/app/fax/fax_delete.php index d2d42e148d..06bb5fa9b1 100644 --- a/app/fax/fax_delete.php +++ b/app/fax/fax_delete.php @@ -35,9 +35,10 @@ else { exit; } - //prepare the languages - foreach($content_fax as $key => $value) { - $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //get the http get value and set it as a php variable @@ -92,7 +93,7 @@ else { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "".$content_fax['confirm-delete']."\n"; + echo "".$text['confirm-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php index e188738512..d05c65b80a 100644 --- a/app/fax/fax_edit.php +++ b/app/fax/fax_edit.php @@ -36,8 +36,8 @@ else { //add multi-lingual support require_once "app_languages.php"; - foreach($content_fax as $key => $value) { - $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //get the fax_extension and save it as a variable @@ -131,7 +131,7 @@ else { //redirect the browser require_once "includes/header.php"; echo "\n"; - echo "
".$content_fax['confirm-delete']."
"; + echo "
".$text['confirm-delete']."
"; require_once "includes/footer.php"; return; } @@ -160,7 +160,7 @@ else { //redirect the browser require_once "includes/header.php"; echo "\n"; - echo "
".$content_fax['confirm-add']."
"; + echo "
".$text['confirm-add']."
"; require_once "includes/footer.php"; return; } @@ -176,8 +176,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } //check for all required data - if (strlen($fax_extension) == 0) { $msg .= "".$content_fax['confirm-ext']."
\n"; } - if (strlen($fax_name) == 0) { $msg .= "".$content_fax['confirm-fax']."
\n"; } + if (strlen($fax_extension) == 0) { $msg .= "".$text['confirm-ext']."
\n"; } + if (strlen($fax_name) == 0) { $msg .= "".$text['confirm-fax']."
\n"; } //if (strlen($fax_email) == 0) { $msg .= "Please provide: Email
\n"; } //if (strlen($fax_pin_number) == 0) { $msg .= "Please provide: Pin Number
\n"; } //if (strlen($fax_caller_id_name) == 0) { $msg .= "Please provide: Caller ID Name
\n"; } @@ -454,10 +454,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "
\n"; if ($action == "update" && permission_exists('fax_extension_edit')) { - echo "".$content_fax['confirm-update']."\n"; + echo "".$text['confirm-update']."\n"; } if ($action == "add" && permission_exists('fax_extension_add')) { - echo "".$content_fax['confirm-add']."\n"; + echo "".$text['confirm-add']."\n"; } echo "
\n"; require_once "includes/footer.php"; @@ -508,109 +508,109 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; if (permission_exists('fax_extension_add')) { echo " $v_link_label_add\n"; @@ -147,7 +147,7 @@ require_once "includes/paging.php"; echo " $v_link_label_edit\n"; } if (permission_exists('fax_extension_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "
\n"; echo "\n"; if ($action == "add") { - echo "\n"; + echo "\n"; } if ($action == "update") { - echo "\n"; + echo "\n"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if (if_group("admin") || if_group("superadmin")) { if ($action == "update") { echo " "; - echo " "; + echo " "; echo " \n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -385,7 +386,7 @@ else { echo " \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
".$content_fax['confirm-faxadd']."".$text['confirm-fax-add']."".$content_fax['confirm-faxedit']."".$text['confirm-fax-edit']."\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; - echo " ".$content_fax['label-name'].":\n"; + echo " ".$text['label-name'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_fax['description-name']."\n"; + echo "".$text['description-name']."\n"; echo "
\n"; - echo " ".$content_fax['label-extension'].":\n"; + echo " ".$text['label-extension'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_fax['description-extension']."\n"; + echo "".$text['description-extension']."\n"; echo "
\n"; - echo " ".$content_fax['label-destination-number'].":\n"; + echo " ".$text['label-destination-number'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo " ".$content_fax['description-destination-number']."\n"; + echo " ".$text['description-destination-number']."\n"; echo "
\n"; - echo " ".$content_fax['label-email'].":\n"; + echo " ".$text['label-email'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo " ".$content_fax['description-email']."\n"; + echo " ".$text['description-email']."\n"; echo "
\n"; - echo " ".$content_fax['label-pin'].":\n"; + echo " ".$text['label-pin'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_fax['description-pin']."\n"; + echo "".$text['description-pin']."\n"; echo "
\n"; - echo " ".$content_fax['label-callerid-name'].":\n"; + echo " ".$text['label-caller-id-name'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_fax['description-callerid-name']."\n"; + echo "".$text['description-caller-id-name']."\n"; echo "
\n"; - echo " ".$content_fax['label-callerid-number'].":\n"; + echo " ".$text['label-caller-id-number'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_fax['description-callerid-number']."\n"; + echo "".$text['description-caller-id-number']."\n"; echo "
\n"; - echo " ".$content_fax['label-forward'].":\n"; + echo " ".$text['label-forward'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_fax['description-forwardnumber']."\n"; + echo "".$text['description-forward-number']."\n"; echo "
".$content_fax['label-userlist'].":".$text['label-user-list'].":"; echo " \n"; @@ -626,7 +626,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; echo " \n"; echo " \n"; } @@ -644,10 +644,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; } echo " "; - echo " \n"; + echo " \n"; unset($sql, $result); echo "
\n"; - echo " ".$content_fax['description-useradd']."\n"; + echo " ".$text['description-user-add']."\n"; echo "
\n"; echo " "; echo " "; @@ -656,12 +656,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo " \n"; @@ -670,7 +670,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
".$field['username']."\n"; - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; echo "
\n"; - echo " ".$content_fax['label-description'].":\n"; + echo " ".$text['label-description'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_fax['description-info']."\n"; + echo "".$text['description-info']."\n"; echo "
"; diff --git a/app/fax/fax_view.php b/app/fax/fax_view.php index a8dd67fcbf..495d1f911a 100644 --- a/app/fax/fax_view.php +++ b/app/fax/fax_view.php @@ -35,9 +35,10 @@ else { exit; } - //prepare the languages - foreach($content_fax as $key => $value) { - $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //get the fax_extension and save it as a variable @@ -160,7 +161,7 @@ else { fpassthru($fd); } else { - echo "".$content_fax['label-file'].""; + echo "".$text['label-file'].""; } exit; } @@ -331,13 +332,13 @@ else { echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "
\n"; - echo " ".$content_fax['title']."\n"; + echo " ".$text['title']."\n"; echo " \n"; if (permission_exists('fax_extension_add') || permission_exists('fax_extension_edit')) { - echo " \n"; + echo " \n"; } - echo " \n"; + echo " \n"; echo "
\n"; @@ -349,33 +350,33 @@ else { echo "
\n"; //pkg_add -r ghostscript8-nox11; rehash - echo " ".$content_fax['description2']." \n"; - echo " ".$content_fax['description3']."\n"; + echo " ".$text['description-2']." \n"; + echo " ".$text['description-3']."\n"; echo "

\n"; echo "
\n"; - echo " ".$content_fax['label-faxnumber'].":\n"; + echo " ".$text['label-fax-number'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_fax['description-faxnumber']."\n"; + echo "".$text['description-fax-number']."\n"; echo "
\n"; - echo " ".$content_fax['label-upload'].":\n"; + echo " ".$text['label-upload'].":\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; - echo " ".$content_fax['description-upload']."\n"; + echo " ".$text['description-upload']."\n"; echo "
"; @@ -405,7 +406,7 @@ else { echo " \n"; echo " "; if ($v_path_show) { - echo "".$content_fax['label-location'].": "; + echo "".$text['label-location'].": "; echo $dir_fax_inbox."     "; } echo " \n"; @@ -420,10 +421,10 @@ else { echo "
\n"; echo " \n"; echo " \n"; - echo " "; @@ -519,7 +520,7 @@ else { echo "
".$content_fax['table-file']."\n"; - echo " ".$content_fax['table-view']."\n"; - echo " ".$content_fax['table-modified']."\n"; - echo " Size".$content_fax['table-size']."\n"; + echo " ".$text['table-file']."\n"; + echo " ".$text['table-view']."\n"; + echo " ".$text['table-modified']."\n"; + echo " Size".$text['table-size']."\n"; echo "
\n"; echo " \n"; if (permission_exists('fax_inbox_delete')) { - echo " \n"; + echo " \n"; } echo " \n"; echo "
$v_link_label_delete$v_link_label_delete
\n"; @@ -548,7 +549,7 @@ else { echo " \n"; echo " \n"; if ($v_path_show) { - echo "".$content_fax['label-location'].": \n"; + echo "".$text['label-location'].": \n"; echo $dir_fax_sent."     \n"; } echo " \n"; @@ -557,10 +558,10 @@ else { echo "\n"; echo " \n"; echo " \n"; - echo " "; if ($handle = opendir($dir_fax_sent)) { @@ -653,7 +654,7 @@ else { echo "
".$content_fax['table-file']."\n"; - echo " ".$content_fax['table-view']."\n"; - echo " ".$content_fax['table-modified']."\n"; - echo " ".$content_fax['table-size']."\n"; + echo " ".$text['table-file']."\n"; + echo " ".$text['table-view']."\n"; + echo " ".$text['table-modified']."\n"; + echo " ".$text['table-size']."\n"; echo "
\n"; echo " \n"; if (permission_exists('fax_sent_delete')) { - echo " \n"; + echo " \n"; } echo " \n"; echo "
$v_link_label_delete$v_link_label_delete
\n";