added namespace
This commit is contained in:
parent
dbb3c779c4
commit
50468a1fef
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\HEADER;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
@ -204,7 +205,7 @@ jQuery(document).ready(function() {
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function printTypeTabs($headerPrefix) {
|
function printTypeTabs($headerPrefix) {
|
||||||
$typeManager = new LAM\TYPES\TypeManager();
|
$typeManager = new \LAM\TYPES\TypeManager();
|
||||||
$types = $typeManager->getConfiguredTypes();
|
$types = $typeManager->getConfiguredTypes();
|
||||||
$linkList = array();
|
$linkList = array();
|
||||||
foreach ($types as $type) {
|
foreach ($types as $type) {
|
||||||
|
|
|
@ -1,4 +1,20 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\PROFILE_EDITOR;
|
||||||
|
use \htmlTable;
|
||||||
|
use \htmlTitle;
|
||||||
|
use \htmlStatusMessage;
|
||||||
|
use \LAMCfgMain;
|
||||||
|
use \htmlSubTitle;
|
||||||
|
use \htmlSpacer;
|
||||||
|
use \htmlSelect;
|
||||||
|
use \htmlButton;
|
||||||
|
use \htmlImage;
|
||||||
|
use \htmlLink;
|
||||||
|
use \htmlOutputText;
|
||||||
|
use \htmlHelpLink;
|
||||||
|
use \htmlHiddenInput;
|
||||||
|
use \htmlInputField;
|
||||||
|
use \htmlDiv;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
@ -51,7 +67,7 @@ if (!empty($_POST)) {
|
||||||
validateSecurityToken();
|
validateSecurityToken();
|
||||||
}
|
}
|
||||||
|
|
||||||
$typeManager = new LAM\TYPES\TypeManager();
|
$typeManager = new \LAM\TYPES\TypeManager();
|
||||||
$types = $typeManager->getConfiguredTypes();
|
$types = $typeManager->getConfiguredTypes();
|
||||||
$profileClasses = array();
|
$profileClasses = array();
|
||||||
$profileClassesTemp = array();
|
$profileClassesTemp = array();
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace LAM\TOOLS\PROFILE_EDITOR;
|
||||||
|
use \htmlTable;
|
||||||
|
use \htmlTitle;
|
||||||
|
use \htmlTableExtendedInputField;
|
||||||
|
use \htmlSpacer;
|
||||||
|
use \htmlTableExtendedSelect;
|
||||||
|
use \htmlFieldset;
|
||||||
|
use \htmlButton;
|
||||||
|
use \htmlHiddenInput;
|
||||||
/*
|
/*
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
@ -69,7 +78,7 @@ if (isset($_POST['accounttype'])) {
|
||||||
$_GET['type'] = $_POST['accounttype'];
|
$_GET['type'] = $_POST['accounttype'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$typeManager = new LAM\TYPES\TypeManager();
|
$typeManager = new \LAM\TYPES\TypeManager();
|
||||||
$type = $typeManager->getConfiguredType($_GET['type']);
|
$type = $typeManager->getConfiguredType($_GET['type']);
|
||||||
if ($type->isHidden() || !checkIfWriteAccessIsAllowed($_GET['type'])) {
|
if ($type->isHidden() || !checkIfWriteAccessIsAllowed($_GET['type'])) {
|
||||||
logNewMessage(LOG_ERR, 'User tried to access hidden account type profile: ' . $_GET['type']);
|
logNewMessage(LOG_ERR, 'User tried to access hidden account type profile: ' . $_GET['type']);
|
||||||
|
|
Loading…
Reference in New Issue