* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * 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 *
// Add points to user or begging rallye account
function addPointsBeg ($userid, $points) {
// Default is not added
- $added = false;
+ $added = FALSE;
// Is begging rallye active?
if (isBegRallyeEnabled()) {
}
// Subtract begged points from member account if the admin has selected one
- if (($added === true) && (isValidUserId(getBegUserid()))) {
+ if (($added === TRUE) && (isValidId(getBegUserid()))) {
// Subtract from this account
$added = ($added && subtractPoints('beg_payout', getBegUserid(), $points));
} // END - if
//-----------------------------------------------------------------------------
// Outputs points which a member can get
-function doTemplateOutputBegPoints ($templateName, $clear = false) {
+function doTemplateOutputBegPoints ($templateName, $clear = FALSE) {
// Default is not the same
$return = '{--BEG_POINTS_MIN_MAX--}';
// "Getter" for beg_new_member_notify
function getBegNewMemberNotify () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Get it
$GLOBALS[__FUNCTION__] = getConfig('beg_new_member_notify');
return $GLOBALS[__FUNCTION__];
}
-// Checks wether beg_new_member_notify is enabled
+// Checks whether beg_new_member_notify is enabled
function isBegNewMemberNotifyEnabled () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('beg', '0.2.7')) && (getBegNewMemberNotify() == 'Y'));
// "Getter" for beg_userid
function getBegUserid () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Get it
$GLOBALS[__FUNCTION__] = getConfig('beg_userid');
// "Getter" for beg_timeout
function getBegTimeout () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_timeout');
// "Getter" for beg_userid_timeout
function getBegUseridTimeout () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_userid_timeout');
// "Getter" for beg_ip_timeout
function getBegIpTimeout () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_ip_timeout');
// "Getter" for beg_ranks
function getBegRanks () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_ranks');
// "Getter" for beg_points_max
function getBegPointsMax () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_points_max');
// "Getter" for beg_points
function getBegPoints () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_points');
// "Getter" for beg_notify_bonus
function getBegNotifyBonus () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_notify_bonus');
// "Getter" for beg_notify_wait
function getBegNotifyWait () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_notify_wait');
// "Getter" for beg_pay_mode
function getBegPayMode () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_pay_mode');
// "Getter" for beg_include_own
function getBegIncludeOwn () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_include_own');
return $GLOBALS[__FUNCTION__];
}
-// Checks wether beg_include_own is "Y"
+// Checks whether beg_include_own is "Y"
function isBegIncludeOwnEnabled () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getBegIncludeOwn() == 'Y');
// "Getter" for beg_active
function getBegActive () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_active');
return $GLOBALS[__FUNCTION__];
}
-// Checks wether beg_active is "Y"
+// Checks whether beg_active is "Y"
function isBegActiveEnabled () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getBegActive() == 'Y');
// "Getter" for beg_rallye
function getBegRallye () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_rallye');
return $GLOBALS[__FUNCTION__];
}
-// Checks wether beg_rallye is "Y"
+// Checks whether beg_rallye is "Y"
function isBegRallyeEnabled () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getBegRallye() == 'Y');
// "Getter" for beg_rallye_enable_notify
function getBegRallyeEnableNotify () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_rallye_enable_notify');
return $GLOBALS[__FUNCTION__];
}
-// Checks wether beg_rallye_enable_notify is "Y"
+// Checks whether beg_rallye_enable_notify is "Y"
function isBegRallyeEnableNotifyEnabled () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getBegRallyeEnableNotify() == 'Y');
// "Getter" for beg_rallye_disable_notify
function getBegRallyeDisableNotify () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('beg_rallye_disable_notify');
return $GLOBALS[__FUNCTION__];
}
-// Checks wether beg_rallye_disable_notify is "Y"
+// Checks whether beg_rallye_disable_notify is "Y"
function isBegRallyeDisableNotifyEnabled () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getBegRallyeDisableNotify() == 'Y');