saveToAsciiSafeString(); $fd = fopen($root_dir.'/'.$_SETTINGS_FILE, 'a'); fwrite($fd, "define('_NEW_COOKIE_KEY_', '$new_cookie_key');" . PHP_EOL); fclose($fd); return true; }