edit xml config again

This commit is contained in:
Frank Harris 2025-11-22 09:25:06 -05:00
parent d2d0f5d9d7
commit b097c31f4a
2 changed files with 17 additions and 3 deletions

View file

@ -160,7 +160,8 @@ function exec_ogp_module() {
echo "<b>".$myXML."</b>";
echo "<xmp>".$template."</xmp>";
$myXML = "modules/config_games/server_configs/".$key_name."_".$os.$arch.".xml";
$template = preg_replace("/\r\n?|\n/", "\n", $template);
$fh = fopen($myXML, 'w') or die("No Write Permission.");
fwrite($fh, $template);
fclose($fh);
}
}