Work on the menu restore more.

This commit is contained in:
Mark Crane 2014-12-26 07:27:13 +00:00
parent ff35dcb9b1
commit c420dbb036
1 changed files with 17 additions and 21 deletions

View File

@ -24,12 +24,10 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
if (!$included) {
//check permissions
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
}
if (permission_exists('menu_restore')) {
//access granted
}
@ -38,7 +36,6 @@ else {
return;
}
if (!$included) {
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
@ -48,7 +45,6 @@ if (!$included) {
//get the http value and set as a php variable
$menu_uuid = check_str($_REQUEST["menu_uuid"]);
$menu_language = check_str($_REQUEST["menu_language"]);
}
//menu restore default
require_once "resources/classes/menu.php";
@ -65,7 +61,7 @@ if (!$included) {
//unset the default template
$_SESSION["template_content"] = '';
//redirect
if (!$included) {
//show a message to the user
$_SESSION["message"] = $text['message-restore'];