]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/profile_functions.php
Extension ext-network continued:
[mailer.git] / inc / libs / profile_functions.php
index 9bd3c1e207f25d351ea07bd9348f021eaf7bde7b..b76c47c8fcc57167d91c97939322bf744a30bb33 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 - 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 *
@@ -42,32 +40,44 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
-// ----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
 //                             Wrapper functions
-// ----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
 
 // 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]