Update affiliates.php