fix curl issue

This commit is contained in:
Frank Harris 2025-11-23 17:07:21 -05:00
parent 5f5008b377
commit f79bec0a16
2 changed files with 25 additions and 9 deletions

View file

@ -29,6 +29,18 @@ define("XML_SCHEMA","modules/config_games/schema_server_config.xml");
/// \return array containing the elements on success.
function read_server_config( $filename )
{
if ( !class_exists('DOMDocument') )
{
print_failure("PHP DOM extension not found. Install the php-xml package to enable game configuration parsing.");
return FALSE;
}
if ( !function_exists('simplexml_load_file') )
{
print_failure("PHP SimpleXML extension not found. Install the php-xml package to enable game configuration parsing.");
return FALSE;
}
$dom = new DOMDocument();
if ( $dom->load($filename) === FALSE )
{