]> git.mxchange.org Git - mailer.git/blobdiff - inc/request-functions.php
New method generateExtensionInactiveMessage() introduced
[mailer.git] / inc / request-functions.php
index d314a2bee06c3d449abe332d7a2da452dbfc22e3..b720ffc2d37589018fe592ee9eece8671f555f10 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Spezialle Funktionen fuer die Anfragebehandlung  *
  * -------------------------------------------------------------------- *
- * $Revision:: 856                                                    $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009)              $ *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: stelzi                                                   $ *
+ * $Author::                                                          $ *
  * Needs to be in all Files and every File needs "svn propset           *
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
@@ -38,7 +38,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 } // END - if
 
@@ -64,11 +64,11 @@ function REQUEST_GET ($element) {
 }
 
 // Checks if an element in $_GET exists
-function REQUEST_ISSET_GET ($element, $subElement="") {
+function REQUEST_ISSET_GET ($element, $subElement = '') {
        if (empty($subElement)) {
-               return (isset($_GET[$element]));
+               return ((isset($_GET[$element])) && (!empty($_GET[$element])));
        } else {
-               return (isset($_GET[$element][$subElement]));
+               return ((isset($_GET[$element][$subElement])) && (!empty($_GET[$element][$subElement])));
        }
 }
 
@@ -128,9 +128,9 @@ function REQUEST_POST ($element, $subElement=null) {
 // Checks if an element in $_POST exists
 function REQUEST_ISSET_POST ($element, $subElement=null) {
        if (is_null($subElement)) {
-               return (isset($_POST[$element]));
+               return ((isset($_POST[$element])) && (!empty($_POST[$element])));
        } else {
-               return (isset($_POST[$element][$subElement]));
+               return ((isset($_POST[$element][$subElement])) && (!empty($_POST[$element][$subElement])));
        }
 }
 
@@ -185,7 +185,7 @@ function REQUEST_SET_POST ($element, $value) {
 }
 
 // Checks wether a form was sent. If so, the $_POST['ok'] element must be set
-function IS_FORM_SENT () {
+function isFormSent () {
        // Simply wrap it!
        return REQUEST_ISSET_POST('ok');
 }