forked from halo-battle/game
Version 1.12
This commit is contained in:
parent
2a066a7498
commit
de31cd3e9a
1373 changed files with 156282 additions and 45238 deletions
31
htdocs/genereXML.php
Normal file
31
htdocs/genereXML.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
if (!defined("__DIR__"))
|
||||
define("__DIR__", dirname(__FILE__));
|
||||
|
||||
$xml = new DOMDocument('1.0', 'UTF-8');
|
||||
|
||||
$xml->load("/var/www/halo-battle/onyx2/config/root.xml");
|
||||
|
||||
$xml->formatOutput = true;
|
||||
|
||||
$xml_configs = $xml->createElement("configs");
|
||||
$xml_configs->setAttribute("active", true);
|
||||
$xml_configs->setAttribute("root", __DIR__.'/');
|
||||
$xml_configs->setAttribute("cache", true);
|
||||
|
||||
$xml_config = $xml->createElement("config");
|
||||
$xml_config->setAttribute("match", '*');
|
||||
|
||||
$xml_var = $xml->createElement("var", "Béta #1");
|
||||
$xml_var->setAttribute("name", 'serveur_name');
|
||||
$xml_config->appendChild($xml_var);
|
||||
|
||||
$xml_var = $xml->createElement("var", "Béta #1");
|
||||
$xml_var->setAttribute("name", 'serveur_name');
|
||||
$xml_config->appendChild($xml_var);
|
||||
|
||||
$xml_configs->appendChild($xml_config);
|
||||
$xml->appendChild($xml_configs);
|
||||
|
||||
print $xml->saveXML();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue