* $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 *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// 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]