File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -707,6 +707,7 @@ function getusernames() {
707
707
}
708
708
</script>
709
709
<div id="dragdropform">
710
+ <?php if ($ username =="admin " ):?>
710
711
<div class="ddparent left">
711
712
<p>Users</p>
712
713
<div id="dragform" ondrop="drop(event, this)" ondragover="allowDrop(event)">
@@ -719,6 +720,7 @@ function getusernames() {
719
720
?>
720
721
</div>
721
722
</div>
723
+ <?php endif ;?>
722
724
<div class="ddparent right">
723
725
<p>Users with permission, to control this server.</p>
724
726
<div id="dropform" ondrop="drop(event, this)" ondragover="allowDrop(event)">
@@ -730,11 +732,13 @@ function getusernames() {
730
732
</div>
731
733
</div>
732
734
</div>
735
+ <?php if ($ username =="admin " ):?>
733
736
<button id="updatecontrolperm" onclick='getusernames()'>Update</button>
734
737
<form method="post" action="<?php echo htmlspecialchars ($ _SERVER ["PHP_SELF " ]) ."?id= $ ServerID&page=settings " ; ?> " style="display:none">
735
738
<input id="responsepermitted" name="responsepermitted">
736
739
<button id="updatepermission" type="submit" name="updatepermission"></button>
737
740
</form>
741
+ <?php endif ;?>
738
742
<!-- Delete this server-->
739
743
<button type='button' id="deletebtn" onclick="confirmdelete()">Delete this server</button>
740
744
</div>
Original file line number Diff line number Diff line change @@ -533,6 +533,7 @@ summary{
533
533
}
534
534
# dragdropform {
535
535
display : flex;
536
+ padding-bottom : 5px ;
536
537
}
537
538
# dragdropform .ddparent {
538
539
width : 50% ;
You can’t perform that action at this time.
0 commit comments