Merge remote-tracking branch 'refs/remotes/origin/staging' into staging
This commit is contained in:
		@@ -12,7 +12,7 @@ $alertbox_log_parser = alertbox_log_parser($_SESSION);
 | 
				
			|||||||
$alerts = [];
 | 
					$alerts = [];
 | 
				
			||||||
if (is_array($alertbox_log_parser)) {
 | 
					if (is_array($alertbox_log_parser)) {
 | 
				
			||||||
  foreach ($alertbox_log_parser as $log) {
 | 
					  foreach ($alertbox_log_parser as $log) {
 | 
				
			||||||
    $alert[$log['type']][] = $log['msg'];
 | 
					    $alerts[trim($log['type'], '"')][] = trim($log['msg'], '"');
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  $alert = array_filter(array_unique($alerts));
 | 
					  $alert = array_filter(array_unique($alerts));
 | 
				
			||||||
  foreach($alert as $alert_type => $alert_msg) {
 | 
					  foreach($alert as $alert_type => $alert_msg) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -100,7 +100,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% if ui_texts.ui_announcement_text and ui_texts.ui_announcement_active and not is_root_uri %}
 | 
					{% if ui_texts.ui_announcement_text and ui_texts.ui_announcement_active and not is_root_uri %}
 | 
				
			||||||
<div class="container">
 | 
					<div class="container">
 | 
				
			||||||
  <div class="alert alert-{{ ui_texts.ui_announcement_type }}">{{ ui_texts.ui_announcement_text|rot13 }}</div>
 | 
					  <div class="alert alert-{{ ui_texts.ui_announcement_type }}">{{ ui_texts.ui_announcement_text }}</div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -169,8 +169,8 @@ function recursiveBase64StrToArrayBuffer(obj) {
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
    // TFA, CSRF, Alerts in footer.inc.php
 | 
					    // TFA, CSRF, Alerts in footer.inc.php
 | 
				
			||||||
    // Other general functions in mailcow.js
 | 
					    // Other general functions in mailcow.js
 | 
				
			||||||
    {% for alert_type, alert_msg in aletrs %}
 | 
					    {% for alert_type, alert_msg in alerts %}
 | 
				
			||||||
    mailcow_alert_box(alert_msg, alert_type);
 | 
					    mailcow_alert_box("{{ alert_msg }}", "{{ alert_type }}");
 | 
				
			||||||
    {% endfor %}
 | 
					    {% endfor %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Confirm TFA modal
 | 
					    // Confirm TFA modal
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@
 | 
				
			|||||||
      <div class="panel-heading"><i class="bi bi-person-fill"></i> {{ lang.login.login }}</div>
 | 
					      <div class="panel-heading"><i class="bi bi-person-fill"></i> {{ lang.login.login }}</div>
 | 
				
			||||||
      <div class="panel-body">
 | 
					      <div class="panel-body">
 | 
				
			||||||
        <div class="text-center mailcow-logo"><img src="{{ logo|default('/img/cow_mailcow.svg') }}" alt="mailcow"></div>
 | 
					        <div class="text-center mailcow-logo"><img src="{{ logo|default('/img/cow_mailcow.svg') }}" alt="mailcow"></div>
 | 
				
			||||||
        {% if ui_texts.ui_announcement_text and ui_texts.ui_announcement_active and not is_root_uri %}
 | 
					        {% if ui_texts.ui_announcement_text and ui_texts.ui_announcement_active %}
 | 
				
			||||||
        <div class="alert alert-{{ ui_texts.ui_announcement_type }} rot-enc ui-announcement-alert">{{ ui_texts.ui_announcement_text|rot13 }}</div>
 | 
					        <div class="alert alert-{{ ui_texts.ui_announcement_type }} rot-enc ui-announcement-alert">{{ ui_texts.ui_announcement_text|rot13 }}</div>
 | 
				
			||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
        <legend>{% if oauth2_request %}{{ lang.oauth2.authorize_app }}{% else %}{{ ui_texts.main_name }}{% endif %}</legend>
 | 
					        <legend>{% if oauth2_request %}{{ lang.oauth2.authorize_app }}{% else %}{{ ui_texts.main_name }}{% endif %}</legend>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user