]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/removeip_functions.php
Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / libs / removeip_functions.php
index ba03102accb0b72477d0060ef01b6ddf16140e39..9d39d185d8dee822c0a32b2ed1465b0fef9035af 100644 (file)
  * $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                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2015 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 *
@@ -136,35 +134,11 @@ function addAnonymityLevel () {
                        break;
        } // END - while
 
-       // Construct constant name
-       $constantName = sprintf("REMOVEIP_LEVEL_%s", strtoupper($suffix));
-
        // Default message
-       $message = getMaskedMessage('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;
+       return loadTemplate('removeip_level', TRUE, $message);
 }
 
 // [EOF]