You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
|
|
<?php
|
|
|
|
function checkAdminSections($sec) {
|
|
|
|
$s = $_SESSION['ADMAUTH']['sections'];
|
|
$sa = explode(',',$s);
|
|
$return = '';
|
|
|
|
if($s == 'ALL') {
|
|
$return = '';
|
|
} else {
|
|
if(!in_array($sec,$sa)) {
|
|
$return = 'd-none';
|
|
}
|
|
}
|
|
|
|
|
|
return $return;
|
|
}
|
|
?>
|
|
|
|
<div id="menuLeft" class="col-12 col-md-2 p-2">
|
|
|
|
<?php
|
|
|
|
$s = $_SESSION['ADMAUTH']['sections'];
|
|
$sa = explode(',',$s);
|
|
$return = '';
|
|
|
|
if($s == 'ALL' || in_array('ftp',$sa) || in_array('ftp-readonly',$sa)) {
|
|
|
|
?>
|
|
|
|
<div class="dropdown <?= $getQ[1]=="ftp" ? "active":"active" ?> ">
|
|
<div class="title">Files</div>
|
|
<ul class="items">
|
|
<li><a href="<?= $BASE_URL ?>/sheets/ftp/list">Elenco files </a></li>
|
|
<?php
|
|
if($s == 'ALL' || in_array('ftp',$sa)) {
|
|
?>
|
|
<li><a href="<?= $BASE_URL ?>/sheets/ftp/add">Aggiungi file </a></li>
|
|
<?php
|
|
}
|
|
?>
|
|
</ul>
|
|
</div>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php //echo md5('0rdF4rmS4FTP');?>
|
|
|
|
|