X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-logs.php;h=93e2d1c8f3d003613db432132b4ed0e6b971d48a;hb=e297ccd93221dfbfd99f90ed160fb20df3524df0;hp=49b9553395e5463bd783678d69ff69f6f34ad743;hpb=b8aa17b98b99c27eafbdca0fa090bae63527da9a;p=mailer.git diff --git a/inc/modules/admin/what-logs.php b/inc/modules/admin/what-logs.php index 49b9553395..93e2d1c8f3 100644 --- a/inc/modules/admin/what-logs.php +++ b/inc/modules/admin/what-logs.php @@ -1,7 +1,7 @@ '); + outputHtml('
    '); // Read all files - $files = getArrayFromDirectory(getConfig('logs_base'), 'access'); - - // And walk through them - foreach ($files as $file) { + foreach (getArrayFromDirectory(getConfig('logs_base'), 'access') as $file) { // Cut dirname away $file = basename($file); - // Okay, let us print it out - OUTPUT_HTML("
  1. ".$file."
  2. "); + // Okay, add it + outputHtml('
  3. ' . $file . '
  4. '); } // END - foreach // Finish list - OUTPUT_HTML('
'); + outputHtml(''); } else { // logs directory does not exist - LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('ADMIN_LOGS_DIR_404'), getConfig('logs_base'))); + displayMessage('{--ADMIN_LOGS_DIR_404--}'); } }