X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-logs.php;h=3cdb8f6007be98f65060e31258a446c7ab4b22a0;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=93e2d1c8f3d003613db432132b4ed0e6b971d48a;hpb=330dbb3e2b34450cd1665497506455e195a0a166;p=mailer.git diff --git a/inc/modules/admin/what-logs.php b/inc/modules/admin/what-logs.php index 93e2d1c8f3..3cdb8f6007 100644 --- a/inc/modules/admin/what-logs.php +++ b/inc/modules/admin/what-logs.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -43,9 +43,9 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); -if (isGetRequestParameterSet('access')) { +if (isGetRequestElementSet('access')) { // Secure input and construct FQFN - $access = SQL_ESCAPE(secureString(getRequestParameter('access'))); + $access = SQL_ESCAPE(getRequestElement('access')); $target = sprintf("%slogs/%s", getPath(), $access); // Is the file valid and readable? @@ -56,19 +56,19 @@ if (isGetRequestParameterSet('access')) { // Set header if (substr($access, -3, 3) == 'log') { // Output header - sendHeader('Content-Type: text/plain'); + addHttpHeader('Content-Type: text/plain'); // Clean content clearOutputBuffer(); } elseif (substr($access, -3, 3) == '.gz') { // @TODO Fix content-type here - sendHeader('Content-Type: text/plain'); + addHttpHeader('Content-Type: text/plain'); // Clean content clearOutputBuffer(); } elseif (substr($access, -3, 3) == '.bz2') { // @TODO Fix content-type here - sendHeader('Content-Type: text/plain'); + addHttpHeader('Content-Type: text/plain'); // Clean content clearOutputBuffer(); @@ -80,7 +80,7 @@ if (isGetRequestParameterSet('access')) { // Output the logfile's content and exit print($content); - shutdown(); + doShutdown(); } else { // Not readable! displayMessage('{%message,LOGFILE_NOT_READABLE=' . $access . '%}');