]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/profile_functions.php
Renamed function so it might be more understandable
[mailer.git] / inc / libs / profile_functions.php
index 9bd3c1e207f25d351ea07bd9348f021eaf7bde7b..2eddb8110e0b78905063ad0bc89ef523578f008a 100644 (file)
@@ -14,8 +14,6 @@
  * $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                    *
@@ -49,25 +47,37 @@ if (!defined('__SECURITY')) {
 // Getter for profile_update
 function getProfileUpdate () {
        // Do we have cache?
-       if (!isset($GLOBALS['profile_update'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS['profile_update'] = getConfig('profile_update');
+               $GLOBALS[__FUNCTION__] = getConfig('profile_update');
        } // END - if
 
        // Return cache
-       return $GLOBALS['profile_update'];
+       return $GLOBALS[__FUNCTION__];
 }
 
 // Getter for resend_profile_update
 function getResendProfileUpdate () {
        // Do we have cache?
-       if (!isset($GLOBALS['resend_profile_update'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS['resend_profile_update'] = getConfig('resend_profile_update');
+               $GLOBALS[__FUNCTION__] = getConfig('resend_profile_update');
        } // END - if
 
        // Return cache
-       return $GLOBALS['resend_profile_update'];
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Determines wether sending profile update notification is enabled
+function isSendProfileUpdateEnabled() {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getConfig('send_prof_update') == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
 }
 
 // [EOF]