X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Frequest-functions.php;h=6237299a4a975e7d33e70274de3e65375c625945;hb=b9e6075ca71043651816975302d18c2fdb27dce4;hp=b6b45f165f07e5bae6bf4aab58c5bfe86507f4e5;hpb=57227d33e870ec5cd271209c4a978a52b45c2dd6;p=mailer.git diff --git a/inc/request-functions.php b/inc/request-functions.php index b6b45f165f..6237299a4a 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -223,9 +224,14 @@ function setPostRequestParameter ($element, $value) { } // Checks wether a form was sent. If so, the $_POST['ok'] element must be set -function isFormSent () { +function isFormSent ($requestParameter = 'ok') { // Simply wrap it! - return isPostRequestParameterSet('ok'); + return isPostRequestParameterSet($requestParameter); +} + +// Checks if 'content_type' is set +function isContentTypeSet () { + return isset($GLOBALS['content_type']); } // Setter for content type