|
110 | 110 | <div class="clearfix l-unit__stat-col--left text-right compact-4"> |
111 | 111 | <div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect"> |
112 | 112 | <div class="actions-panel clearfix"> |
113 | | -<<<<<<< HEAD |
114 | 113 | <? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['look'] === 'admin') && ($_SESSION['RESTRICTED_ADMIN'] === 'yes')) {?> |
115 | 114 | <!-- Restrict the ability to edit, delete, or suspend domain items when impersonating 'admin' account --> |
116 | 115 | <? if ($data[$key]['SUSPENDED'] == 'no') {?> |
117 | 116 | <div class="actions-panel__col actions-panel__edit" key-action="href"><a href="http://<?=$v_webmail_alias;?>.<?=htmlspecialchars($_GET['domain'])?>/?_user=<?=$key?>@<?=htmlspecialchars($_GET['domain'])?>" target="_blank" title="<?=_('open webmail')?>"><i class="fas fa-envelope-open-text status-icon maroon status-icon dim"></i></a></div> |
118 | 117 | <? } ?> |
119 | 118 | <? } else { ?> |
120 | 119 | <? if ($data[$key]['SUSPENDED'] == 'no') {?> |
121 | | - <? if (!empty($data[$key]['WEBMAIL'])) {?> |
122 | | - <div class="actions-panel__col actions-panel__edit" key-action="href"><a href="http://<?=$v_webmail_alias;?>.<?=htmlspecialchars($_GET['domain'])?>/?_user=<?=$key?>@<?=htmlspecialchars($_GET['domain'])?>" target="_blank" title="<?=_('open webmail')?>"><i class="fas fa-envelope-open-text status-icon maroon status-icon dim"></i></a></div> |
| 120 | + <?php if($_SESSION['WEBMAIL_SYSTEM']){?> |
| 121 | + <? if (!empty($data[$key]['WEBMAIL'])) {?> |
| 122 | + <div class="actions-panel__col actions-panel__edit" key-action="href"><a href="http://<?=$v_webmail_alias;?>.<?=htmlspecialchars($_GET['domain'])?>/?_user=<?=$key?>@<?=htmlspecialchars($_GET['domain'])?>" target="_blank" title="<?=_('open webmail')?>"><i class="fas fa-envelope-open-text status-icon maroon status-icon dim"></i></a></div> |
| 123 | + <? } ?> |
123 | 124 | <? } ?> |
124 | 125 | <div class="actions-panel__col actions-panel__logs shortcut-enter" key-action="href"><a href="/edit/mail/?domain=<?=htmlspecialchars($_GET['domain'])?>&account=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Mail Account')?>"><i class="fas fa-pencil-alt status-icon orange status-icon dim"></i></a></div> |
125 | 126 | <? } ?> |
|
142 | 143 | </a> |
143 | 144 | </div> |
144 | 145 | <? } ?> |
145 | | -======= |
146 | | - <div class="actions-panel__col actions-panel__edit" key-action="href"><a href="http://<?=$v_webmail_alias;?>.<?=htmlspecialchars($_GET['domain'])?>/?_user=<?=$key?>@<?=htmlspecialchars($_GET['domain'])?>" target="_blank" title="<?=_('open webmail')?>"><i class="fas fa-envelope-open-text status-icon maroon status-icon dim"></i></a></div> |
147 | | - <?php if($_SESSION['WEBMAIL_SYSTEM']){?> |
148 | | - <div class="actions-panel__col actions-panel__logs shortcut-enter" key-action="href"><a href="/edit/mail/?domain=<?=htmlspecialchars($_GET['domain'])?>&account=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Mail Account')?>"><i class="fas fa-pencil-alt status-icon orange status-icon dim"></i></a></div> |
149 | | - <?php } ?> |
150 | | - <div class="actions-panel__col actions-panel__suspend shortcut-s" key-action="js"> |
151 | | - <a id="<?=$spnd_action ?>_link_<?=$i?>" class="data-controls do_<?=$spnd_action?>" title="<?=_($spnd_action)?>"> |
152 | | - <i class="fas <?=$spnd_icon?> status-icon highlight status-icon dim do_<?=$spnd_action?>"></i> |
153 | | - <input type="hidden" name="<?=$spnd_action?>_url" value="/<?=$spnd_action?>/mail/?domain=<?=htmlspecialchars($_GET['domain'])?>&account=<?php echo $key ?>&token=<?=$_SESSION['token']?>" /> |
154 | | - <div id="<?=$spnd_action?>_dialog_<?=$i?>" class="confirmation-text-suspention hidden" title="<?=_('Confirmation')?>"> |
155 | | - <p class="confirmation"><?=sprintf($spnd_confirmation,$key)?></p> |
156 | | - </div> |
157 | | - </a> |
158 | | - </div> |
159 | | - <div class="actions-panel__col actions-panel__delete shortcut-delete" key-action="js"> |
160 | | - <a id="delete_link_<?=$i?>" class="data-controls do_delete" title="<?=_('delete')?>"> |
161 | | - <i class="fas fa-trash status-icon red status-icon dim do_delete"></i> |
162 | | - <input type="hidden" name="delete_url" value="/delete/mail/?domain=<?=htmlspecialchars($_GET['domain'])?>&account=<?=$key?>&token=<?=$_SESSION['token']?>" /> |
163 | | - <div id="delete_dialog_<?=$i?>" class="confirmation-text-delete hidden" title="<?=_('Confirmation')?>"> |
164 | | - <p class="confirmation"><?=sprintf(_('DELETE_MAIL_ACCOUNT_CONFIRMATION'),$key)?></p> |
165 | | - </div> |
166 | | - </a> |
167 | | - </div> |
168 | | ->>>>>>> main |
169 | 146 | </div> |
170 | 147 | </div> |
171 | 148 | <!-- END QUICK ACTION TOOLBAR AREA --> |
|
0 commit comments