Use the new multi-lingual code on fusionpbx/app sub directories.
This commit is contained in:
@@ -36,10 +36,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//get the number of rows in v_extensions
|
//get the number of rows in v_extensions
|
||||||
$sql = " select count(*) as num_rows from v_settings ";
|
$sql = " select count(*) as num_rows from v_settings ";
|
||||||
|
|||||||
@@ -39,10 +39,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//set the http get/post variable(s) to a php variable
|
//set the http get/post variable(s) to a php variable
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count($_GET)>0) {
|
if (count($_GET)>0) {
|
||||||
$id = check_str($_GET["id"]);
|
$id = check_str($_GET["id"]);
|
||||||
|
|||||||
@@ -36,10 +36,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//action add or update
|
//action add or update
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count($_GET)>0) {
|
if (count($_GET)>0) {
|
||||||
$id = check_str($_GET["id"]);
|
$id = check_str($_GET["id"]);
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//action add or update
|
//action add or update
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
$document['title'] = $text['title-sip_profiles'];
|
$document['title'] = $text['title-sip_profiles'];
|
||||||
|
|||||||
@@ -38,10 +38,8 @@ else {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//define variables
|
//define variables
|
||||||
$c = 0;
|
$c = 0;
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//pdo database connection
|
//pdo database connection
|
||||||
if (strlen($_REQUEST['id']) > 0) {
|
if (strlen($_REQUEST['id']) > 0) {
|
||||||
|
|||||||
@@ -37,10 +37,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//show errors
|
//show errors
|
||||||
ini_set('display_errors', '1');
|
ini_set('display_errors', '1');
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//show the header
|
//show the header
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
$document['title'] = $text['title-databases'];
|
$document['title'] = $text['title-databases'];
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//pdo database connection
|
//pdo database connection
|
||||||
if (strlen($_REQUEST['id']) > 0) {
|
if (strlen($_REQUEST['id']) > 0) {
|
||||||
|
|||||||
@@ -39,10 +39,9 @@ else {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
|
|||||||
@@ -37,10 +37,8 @@ require_once "resources/header.php";
|
|||||||
require_once "resources/paging.php";
|
require_once "resources/paging.php";
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//set the variables
|
//set the variables
|
||||||
$order_by = check_str($_GET["order_by"]);
|
$order_by = check_str($_GET["order_by"]);
|
||||||
|
|||||||
@@ -44,10 +44,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($_REQUEST['interface']) {
|
if ($_REQUEST['interface']) {
|
||||||
$interface = $_REQUEST['interface'];
|
$interface = $_REQUEST['interface'];
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//get the id
|
//get the id
|
||||||
if (count($_GET) > 0) {
|
if (count($_GET) > 0) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//set the action as an add or an update
|
//set the action as an add or an update
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
|
|||||||
+2
-4
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//include the header
|
//include the header
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//include the header
|
//include the header
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count($_GET)>0) {
|
if (count($_GET)>0) {
|
||||||
$id = check_str($_GET["id"]);
|
$id = check_str($_GET["id"]);
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//set the action as an add or an update
|
//set the action as an add or an update
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
require_once "resources/paging.php";
|
require_once "resources/paging.php";
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//get the id
|
//get the id
|
||||||
if (count($_GET)>0) {
|
if (count($_GET)>0) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//action add or update
|
//action add or update
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//get the HTTP values and set them as variables
|
//get the HTTP values and set them as variables
|
||||||
if (count($_GET)>0) {
|
if (count($_GET)>0) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//action add or update
|
//action add or update
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//set the voicemail_uuid
|
//set the voicemail_uuid
|
||||||
if (strlen($_REQUEST["id"]) > 0) {
|
if (strlen($_REQUEST["id"]) > 0) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//set the voicemail_id array
|
//set the voicemail_id array
|
||||||
foreach ($_SESSION['user']['extension'] as $row) {
|
foreach ($_SESSION['user']['extension'] as $row) {
|
||||||
|
|||||||
@@ -37,10 +37,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//import xml_cdr files
|
//import xml_cdr files
|
||||||
require_once "v_xml_cdr_import.php";
|
require_once "v_xml_cdr_import.php";
|
||||||
|
|||||||
@@ -36,10 +36,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//get the http values and set them to a variable
|
//get the http values and set them to a variable
|
||||||
if (strlen($_REQUEST["uuid"]) > 0) {
|
if (strlen($_REQUEST["uuid"]) > 0) {
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
$rows_per_page = 0;
|
$rows_per_page = 0;
|
||||||
|
|||||||
@@ -126,10 +126,8 @@ require_once "resources/require.php";
|
|||||||
unset ($sql, $prep_statement, $result, $row_count);
|
unset ($sql, $prep_statement, $result, $row_count);
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|||||||
@@ -36,10 +36,8 @@ else {
|
|||||||
|
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
||||||
|
|||||||
@@ -35,10 +35,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
require_once "xml_cdr_statistics_inc.php";
|
require_once "xml_cdr_statistics_inc.php";
|
||||||
|
|||||||
@@ -37,10 +37,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$domain_name = $_SESSION['domains'][$domain_uuid]['domain_name'];
|
$domain_name = $_SESSION['domains'][$domain_uuid]['domain_name'];
|
||||||
|
|||||||
+2
-4
@@ -37,10 +37,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|||||||
@@ -40,10 +40,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//add or update the database
|
//add or update the database
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user