summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin')
-rw-r--r--views/admin/extended.phtml2
-rw-r--r--views/admin/form/textarea.phtml8
-rw-r--r--views/admin/ueber.phtml18
3 files changed, 27 insertions, 1 deletions
diff --git a/views/admin/extended.phtml b/views/admin/extended.phtml
index d3127c3..6926f0c 100644
--- a/views/admin/extended.phtml
+++ b/views/admin/extended.phtml
@@ -28,6 +28,8 @@
<?php echo wpsg_drawForm_Input('wpsg_salt', __('SALT Schlüssel', 'wpsg'), $this->get_option('wpsg_salt')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_options_nl2br', __('RTE Felder mit nl2br speichern', 'wpsg'), $this->get_option('wpsg_options_nl2br'), array('help' => 'wpsg_options_nl2br')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_debugModus', __('Debug Modus', 'wpsg'), $this->get_option('wpsg_debugModus'), array('help' => 'wpsg_debugModus')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_displayTemplates', __('Verwendete Templates anzeigen (Nur im Frontend)', 'wpsg'), $this->get_option('wpsg_displayTemplates'), array('help' => 'wpsg_displayTemplates')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_displayTemplatesLog', __('Verwendete Templates in Entwicklerkonsole anzeigen', 'wpsg'), $this->get_option('wpsg_displayTemplatesLog'), array('help' => 'wpsg_displayTemplatesLog')); ?>
<?php if ($this->hasMod('wpsg_mod_core')) { ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_debugURL', __('Beta Updates laden', 'wpsg'), $this->get_option('wpsg_debugURL'), array('help' => 'wpsg_debugURL')); ?>
diff --git a/views/admin/form/textarea.phtml b/views/admin/form/textarea.phtml
index 87c85df..f6459bb 100644
--- a/views/admin/form/textarea.phtml
+++ b/views/admin/form/textarea.phtml
@@ -12,7 +12,13 @@
<div class="wpsg_field_wrap">
- <textarea class="form-control" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>"><?php echo wpsg_hspc($this->view['field_value']); ?></textarea>
+ <textarea <?php
+
+ if (wpsg_isTrue($this->view['field_config']['readonly'])) echo ' readonly="readonly" ';
+ if (wpsg_isTrue($this->view['field_config']['disabled'])) echo ' disabled="disabled" ';
+ if (wpsg_isSizedString($this->view['field_config']['style'])) echo 'style="'.$this->view['field_config']['style'].'" ';
+
+ ?> class="form-control" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>"><?php echo wpsg_hspc($this->view['field_value']); ?></textarea>
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
<a href="#" data-wpsg-tip="<?php echo $this->view['field_config']['help']; ?>" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=<?php echo $this->view['field_config']['help']; ?>" class="glyphicon glyphicon glyphicon-question-sign form-control-feedback" aria-hidden="true"></a>
diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml
index 93ef855..e4401e1 100644
--- a/views/admin/ueber.phtml
+++ b/views/admin/ueber.phtml
@@ -20,6 +20,9 @@
<a class="list-group-item <?php echo ((isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemcheck')?'active':''); ?>"
href="<?php echo wpsg_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=systemcheck'); ?>"><?php echo __('Systemcheck', 'wpsg'); ?></a>
+
+ <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>
</div>
@@ -74,6 +77,21 @@
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
<?php } ?>
+<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemlog') { ?>
+<?php echo wpsg_drawForm_AdminboxStart(__('Fehlerprotokoll', 'wpsg'), '', array('style' => 'width:892px;')); ?>
+
+ <?php if (!file_exists($GLOBALS['wpsg_sc']->getStorageRoot().'exception.log')) { ?>
+ <p><?php echo __('Es wurden noch keine Systemfehler aufgezeichnet.', 'wpsg'); ?></p>
+ <?php } else { ?>
+
+ <textarea style="width:860px; height:500px; font-size:12px; font-family:Courier;"><?php echo file_get_contents($GLOBALS['wpsg_sc']->getStorageRoot().'exception.log'); ?></textarea>
+
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=clearSysLog&noheader=1" class="button"><?php echo __('Protokolldatei löschen', 'wpsg'); ?></a>
+
+ <?php } ?>
+
+<?php echo wpsg_drawForm_AdminboxEnd(); ?>
+<?php } ?>
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'phpinfo') { ?>
<?php echo wpsg_drawForm_AdminboxStart(__('PHP-Info', 'wpsg')); ?>