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
+6 -7
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
+2 -4
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"])) {
+2 -4
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);