Просмотр исходного кода

Implement warning message for creating web domains under admin.

Raphael Schneeberger 6 лет назад
Родитель
Сommit
d6f94c9e5a
3 измененных файлов с 13 добавлено и 4 удалено
  1. 4 2
      CHANGELOG.md
  2. 8 1
      web/templates/admin/add_web.html
  3. 1 1
      web/templates/admin/panel.html

+ 4 - 2
CHANGELOG.md

@@ -3,8 +3,9 @@ All notable changes to this project will be documented in this file.
 
 ## [CURRENT] - Development
 ### Features
-- Add read only/demo mode function if DEMO_MODE is set to yes in hestia.conf
-- Add php-imagick module to installer and upgrade scripts
+- Add read only/demo mode function if DEMO_MODE is set to yes in hestia.conf.
+- Add php-imagick module to installer and upgrade scripts.
+- Add recidive filter function to fail2ban.
 
 ### Bugfixes
 - 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.
 - Prevent login action for webmail in list user view.
 - Remove hardcoded mail in helo data (cosmetic fix).
 - Fix sftp server validation check, thanks to @dbannik!
+- Implement warning message for creating web domains under admin user.
 
 ## [1.0.4] - 2019-07-09 - Hotfix
 ### Bugfixes

+ 8 - 1
web/templates/admin/add_web.html

@@ -50,7 +50,14 @@
                             <td class="step-top">
                                 <span class="login-welcome"><?=__('Add Web Domain')?></span>
                             </td>
-                        </tr>                        
+                        </tr>
+                        <?php if ($user == 'admin') { ?>
+                        <tr>
+                            <td class="vst-text" style="width:390px;">
+                                <?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.');?>
+                            </td>
+                        </tr>
+                        <?php } ?>
                         <tr>
                             <td class="vst-text step-top">
                                 <?php print __('Domain');?>

+ 1 - 1
web/templates/admin/panel.html

@@ -13,7 +13,7 @@
 		<div class="l-menu clearfix noselect">
 			<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>
 			<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>
-			<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>
+			<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>
 			<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>
 		</div>
 		<!-- /.l-menu -->