CMXX - New Profile setup

This commit is contained in:
“VeLiTi”
2024-10-03 15:26:23 +02:00
parent bf567ec426
commit c42de76fb8
8 changed files with 248 additions and 7 deletions

View File

@@ -9,10 +9,7 @@ include './settings/config.php';
include_once './settings/translations/translations_US.php';
include_once './settings/systemfirmware.php';
//define('standard_profile','dashboard,profile,equipments,equipment,histories,history,servicereports,servicereport,firmwaretool,application');
$allviews = ["dashboard","profile","equipments","equipment","equipmentmanage","equipment_item"];
$allviews = explode(',' , standard_profile);
$admin_profile = ["dashboard","profile","equipments","equipment"];
@@ -20,7 +17,7 @@ $view = '<html><form action="" method="post">';
foreach ($allviews as $view){
if (in_array($view,$admin_profile)){
if (in_stir($view,$admin_profile)){
$view .= '<input type="checkbox" id="'.$view.'" name="" value="'.$view.'" checked>';
} else {
$view .= '<input type="checkbox" id="'.$view.'" name="profile[]" value="'.$view.'">';