diff options
Diffstat (limited to 'views/admin/ueber.phtml')
| -rw-r--r-- | views/admin/ueber.phtml | 124 |
1 files changed, 64 insertions, 60 deletions
diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml index 65c7901..82b685b 100644 --- a/views/admin/ueber.phtml +++ b/views/admin/ueber.phtml @@ -80,6 +80,66 @@ <?php echo wpsg_drawForm_TextEnd(); ?>
</div>
+ <div class="form-horizontal">
+ <?php wpsg_drawForm_TextStart(); ?>
+ <?php echo WPSG_PATH_USERVIEW; ?>
+
+ <?php echo wpsg_drawForm_TextEnd(__('Template Pfad', 'wpsg')); ?>
+
+ <?php wpsg_drawForm_TextStart(); ?>
+ <?php echo WPSG_PATH_TRANSLATION; ?>
+
+ <?php echo wpsg_drawForm_TextEnd(__('Sprachdatei', 'wpsg')); ?>
+ </div>
+
+ <div class="form-horizontal">
+ <?php
+
+ function iterateDir($sPath)
+ {
+ $aRes = array();
+ $pathuv = str_replace('\\', '/', WPSG_PATH_USERVIEW);
+ foreach(new DirectoryIterator($sPath) as $oItem)
+ {
+ if($oItem->isDir())
+ {
+ //(!$oItem->isDot() ? $aRes[$oItem->getFilename()] = iterateDir($oItem->getPathname()):0);
+ if (!$oItem->isDot()) {
+ $aResx = iterateDir($oItem->getPathname());
+ $aRes = array_merge($aRes, $aResx);
+ }
+ continue;
+ }
+ //$aRes[] = $oItem->getFilename();
+ $aRes[] = str_replace($pathuv, '', str_replace('\\', '/', $oItem->getPathname()));
+ }
+ return $aRes;
+ }
+
+ echo wpsg_drawForm_TextStart();
+
+ if (file_exists(WPSG_PATH_USERVIEW) && is_dir(WPSG_PATH_USERVIEW))
+ {
+
+ $arDir = iterateDir(WPSG_PATH_USERVIEW);
+
+ $sd = ''; foreach ($arDir as $k => $d) $sd .= $d.'<br />';
+
+ echo $sd;
+
+ }
+ else
+ {
+
+ echo WPSG_PATH_USERVIEW;
+
+ }
+
+ echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg'));
+
+ ?>
+
+
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
<?php } ?>
@@ -134,19 +194,9 @@ <?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'systemcheck') { ?>
<?php echo wpsg_drawForm_AdminboxStart(__('Systemcheck', 'wpsg')); ?>
- <div class="form-horizontal">
- <?php wpsg_drawForm_TextStart(); ?>
- <?php echo WPSG_PATH_USERVIEW; ?>
-
- <?php echo wpsg_drawForm_TextEnd(__('Template Pfad', 'wpsg')); ?>
-
- <?php wpsg_drawForm_TextStart(); ?>
- <?php echo WPSG_PATH_TRANSLATION; ?>
-
- <?php echo wpsg_drawForm_TextEnd(__('Sprachdatei', 'wpsg')); ?>
- </div>
+ <a class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=resetMessages&noheader=1"><?php echo __('Ausgeblendete Meldungen zurücksetzen', 'wpsg'); ?></a>
- <?php $arData = array(); $this->callMods('systemcheck', array(&$arData)); ?>
+ <?php $arData = $this->systemcheck(); ?>
<?php if (wpsg_isSizedArray($arData)) { ?>
<div class="wpsg_admin_ueber_check_wrap">
<?php foreach ($arData as $d) { ?>
@@ -155,55 +205,9 @@ </p>
<?php } ?>
</div>
- <?php } ?>
-
- <div class="form-horizontal">
- <?php
-
- function iterateDir($sPath)
- {
- $aRes = array();
- $pathuv = str_replace('\\', '/', WPSG_PATH_USERVIEW);
- foreach(new DirectoryIterator($sPath) as $oItem)
- {
- if($oItem->isDir())
- {
- //(!$oItem->isDot() ? $aRes[$oItem->getFilename()] = iterateDir($oItem->getPathname()):0);
- if (!$oItem->isDot()) {
- $aResx = iterateDir($oItem->getPathname());
- $aRes = array_merge($aRes, $aResx);
- }
- continue;
- }
- //$aRes[] = $oItem->getFilename();
- $aRes[] = str_replace($pathuv, '', str_replace('\\', '/', $oItem->getPathname()));
- }
- return $aRes;
- }
-
- echo wpsg_drawForm_TextStart();
-
- if (file_exists(WPSG_PATH_USERVIEW) && is_dir(WPSG_PATH_USERVIEW))
- {
-
- $arDir = iterateDir(WPSG_PATH_USERVIEW);
-
- $sd = ''; foreach ($arDir as $k => $d) $sd .= $d.'<br />';
-
- echo $sd;
+ <?php } else { ?>
- }
- else
- {
-
- echo WPSG_PATH_USERVIEW;
-
- }
-
- echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg'));
-
- ?>
- </div>
+ <?php } ?>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
<?php } ?>
|
