- // Is begging rallye active?
- if ($CONFIG['beg_rallye'] == "Y")
- {
- // Add points to rallye account
- $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET beg_points=beg_points+%s WHERE userid=%d LIMIT 1",
- array($POINTS, $uid), __FILE__, __LINE__);
- }
- else
- {
- // Add points to account
- ADD_POINTS_REFSYSTEM($uid, $POINTS, false, "0", $locked, strtolower($CONFIG['beg_mode']));
- }
-
- // Subtract begged points from member account if the admin has selected one
- if ($CONFIG['beg_uid'] > 0)
- {
- // Subtract from this account
- $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET used_points=used_points+%s WHERE userid=%d LIMIT 1",
- array($POINTS, bigintval($CONFIG['beg_uid'])), __FILE__, __LINE__);
-
- // Update mediadata as well
- if (GET_EXT_VERSION("mediadata") >= "0.0.4")
- {
- // Update database
- MEDIA_UPDATE_ENTRY(array("total_points"), "sub", $POINTS);
- }
- }
-
- // Set message
- define('__BEG_MSG', LOAD_TEMPLATE("beg_done", true));
- }
- elseif ($login)
- {
- // Logged in user found!
- define('__BEG_MSG', LOAD_TEMPLATE("beg_login", true));
-
- // Free memory
- SQL_FREERESULT($result);
- }
- else
- {
- // Free memory
- SQL_FREERESULT($result);
+ // Tracker code enabled? (We don't track users here!
+ if ((getConfig('beg_pay_mode') != 'NONE') && ($pay === true)) {
+ // Prepare content for template
+ // @TODO Opps, what is missing here???
+ $content = array(
+ );