Use the new multi-lingual code on misc files.
This commit is contained in:
parent
e0115b0e99
commit
2448ab3a8e
|
|
@ -26,7 +26,6 @@
|
||||||
include "root.php";
|
include "root.php";
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
require_once "app_languages.php";
|
|
||||||
if (permission_exists('call_broadcast_view')) {
|
if (permission_exists('call_broadcast_view')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 queue_name and set it as a variable
|
//get the queue_name and set it as a variable
|
||||||
$queue_name = $_GET[queue_name];
|
$queue_name = $_GET[queue_name];
|
||||||
|
|
|
||||||
|
|
@ -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-call_flows'];
|
$document['title'] = $text['title-call_flows'];
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
include "root.php";
|
include "root.php";
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
include "app_languages.php";
|
|
||||||
if (permission_exists('call_active_view')) {
|
if (permission_exists('call_active_view')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
include "root.php";
|
include "root.php";
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
include "app_languages.php";
|
|
||||||
if (permission_exists('call_active_view')) {
|
if (permission_exists('call_active_view')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,8 @@ if ($domains_processed == 1) {
|
||||||
$field_exists = $obj->column_exists($db_name, 'v_contact_phones', 'phone_type'); //check if field exists
|
$field_exists = $obj->column_exists($db_name, 'v_contact_phones', 'phone_type'); //check if field exists
|
||||||
if ($field_exists) {
|
if ($field_exists) {
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app/contacts/app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
// populate phone_type_* values
|
// populate phone_type_* values
|
||||||
$sql = "update v_contact_phones set phone_type_voice = '1' ";
|
$sql = "update v_contact_phones set phone_type_voice = '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']];
|
|
||||||
}
|
|
||||||
|
|
||||||
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"])) {
|
||||||
|
|
|
||||||
|
|
@ -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']];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count($_POST)>0) {
|
if (count($_POST)>0) {
|
||||||
$rss_uuid = check_str($_POST["rss_uuid"]);
|
$rss_uuid = check_str($_POST["rss_uuid"]);
|
||||||
|
|
|
||||||
|
|
@ -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']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//includes and title
|
//includes and title
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,9 @@ else {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once "app/devices/app_languages.php";
|
//add multi-lingual support
|
||||||
foreach($text as $key => $value) {
|
$language = new text;
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
$text = $language->get();
|
||||||
}
|
|
||||||
|
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
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']];
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
$document['title'] = $text['title-extensions'];
|
$document['title'] = $text['title-extensions'];
|
||||||
|
|
|
||||||
|
|
@ -41,10 +41,6 @@ unset($sql, $prep_statement);
|
||||||
|
|
||||||
if (sizeof($result) != 0) {
|
if (sizeof($result) != 0) {
|
||||||
|
|
||||||
//load language file
|
|
||||||
require_once "app_languages.php";
|
|
||||||
$text_original = $text;
|
|
||||||
|
|
||||||
//load default settings
|
//load default settings
|
||||||
$default_settings = load_default_settings();
|
$default_settings = load_default_settings();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,10 +55,8 @@ include "root.php";
|
||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app/music_on_hold/app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get();
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//start the select
|
//start the select
|
||||||
$select = " <select class='formfld' name='".$this->select_name."' id='".$this->select_name."' style='width: auto;'>\n";
|
$select = " <select class='formfld' name='".$this->select_name."' id='".$this->select_name."' style='width: auto;'>\n";
|
||||||
|
|
|
||||||
|
|
@ -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-apps'];
|
$document['title'] = $text['title-apps'];
|
||||||
|
|
|
||||||
|
|
@ -456,10 +456,8 @@ include "root.php";
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
if (!isset($text)) {
|
if (!isset($text)) {
|
||||||
require "core/upgrade/app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get(null,'core/upgrade');
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//PHP PDO check if table or column exists
|
//PHP PDO check if table or column exists
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "core/user_settings/app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get(null,'core/user_settings');
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
//get action, if any
|
//get action, if any
|
||||||
if (isset($_REQUEST['action'])) {
|
if (isset($_REQUEST['action'])) {
|
||||||
|
|
|
||||||
|
|
@ -1248,10 +1248,8 @@ legend {
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "themes/enhanced/app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get(null,'themes/enhanced');
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
// set message_onload
|
// set message_onload
|
||||||
if (strlen($_SESSION['message']) > 0) {
|
if (strlen($_SESSION['message']) > 0) {
|
||||||
|
|
|
||||||
|
|
@ -1262,10 +1262,8 @@ legend {
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "themes/minimized/app_languages.php";
|
$language = new text;
|
||||||
foreach($text as $key => $value) {
|
$text = $language->get(null,'themes/minimized');
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
|
||||||
}
|
|
||||||
|
|
||||||
// set message_onload
|
// set message_onload
|
||||||
if (strlen($_SESSION['message']) > 0) {
|
if (strlen($_SESSION['message']) > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue