* $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 *
// User id should not be zero
if (!isValidUserId(getCurrentUserId())) {
// Should be always valid
- debug_report_bug(__FUNCTION__, __LINE__, 'User id is zero.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Current user id is invalid: ' . getCurrentUserId());
} // END - if
// Init the user
// User id should not be zero
if (!isValidUserId(getCurrentUserId())) {
// Should be always valid
- debug_report_bug(__FUNCTION__, __LINE__, 'User id is zero.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Current user id is invalid: ' . getCurrentUserId());
} // END - if
// Return the value
// Is the current userid valid?
if (!isValidUserId($userid)) {
// Should be always valid
- debug_report_bug(__FUNCTION__, __LINE__, 'User id is invalid.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Current user id is invalid: ' . $userid);
} // END - if
// Get the whole array if found
* @access private
*/
function sendRawRedirect ($url) {
+ // Send helping header
+ setHttpStatus('302 Found');
+
// always close the session
session_write_close();
return (getScriptOutputMode() == -1);
}
+// Wrapper to generate a user email link
+function generateWrappedUserEmailLink ($email) {
+ // Just call the inner function
+ 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]
?>