Skip to content

Commit d6f94c9

Browse files
committed
Implement warning message for creating web domains under admin.
1 parent 09335c8 commit d6f94c9

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
## [CURRENT] - Development
55
### Features
6-
- Add read only/demo mode function if DEMO_MODE is set to yes in hestia.conf
7-
- Add php-imagick module to installer and upgrade scripts
6+
- Add read only/demo mode function if DEMO_MODE is set to yes in hestia.conf.
7+
- Add php-imagick module to installer and upgrade scripts.
8+
- Add recidive filter function to fail2ban.
89

910
### Bugfixes
1011
- Add a detection of web root for add .well-known acme challenge.
@@ -15,6 +16,7 @@ All notable changes to this project will be documented in this file.
1516
- Prevent login action for webmail in list user view.
1617
- Remove hardcoded mail in helo data (cosmetic fix).
1718
- Fix sftp server validation check, thanks to @dbannik!
19+
- Implement warning message for creating web domains under admin user.
1820

1921
## [1.0.4] - 2019-07-09 - Hotfix
2022
### Bugfixes

web/templates/admin/add_web.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,14 @@
5050
<td class="step-top">
5151
<span class="login-welcome"><?=__('Add Web Domain')?></span>
5252
</td>
53-
</tr>
53+
</tr>
54+
<?php if ($user == 'admin') { ?>
55+
<tr>
56+
<td class="vst-text" style="width:390px;">
57+
<?php print __('Due to the increased access rights, we strongly advise against using the admin account for direct hosting of web domains. Always use a separate unprivileged user account instead.');?>
58+
</td>
59+
</tr>
60+
<?php } ?>
5461
<tr>
5562
<td class="vst-text step-top">
5663
<?php print __('Domain');?>

web/templates/admin/panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="l-menu clearfix noselect">
1414
<div class="l-menu__item <?php if($TAB == 'WEB' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'DNS' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'MAIL' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'DB' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'BACKUP' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'CRON' ) echo 'l-menu__item--active' ?><?php if($TAB == 'PACKAGE' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'USER' ) echo 'l-menu__item--active' ?>"><a href="/list/user/"><i class="fas fa-tasks"></i>&nbsp;&nbsp;&nbsp;<?=__('Records')?></a></div>
1515
<div class="l-menu__item <?php if($TAB == 'LOG' ) echo 'l-menu__item--active' ?>"><a href="/list/log/"><i class="fas fa-history"></i>&nbsp;&nbsp;&nbsp;<?=__('Log')?></a></div>
16-
<div class="l-menu__item <?php if($TAB == 'STATS' ) echo 'l-menu__item--active' ?>"><a href="/list/stats/"><i class="fas fa-chart-line"></i>&nbsp;&nbsp;&nbsp;<?=__('Statistics')?></a></div>
16+
<div class="l-menu__item <?php if($TAB == 'gSTATS' ) echo 'l-menu__item--active' ?>"><a href="/list/stats/"><i class="fas fa-chart-line"></i>&nbsp;&nbsp;&nbsp;<?=__('Statistics')?></a></div>
1717
<div class="l-menu__item <?php if($TAB == 'SERVER' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'UPDATES' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'IP' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'RRD' ) echo 'l-menu__item--active' ?> <?php if($TAB == 'FIREWALL' ) echo 'l-menu__item--active' ?>"><a href="/list/server/"><i class="fas fa-server"></i>&nbsp;&nbsp;&nbsp;<?=__('Server')?></a></div>
1818
</div>
1919
<!-- /.l-menu -->

0 commit comments

Comments
 (0)