die();
} // END - if
-// Make sure our functions are there
-loadIncludeOnce('inc/libs/refback_functions.php');
-
// Sanity-check: Do we have ref level 0?
$result = SQL_QUERY('SELECT `id` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `level`=0 OR `level` IS NULL', __FILE__, __LINE__);
if (!SQL_HASZERONUMS($result)) {
// Begin with all users in level one
$result_direct = SQL_QUERY('SELECT
- u.userid
+ `userid`
FROM
- `{?_MYSQL_PREFIX?}_user_data` AS u
+ `{?_MYSQL_PREFIX?}_user_data`
WHERE
- u.refid=0
+ `refid`=0
ORDER BY
- u.userid ASC', __FILE__, __LINE__);
+ `userid` ASC', __FILE__, __LINE__);
// Do we have entries?
if (!SQL_HASZERONUMS($result_direct)) {
while ($content = SQL_FETCHARRAY($result_direct)) {
// Update refback table
//* DEBUG: */ debugOutput('userid=' . $content['userid']);
- updateRefbackTable($content['userid']);
+ updateReferalTable($content['userid']);
} // END - while
} // END - if