Show Your Support
if ($user['referrerid']) { $referrername = $DB_site->query_first("SELECT username FROM " . TABLE_PREFIX . "user WHERE userid = $user[referrerid]"); $user['referrer'] = $referrername['username']; }
if ($user['referrerid']) { $referrername = $DB_site->query_first("SELECT username, userid FROM " . TABLE_PREFIX . "user WHERE userid = $user[referrerid]"); $user['referrer'] = $referrername['username']; construct_hidden_code('user[referrerido]', $referrername['userid']); }
if ($referrerid = $DB_site->query_first("SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '" . addslashes(htmlspecialchars_uni($referrer)) . "'")) { $user['referrerid'] = $referrerid['userid'];
if ($user['referrerido'] != $user['referrerid'] && $vboptions['uttpoints_enablesystem'] == 1 && $vboptions['uttpoints_pointsperreferral'] != 0) { $DB_site->query("UPDATE ".TABLE_PREFIX . "$vboptions[uttpoints_pointtable] SET $vboptions[uttpoints_pointsfield]=$vboptions[uttpoints_pointsfield]+$vboptions[uttpoints_pointsperreferral] WHERE userid='".intval($referrerid['userid'])."'"); } unset($user['referrerido']);