Add the translation framework to devices and add ability to show which extensions are assigned to a device.

This commit is contained in:
Mark Crane
2013-05-23 08:18:12 +00:00
parent 9463f10ad9
commit 972d9f47e2
4 changed files with 439 additions and 170 deletions

View File

@@ -33,9 +33,16 @@ else {
exit;
}
if (count($_GET)>0) {
$id = check_str($_GET["id"]);
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//get the id
if (count($_GET)>0) {
$id = check_str($_GET["id"]);
}
//delete the data
if (strlen($id)>0) {
@@ -54,7 +61,7 @@ if (count($_GET)>0) {
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=devices.php\">\n";
echo "<div align='center'>\n";
echo "Delete Complete\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "includes/footer.php";
return;