Update applysettings.php