Update writeconfig.php