}
 } elseif ($action == 'checkintegrity') {
     if ($_SESSION['USER_RIGHT_CONFIGURATOR'] == 1) {
         include 'integritycheck.php';
     } else {
         include 'access_denied.php';
     }
 } elseif ($action == "globalsettings") {
     if ($_SESSION['USER_RIGHT_CONFIGURATOR'] == 1) {
         globalsettingsdisplay();
     } else {
         include "access_denied.php";
     }
 } elseif ($action == "globalsettingssave") {
     if ($_SESSION['USER_RIGHT_CONFIGURATOR'] == 1) {
         globalsettingssave();
     } else {
         include "access_denied.php";
     }
 } elseif ($action == 'labels' || $action == 'newlabelset' || $action == 'insertlabelset' || $action == 'deletelabelset' || $action == 'editlabelset' || $action == 'modlabelsetanswers' || $action == 'updateset' || $action == 'importlabels' || $action == 'importlabelresources') {
     if ($_SESSION['USER_RIGHT_MANAGE_LABEL'] == 1) {
         $_SESSION['FileManagerContext'] = "edit:label:{$lid}";
         include 'labels.php';
     } else {
         include 'access_denied.php';
     }
 } elseif ($action == 'templates' || $action == 'templatecopy' || $action == 'templatesavechanges' || $action == 'templaterename' || $action == 'templateuploadfile' || $action == 'templatefiledelete' || $action == 'templatezip' || $action == 'templaterefresh' || $action == 'templateupload') {
     if ($_SESSION['USER_RIGHT_MANAGE_TEMPLATE'] == 1) {
         include 'templates.php';
     } else {
         include 'access_denied.php';
Exemplo n.º 2
0
     if ($_SESSION['USER_RIGHT_MANAGE_TEMPLATE']==1)  {$_SESSION['FileManagerContext']="edit:label:$lid"; include('export_resources_zip.php');}
     else { include('access_denied.php');}
 }
 elseif ($action == 'checkintegrity')
 {
     if ($_SESSION['USER_RIGHT_CONFIGURATOR']==1)  {include('integritycheck.php');}
     else { include('access_denied.php');}
 }
 elseif ($action == "globalsettings")
 {
     if ($_SESSION['USER_RIGHT_CONFIGURATOR']==1)  {globalsettingsdisplay();}
     else { include("access_denied.php");}
 }
 elseif ($action == "globalsettingssave")
 {
     if ($_SESSION['USER_RIGHT_CONFIGURATOR']==1)  {globalsettingssave();}
     else { include("access_denied.php");}
 }
 elseif ($action=='labels' || $action=='newlabelset' || $action=='insertlabelset' ||
 $action=='deletelabelset' || $action=='editlabelset' || $action=='modlabelsetanswers' ||
 $action=='updateset' || $action=='importlabels' ||$action == 'importlabelresources')
 {
     if ($_SESSION['USER_RIGHT_MANAGE_LABEL']==1)  {$_SESSION['FileManagerContext']="edit:label:$lid"; include('labels.php');}
     else { include('access_denied.php');}
 }
 elseif ($action=='templates' || $action=='templatecopy' || $action=='templatesavechanges' ||
 $action=='templaterename' || $action=='templateuploadfile' || $action=='templatefiledelete' ||
 $action=='templatezip'  || $action=='templaterefresh' || $action=='templateupload')
 {
     if ($_SESSION['USER_RIGHT_MANAGE_TEMPLATE']==1)  {include('templates.php');}
     else { include('access_denied.php');}