X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-usage.php;h=70df56b23fe2132883c9a322e24db3954072b1db;hb=8ce32e702f3caa76b8d446902948e83e1e6854c8;hp=a3e1aafa36a4585aa62b0bad90a0508505c8f807;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/modules/admin/what-usage.php b/inc/modules/admin/what-usage.php index a3e1aafa36..70df56b23f 100644 --- a/inc/modules/admin/what-usage.php +++ b/inc/modules/admin/what-usage.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * @@ -52,19 +52,21 @@ $FQFN = sprintf("%s%s/index.html", getConfig('usage_base') ); -if (isGetRequestParameterSet('image')) { - if (getRequestParameter('type') == 'usage') { +if (isGetRequestElementSet('image')) { + if (getRequestElement('type') == 'usage') { $FQFN = sprintf("%s%s/usage.png", getPath(), getConfig('usage_base') ); } else { - if (strpos(getRequestParameter('image'), "\\") > 0) setGetRequestParameter('image', substr(getRequestParameter('image'), 0, strpos(getRequestParameter('image'), "\\"))); + if (strpos(getRequestElement('image'), "\\") > 0) { + setGetRequestElement('image', substr(getRequestElement('image'), 0, strpos(getRequestElement('image'), "\\"))); + } // END - if $FQFN = sprintf("%s%s/%s_usage_%s.png", getPath(), getConfig('usage_base'), - getRequestParameter('type'), - getRequestParameter('image') + getRequestElement('type'), + getRequestElement('image') ); } @@ -75,11 +77,11 @@ if (isGetRequestParameterSet('image')) { imagedestroy($image); } // END - if shutdown(); -} elseif (isGetRequestParameterSet('usage')) { +} elseif (isGetRequestElementSet('usage')) { $FQFN = sprintf("%s%s/usage_%s.html", getPath(), getConfig('usage_base'), - getRequestParameter('usage') + getRequestElement('usage') ); } @@ -107,7 +109,7 @@ if ((!empty($FQFN)) && (isFileReadable($FQFN))) { outputHtml($content); } else { // Nothing to load, then we have no directory 'usage' - loadTemplate('admin_settings_saved', false, '{--ADMIN_USAGE_DIRECTORY_404--}'); + displayMessage('{--ADMIN_USAGE_DIRECTORY_404--}'); } // [EOF]