X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fwrapper-functions.php;h=b42874ee8a035d540729ff09ce03c050585be84d;hb=8a1b11817a0e43bb2d674f88088957a1e2eaa0d0;hp=da04d5ddccea5a9bacc6f1abb70f6daa2f6431a0;hpb=f2820f39f5dce98bac5232ac4963690f4c816e2a;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index da04d5ddcc..b42874ee8a 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -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 * @@ -1495,11 +1493,11 @@ function getTitle () { } // "Getter" for curr_svn_revision -function getCurrSvnRevision () { +function getCurrentRepositoryRevision () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it - $GLOBALS[__FUNCTION__] = getConfig('CURR_SVN_REVISION'); + $GLOBALS[__FUNCTION__] = getConfig('CURRENT_REPOSITORY_REVISION'); } // END - if // Return cache @@ -1950,5 +1948,17 @@ function generateWrappedUserEmailLink ($email) { return generateEmailLink($email, 'user_data'); } +// Wrapper to check if user points are locked +function ifUserPointsLocked ($userid) { + // Do we have cache? + if (!isset($GLOBALS[__FUNCTION__][$userid])) { + // Determine it + $GLOBALS[__FUNCTION__][$userid] = ((getFetchedUserData('userid', $userid, 'ref_payout') > 0) && (!isDirectPaymentEnabled())); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__][$userid]; +} + // [EOF] ?>