* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 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 *
die();
} // END - if
-// ----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
// Wrapper functions
-// ----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
// Getter for profile_update
function getProfileUpdate () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('profile_update');
// Getter for resend_profile_update
function getResendProfileUpdate () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('resend_profile_update');
return $GLOBALS[__FUNCTION__];
}
-// Determines wether sending profile update notification is enabled
+// Getter for send_prof_update
+function getSendProfUpdate () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('send_prof_update');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Determines whether sending profile update notification is enabled
function isSendProfileUpdateEnabled() {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
- $GLOBALS[__FUNCTION__] = (getConfig('send_prof_update') == 'Y');
+ $GLOBALS[__FUNCTION__] = (getSendProfUpdate() == 'Y');
} // END - if
// Return cache