mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Disable WebUI header menu WEB, DNS, MAIL, DB, CRON, BACKUP if they are set "0" in the package.
This commit is contained in:
parent
1820107da2
commit
cc15e4adad
2 changed files with 63 additions and 2 deletions
15
web/css/styles.min.css
vendored
15
web/css/styles.min.css
vendored
|
@ -993,6 +993,19 @@ input[type="checkbox"] {
|
|||
margin-right: -8px;
|
||||
}
|
||||
|
||||
.l-stat__col a.disabled {
|
||||
cursor: default;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.l-stat__col a.disabled:hover {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.l-stat__col a.disabled .l-stat__col-title, .l-stat__col a.disabled li {
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.l-separator.selected,
|
||||
.l-separator {
|
||||
height: 1px;
|
||||
|
@ -2512,7 +2525,7 @@ label:hover {
|
|||
}
|
||||
|
||||
.vst-list.flat {
|
||||
border: 1px solid #fff;
|
||||
border: 1px solid #fff;
|
||||
color: #2c9491;
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
|
|
|
@ -15,6 +15,54 @@
|
|||
});
|
||||
</script>
|
||||
|
||||
<?php if($panel[$user]['WEB_DOMAINS'] == "0") { ?>
|
||||
<script>
|
||||
$('a[href^="/list/web"]').addClass('disabled').click(function() {
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($panel[$user]['DNS_DOMAINS'] == "0") { ?>
|
||||
<script>
|
||||
$('a[href^="/list/dns"]').addClass('disabled').click(function() {
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($panel[$user]['MAIL_DOMAINS'] == "0") { ?>
|
||||
<script>
|
||||
$('a[href^="/list/mail"]').addClass('disabled').click(function() {
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($panel[$user]['DATABASES'] == "0") { ?>
|
||||
<script>
|
||||
$('a[href^="/list/db"]').addClass('disabled').click(function() {
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($panel[$user]['CRON_JOBS'] == "0") { ?>
|
||||
<script>
|
||||
$('a[href^="/list/cron"]').addClass('disabled').click(function() {
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($panel[$user]['BACKUPS'] == "0") { ?>
|
||||
<script>
|
||||
$('a[href^="/list/backup"]').addClass('disabled').click(function() {
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
// Dialogs
|
||||
// todo: display all the dialogs?
|
||||
|
@ -68,4 +116,4 @@ elseif (!empty($_SESSION['error_msg'])):
|
|||
<?php
|
||||
unset($_SESSION['error_msg']);
|
||||
endif;
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue