<?php

	// Included files
	require_once __DIR__ . "/backend/common.php";
	require_once __DIR__ . "/backend/resources.php";
	
	
	// Main function
	
	// Set content type header
	header("Content-Type: text/xml; charset=" . mb_internal_encoding());

?><?xml version="1.0" encoding="UTF-8"?>
<browserconfig>
	<msapplication>
		<tile><?php
	
			// Go through all tile images
			foreach(TILE_IMAGES as $tileImage)
			
				// Display tile image
				echo PHP_EOL . "\t\t\t<" . sanitizeAttributeName(mb_strtolower($tileImage[TILE_IMAGE_PARTS["Ratio"]])) . sanitizeAttributeName($tileImage[TILE_IMAGE_PARTS["X Dimension"]]) . "x" . sanitizeAttributeName($tileImage[TILE_IMAGE_PARTS["Y Dimension"]]) . "logo src=\"" . escapeString(getResource($tileImage[TILE_IMAGE_PARTS["File Path"]])) . "\"/>";
		?>
			
			<TileColor><?= encodeString(BACKGROUND_COLOR); ?></TileColor>
		</tile>
	</msapplication>
</browserconfig>
