Add the text class to more of the applications.

This commit is contained in:
Mark Crane
2015-01-18 10:06:08 +00:00
parent 147d03169d
commit c5755666cb
176 changed files with 518 additions and 865 deletions

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();
//set the variables
$cmd = check_str($_GET['cmd']);

View File

@@ -38,10 +38,8 @@ require_once "resources/check_auth.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";

View File

@@ -38,12 +38,8 @@ require_once "resources/check_auth.php";
}
//add multi-lingual support
if (!is_array($text)) {
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
}
$language = new text;
$text = $language->get();
//request profile
$sip_profile_name = trim($_REQUEST["profile"]);