|
14 | 14 | <!-- Left Menu --> |
15 | 15 | <div class="l-menu clearfix noselect"> |
16 | 16 | <!-- Records tab --> |
17 | | - <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' ?><?php if($TAB == 'LOG') echo 'l-menu__item--active' ?>"><a href="<?=htmlspecialchars($home_url)?>"><i class="fas fa-tasks panel-icon"></i><?=_('Records');?></a></div> |
| 17 | + <div class="l-menu__item <?php if(in_array($TAB, ['WEB', 'DNS', 'MAIL', 'DB', 'BACKUP', 'CRON', 'PACKAGE', 'USER', 'LOG'])) echo 'l-menu__item--active' ?>"><a href="<?=htmlspecialchars($home_url)?>"><i class="fas fa-tasks panel-icon"></i><?=_('Records');?></a></div> |
18 | 18 |
|
19 | 19 | <!-- File Manager tab --> |
20 | 20 | <?php if ((isset($_SESSION['FILE_MANAGER'])) && (!empty($_SESSION['FILE_MANAGER'])) && ($_SESSION['FILE_MANAGER'] == "true")) {?> |
|
65 | 65 | <?php if (($_SESSION['userContext'] === 'admin') && (!empty($_SESSION['look']))) {?> |
66 | 66 | <!-- Hide 'Server Settings' button when impersonating 'admin' or other users --> |
67 | 67 | <?php } else { ?> |
68 | | - <div class="l-menu__item <?php if($TAB == 'SERVER') 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/" class="l-profile__serversettings" title="<?=_('Server');?>"><i class="fas fa-cog"></i></a></div> |
| 68 | + <div class="l-menu__item <?php if(in_array($TAB, ['SERVER', 'IP', 'RRD', 'FIREWALL'])) echo 'l-menu__item--active' ?>"><a href="/list/server/" class="l-profile__serversettings" title="<?=_('Server');?>"><i class="fas fa-cog"></i></a></div> |
69 | 69 | <?php } ?> |
70 | 70 | <?php } ?> |
71 | 71 |
|
72 | 72 | <!-- Edit User --> |
73 | 73 | <?php if (($_SESSION['userContext'] === 'admin') && (isset($_SESSION['look']) && ($user == 'admin'))) {?> |
74 | 74 | <!-- Hide 'edit user' entry point from other administrators for default 'admin' account--> |
75 | | - <div class="l-menu__item"><a href="/list/log/" title="<?_('Logs');?>" class="l-profile__username"><i class="fas fa-history"></i></a></div> |
| 75 | + <div class="l-menu__item <?php if($TAB == 'LOG') echo 'l-menu__item--active' ?>"><a href="/list/log/" title="<?_('Logs');?>" class="l-profile__username"><i class="fas fa-history"></i></a></div> |
76 | 76 | <?php } else { ?> |
77 | 77 | <?php if ($panel[$user]['SUSPENDED'] === 'no') {?> |
78 | 78 | <div class="l-menu__item"><a href="/edit/user/?user=<?=$user; ?>&token=<?=$_SESSION['token']?>" title="<?=htmlspecialchars($user)?> (<?=htmlspecialchars($panel[$user]['NAME'])?>)" class="l-profile__username"><i class="fas fa-user-circle"></i></a></div> |
|
106 | 106 | $user_count = $panel[$user]['U_USERS']; |
107 | 107 | } |
108 | 108 | ?> |
109 | | - <div class="l-stat__col <?php if($TAB == 'USER') echo 'l-stat__col--active' ?><?php if($TAB == 'LOG') echo 'l-stat__col--active' ?>"> |
| 109 | + <div class="l-stat__col <?php if(in_array($TAB, ['USER', 'LOG'])) echo 'l-stat__col--active' ?>"> |
110 | 110 | <a href="/list/user/" title="<?=_('Users');?>: <?=$user_count;?> <?=_('Suspended');?>: <?=$panel[$user]['SUSPENDED_USERS']?>"> |
111 | 111 | <div class="l-stat__col-title"><?=_('USER');?> <i class="fas fa-users"></i></div> |
112 | 112 | <ul> |
|
0 commit comments