query("DELETE FROM invites WHERE InviteKey='".db_string($_POST['invitekey'])."'"); } if (!empty($_GET['search'])) { $Search = db_string($_GET['search']); } else { $Search = ''; } $sql = " SELECT SQL_CALC_FOUND_ROWS um.ID, um.IP, i.InviteKey, i.Expires, i.Email FROM invites as i JOIN users_main AS um ON um.ID = i.InviterID "; if ($Search) { $sql .= "WHERE i.Email LIKE '%$Search%' "; } $sql .= "ORDER BY i.Expires DESC LIMIT $Limit"; $RS = $DB->query($sql); $DB->query("SELECT FOUND_ROWS()"); list($Results) = $DB->next_record(); $DB->set_query_id($RS); ?>

unused invites have been sent.


Email:  
next_record()) { $Row = ($Row == 'b') ? 'a' : 'b'; ?>
Inviter Email IP InviteCode Expires Controls