X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-logs.php;h=23c10716c380ae20cdf4bae5db7143795314d5f4;hb=155492a5b96cec674846973a8524238b0365a848;hp=cf8fdb41dacb928c9922ab1ebcc1b0a9fb662163;hpb=2379934be6a196a54f4155bb8e24c49b20736969;p=mailer.git diff --git a/inc/modules/admin/what-logs.php b/inc/modules/admin/what-logs.php index cf8fdb41da..23c10716c3 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 - 2013 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 * @@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__); if (isGetRequestElementSet('access')) { // Secure input and construct FQFN - $access = SQL_ESCAPE(secureString(getRequestElement('access'))); + $access = sqlEscapeString(getRequestElement('access')); $target = sprintf("%slogs/%s", getPath(), $access); // Is the file valid and readable? @@ -56,19 +56,19 @@ if (isGetRequestElementSet('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 (isGetRequestElementSet('access')) { // Output the logfile's content and exit print($content); - shutdown(); + doShutdown(); } else { // Not readable! displayMessage('{%message,LOGFILE_NOT_READABLE=' . $access . '%}');