]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/removeip_functions.php
Deleting of network type handler partialy finished
[mailer.git] / inc / libs / removeip_functions.php
index 23d393492f63fb986a6178a172b78bbd344d20c9..8238c70fcb4f5d23f6a5230d0d869ca4fe87eeae 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/01/2008 *
- * ===============                              Last change: 10/01/2008 *
+ * Mailer v0.2.1-FINAL                                Start: 10/01/2008 *
+ * ===================                          Last change: 10/01/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : removeip_functions.php                           *
@@ -118,19 +118,19 @@ function addAnonymityLevel () {
        // Set constant name suffix depending on that level
        $suffix = 'unsupported_' . $level;
        switch ($level) {
-               case 0:
+               case '0':
                        $suffix = 'none';
                        break;
 
-               case 1:
+               case '1':
                        $suffix = 'low';
                        break;
 
-               case 2:
+               case '2':
                        $suffix = 'medium';
                        break;
 
-               case 3: // High level
+               case '3': // High level
                        $suffix = 'high';
                        break;
        } // END - while
@@ -139,7 +139,7 @@ function addAnonymityLevel () {
        $constantName = sprintf("REMOVEIP_LEVEL_%s", strtoupper($suffix));
 
        // Default message
-       $message = sprintf(getMessage('REMOVEIP_UNKNOWN_LEVEL'), $suffix);
+       $message = getMaskedMessage('REMOVEIP_UNKNOWN_LEVEL', $suffix);
 
        // Is that constant there?
        if (isMessageIdValid($constantName)) {