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";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
require_once "app_languages.php";
|
||||
if (permission_exists('call_broadcast_view')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 queue_name and set it as a variable
|
||||
$queue_name = $_GET[queue_name];
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
if (count($_GET)>0) {
|
||||
$id = check_str($_GET["id"]);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
//action add or update
|
||||
if (isset($_REQUEST["id"])) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-call_flows'];
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('call_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('call_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -47,7 +46,7 @@ else {
|
|||
|
||||
//if the connnection is available then run it and return the results
|
||||
if (!$fp) {
|
||||
$msg = "<div align='center'>".$text['confirm-socket']."<br /></div>";
|
||||
$msg = "<div align='center'>".$text['confirm-socket']."<br /></div>";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='40%'>\n";
|
||||
echo "<tr>\n";
|
||||
|
|
@ -60,7 +59,7 @@ else {
|
|||
echo "</div>\n";
|
||||
}
|
||||
else {
|
||||
//send the event socket command
|
||||
//send the event socket command
|
||||
$json = trim(event_socket_request($fp, 'api '.$switch_cmd));
|
||||
//set the array
|
||||
$results = json_decode($json, "true");
|
||||
|
|
|
|||
|
|
@ -12,10 +12,8 @@ if ($domains_processed == 1) {
|
|||
$field_exists = $obj->column_exists($db_name, 'v_contact_phones', 'phone_type'); //check if field exists
|
||||
if ($field_exists) {
|
||||
//add multi-lingual support
|
||||
require_once "app/contacts/app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
// populate phone_type_* values
|
||||
$sql = "update v_contact_phones set phone_type_voice = '1' ";
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
if (count($_GET)>0) {
|
||||
$id = check_str($_GET["id"]);
|
||||
|
|
|
|||
|
|
@ -36,10 +36,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();
|
||||
|
||||
//action add or update
|
||||
if (isset($_REQUEST["id"])) {
|
||||
|
|
|
|||
|
|
@ -39,10 +39,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();
|
||||
|
||||
if (count($_POST)>0) {
|
||||
$rss_uuid = check_str($_POST["rss_uuid"]);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
//includes and title
|
||||
require_once "resources/header.php";
|
||||
|
|
|
|||
|
|
@ -34,10 +34,9 @@ else {
|
|||
exit;
|
||||
}
|
||||
|
||||
require_once "app/devices/app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
require_once "resources/header.php";
|
||||
require_once "resources/paging.php";
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-extensions'];
|
||||
|
|
|
|||
|
|
@ -41,10 +41,6 @@ unset($sql, $prep_statement);
|
|||
|
||||
if (sizeof($result) != 0) {
|
||||
|
||||
//load language file
|
||||
require_once "app_languages.php";
|
||||
$text_original = $text;
|
||||
|
||||
//load default settings
|
||||
$default_settings = load_default_settings();
|
||||
|
||||
|
|
|
|||
|
|
@ -55,10 +55,8 @@ include "root.php";
|
|||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app/music_on_hold/app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//start the select
|
||||
$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
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-apps'];
|
||||
|
|
|
|||
|
|
@ -446,20 +446,18 @@ include "root.php";
|
|||
|
||||
//datatase schema
|
||||
public function schema ($format) {
|
||||
|
||||
|
||||
//set the global variable
|
||||
global $db, $db_type, $db_name, $db_username, $db_password;
|
||||
global $db_host, $db_path, $db_port, $upgrade_data_types, $text;
|
||||
|
||||
|
||||
//get the PROJECT PATH
|
||||
include "root.php";
|
||||
|
||||
//add multi-lingual support
|
||||
if (!isset($text)) {
|
||||
require "core/upgrade/app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get(null,'core/upgrade');
|
||||
}
|
||||
|
||||
//PHP PDO check if table or column exists
|
||||
|
|
|
|||
|
|
@ -25,10 +25,8 @@
|
|||
*/
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "core/user_settings/app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get(null,'core/user_settings');
|
||||
|
||||
//get action, if any
|
||||
if (isset($_REQUEST['action'])) {
|
||||
|
|
|
|||
|
|
@ -1248,10 +1248,8 @@ legend {
|
|||
|
||||
<?php
|
||||
//add multi-lingual support
|
||||
require_once "themes/enhanced/app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get(null,'themes/enhanced');
|
||||
|
||||
// set message_onload
|
||||
if (strlen($_SESSION['message']) > 0) {
|
||||
|
|
|
|||
|
|
@ -1262,10 +1262,8 @@ legend {
|
|||
|
||||
<?php
|
||||
//add multi-lingual support
|
||||
require_once "themes/minimized/app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get(null,'themes/minimized');
|
||||
|
||||
// set message_onload
|
||||
if (strlen($_SESSION['message']) > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue