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 fbb48feb0d
commit 03220c9754
176 changed files with 518 additions and 865 deletions

View File

@@ -35,14 +35,13 @@ 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 = $_GET["id"];
}
//get the id
if (count($_GET) > 0) {
$id = $_GET["id"];
}
if (strlen($id)>0) {
//get filename

View File

@@ -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();
//set the action as an add or an update
if (isset($_REQUEST["id"])) {

View File

@@ -29,10 +29,8 @@ require_once "resources/require.php";
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();
//set the max php execution time
ini_set(max_execution_time,7200);