]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Some functions rewritten to hungarian notation, handling of array rewritten
[mailer.git] / inc / functions.php
index 049a0c58178fb5061742363a671ba4b3a9ae1c54..0562cceee69afa2bb287f694d6b68315ed3cbc1f 100644 (file)
@@ -222,7 +222,7 @@ function OUTPUT_RAW ($HTML) {
 }
 
 // Add a fatal error message to the queue array
-function ADD_FATAL ($message, $extra="") {
+function addFatalMessage ($message, $extra="") {
        global $FATAL;
 
        if (empty($extra)) {
@@ -238,8 +238,25 @@ function ADD_FATAL ($message, $extra="") {
        DEBUG_LOG(__FUNCTION__, __LINE__, " message={$message}");
 }
 
+// Getter for total fatal message count
+function getTotalFatalMessages () {
+       global $FATAL;
+
+       // Init coun
+       $count = 0;
+
+       // Do we have at least the first entry?
+       if (!empty($FATAL[0])) {
+               // Get total count
+               $count = count($FATAL);
+       } // END - if
+
+       // Return value
+       return $count;
+}
+
 // Load a template file and return it's content (only it's name; do not use ' or ")
-function LOAD_TEMPLATE($template, $return=false, $content=array()) {
+function LOAD_TEMPLATE ($template, $return=false, $content=array()) {
        // Add more variables which you want to use in your template files
        global $DATA, $_CONFIG, $username;