]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/removeip_functions.php
Bad things are now 'classified' as bad (CSS class 'bad' is being used instead of...
[mailer.git] / inc / libs / removeip_functions.php
index 23d393492f63fb986a6178a172b78bbd344d20c9..85c995ec1d7f86e1e34ac6f29b62f50bd85e37d1 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                           *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * 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 *
@@ -39,7 +38,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-}
+} // END - if
 
 // "Getter" for anonymous remote IP number
 function getAnonymousRemoteAddress ($remoteAddr) {
@@ -118,53 +117,29 @@ 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
 
-       // Construct constant name
-       $constantName = sprintf("REMOVEIP_LEVEL_%s", strtoupper($suffix));
-
        // Default message
-       $message = sprintf(getMessage('REMOVEIP_UNKNOWN_LEVEL'), $suffix);
-
-       // Is that constant there?
-       if (isMessageIdValid($constantName)) {
-               // Use that string
-               $message = getMessage($constantName);
-       } // END - if
+       $message = sprintf("{--REMOVEIP_LEVEL_%s--}", strtoupper($suffix));
 
        // Output message in template
        return loadTemplate('removeip_level', true, $message);
 }
 
-// Filter for adding anonymity notice to the output stream
-function FILTER_ADD_ANONYMITY_NOTICE ($data) {
-       // Init content
-       $content = $data;
-
-       // Extension removeip activated?
-       if ((isExtensionActive('removeip')) && (getConfig('removeip_'.strtolower($data['access_level']).'_show') == 'Y')) {
-               // Add anoymity/privacy infos
-               $content['content'] .= addAnonymityLevel() . "<br />\n";
-       } // END - if
-
-       // Return it
-       return $content;
-}
-
 // [EOF]
 ?>