23,6 → 23,9 |
|
<a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemlog')?'active':''); ?>" |
href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=systemlog'); ?>"><?php echo __('Fehlerprotokoll', 'wpsg'); ?></a> |
|
<a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'updatelog')?'active':''); ?>" |
href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=updatelog'); ?>"><?php echo __('Updateprotokoll', 'wpsg'); ?></a> |
|
</div> |
|
121,6 → 124,31 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?> |
<?php } ?> |
|
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'updatelog') { |
|
try { $wpsg_update_log = json_decode($this->get_option('wpsg_update_log'), true); } catch (\Throwable $e) { $wpsg_update_log = []; } |
|
?> |
|
<?php foreach ($wpsg_update_log as $log_index => $log) { ?> |
|
<?php echo wpsg_drawForm_AdminboxStart( |
wpsg_translate(__('Update vom #1# : #2# -> #3#', 'wpsg'), ($log['time']??''), ($log['pre']['version']??''), ($log['after']['version']??'')), |
'wpsg_update_log_'.$log_index, |
[ |
'collapsed' => true, |
'collapsable' => true |
] |
); ?> |
|
<pre><?php print_r($log); ?></pre> |
|
<?php echo wpsg_drawForm_AdminboxEnd(); ?> |
|
<?php } ?> |
|
<?php } ?> |
|
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemlog') { ?> |
<?php echo wpsg_drawForm_AdminboxStart(__('Fehlerprotokoll', 'wpsg'), '', array('style' => 'width:905px;')); ?> |
|