Move the access controls to the new resources/classes/text translation class.
This commit is contained in:
parent
8dd5cf74ab
commit
aef0cb5c33
|
|
@ -11,10 +11,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 id
|
//get the id
|
||||||
if (count($_GET)>0) {
|
if (count($_GET)>0) {
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,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"])) {
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,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 id
|
//get the id
|
||||||
if (count($_GET)>0) {
|
if (count($_GET)>0) {
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,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"])) {
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,13 @@ else {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//add multi-lingual support
|
||||||
|
$language = new text;
|
||||||
|
$text = $language->get();
|
||||||
|
|
||||||
//get variables used to control the order
|
//get variables used to control the order
|
||||||
$order_by = $_GET["order_by"];
|
$order_by = check_str($_GET["order_by"]);
|
||||||
$order = $_GET["order"];
|
$order = check_str($_GET["order"]);
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,10 @@ else {
|
||||||
echo "access denied";
|
echo "access denied";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
//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 variables used to control the order
|
//get variables used to control the order
|
||||||
$order_by = $_GET["order_by"];
|
$order_by = $_GET["order_by"];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue