mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Add warning grace time notification for LotW certs
This commit is contained in:
@@ -22,6 +22,7 @@ $lang['lotw_status'] = 'Status';
|
||||
$lang['lotw_options'] = 'Options';
|
||||
$lang['lotw_valid'] = 'Valid';
|
||||
$lang['lotw_expired'] = 'Expired';
|
||||
$lang['lotw_expiring'] = 'Expiring';
|
||||
$lang['lotw_not_synced'] = 'Not Synced';
|
||||
|
||||
$lang['lotw_certificate_dxcc'] = 'Certificate DXCC';
|
||||
|
||||
@@ -22,6 +22,7 @@ $lang['lotw_status'] = 'Status';
|
||||
$lang['lotw_options'] = 'Optionen';
|
||||
$lang['lotw_valid'] = 'Gültig';
|
||||
$lang['lotw_expired'] = 'Abgelaufen';
|
||||
$lang['lotw_expiring'] = 'Läuft ab';
|
||||
$lang['lotw_not_synced'] = 'Nicht synchronisiert';
|
||||
|
||||
$lang['lotw_certificate_dxcc'] = 'Zertifikats-DXCC';
|
||||
|
||||
@@ -76,11 +76,14 @@
|
||||
</td>
|
||||
<td>
|
||||
<?php $current_date = date('Y-m-d H:i:s'); ?>
|
||||
<?php $warning_date = date('Y-m-d H:i:s', strtotime($row->date_expires.'-10 days')); ?>
|
||||
|
||||
<?php if ($current_date <= $row->date_expires) { ?>
|
||||
<span class="badge badge-success"><?php echo $this->lang->line('lotw_valid'); ?></span>
|
||||
<?php } else { ?>
|
||||
<?php if ($current_date > $row->date_expires) { ?>
|
||||
<span class="badge badge-danger"><?php echo $this->lang->line('lotw_expired'); ?></span>
|
||||
<?php } else if ($current_date <= $row->date_expires && $current_date > $warning_date) { ?>
|
||||
<span class="badge badge-warning"><?php echo $this->lang->line('lotw_expiring'); ?></span>
|
||||
<?php } else { ?>
|
||||
<span class="badge badge-success"><?php echo $this->lang->line('lotw_valid'); ?></span>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row->last_upload) { ?>
|
||||
|
||||
Reference in New Issue
Block a user