Use the new multi-lingual code on fusionpbx/core sub directories.

This commit is contained in:
Mark Crane
2015-01-18 09:22:07 +00:00
parent 283cda7aa1
commit d5731c9172
38 changed files with 136 additions and 221 deletions
+2 -4
View File
@@ -37,10 +37,8 @@ require_once "resources/require.php";
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//include the header
$document['title'] = $text['title-group_permissions'];
+2 -4
View File
@@ -37,10 +37,8 @@ require_once "resources/require.php";
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//get the http values and set them as variables
$path = check_str($_GET["path"]);
+2 -4
View File
@@ -41,10 +41,8 @@ else {
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//get the http value and set as a variable
$group_name = $_GET["group_name"];
+2 -4
View File
@@ -37,10 +37,8 @@ require_once "resources/require.php";
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//show the header
require_once "resources/header.php";
+2 -4
View File
@@ -35,10 +35,8 @@ else {
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//include the header
require_once "resources/header.php";
+2 -4
View File
@@ -37,10 +37,8 @@ require_once "resources/require.php";
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//include paging
require_once "resources/paging.php";
+2 -4
View File
@@ -39,10 +39,8 @@
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//permission restore default
require_once "core/users/resources/classes/permission.php";
+11 -12
View File
@@ -37,19 +37,18 @@ require_once "resources/require.php";
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
$username = check_str($_POST["username"]);
$password = check_str($_POST["password"]);
$confirmpassword = check_str($_POST["confirmpassword"]);
$group_uuid_name = check_str($_POST["group_uuid_name"]);
$user_email = check_str($_POST["user_email"]);
$contact_organization = check_str($_POST["contact_organization"]);
$contact_name_given = check_str($_POST["contact_name_given"]);
$contact_name_family = check_str($_POST["contact_name_family"]);
//get the values from http and set as variables
$username = check_str($_POST["username"]);
$password = check_str($_POST["password"]);
$confirmpassword = check_str($_POST["confirmpassword"]);
$group_uuid_name = check_str($_POST["group_uuid_name"]);
$user_email = check_str($_POST["user_email"]);
$contact_organization = check_str($_POST["contact_organization"]);
$contact_name_given = check_str($_POST["contact_name_given"]);
$contact_name_family = check_str($_POST["contact_name_family"]);
if ($group_uuid_name != '') {
$group_data = explode('|', $group_uuid_name);
+2 -4
View File
@@ -35,10 +35,8 @@ else {
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//get the id
$user_uuid = check_str($_GET["id"]);
+2 -7
View File
@@ -39,13 +39,8 @@ else {
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text['button-save'] as $key => $value) {
$languages[$key] = '';
}
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//get data from the db
if (strlen($_REQUEST["id"]) > 0) {