<?php

/**
 * This file is part of module web_search
 * Copyright by algebre - http://www.saharama.net
 *
 * Module web_search is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Module web_search is only running within
 * pragmaMx - Web Content Management System.
 * Copyright by pragmaMx Developer Team - http://www.pragmamx.org
 *
 * Vesion: 1.0
 * Author: algebre
 */
include ('mainfile.php');
$out = '<?xml version="1.0" encoding="' . _CHARSET . '"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
	<ShortName>' . $sitename . '</ShortName>
	<Description>' . $sitename . '-' . _SEARCH . '</Description>
	<Contact>' . $adminmail . '</Contact>
	<Url type="text/html" method="GET" template="' . MX_BASE_URL . 'modules.php?type=stories&amp;query={searchTerms}&amp;name=Search" />
    <LongName>' . $slogan . '</LongName>
	<Image height="16" width="16" type="image/vnd.microsoft.icon">' . MX_BASE_URL . 'favicon.ico</Image>
	<Developer>pragmaMx Developer Team - http://www.pragmamx.org</Developer>
	<SyndicationRight>open</SyndicationRight>
	<AdultContent>false</AdultContent>
	<Language>' . $backend_language . '</Language>
	<OutputEncoding>' . _CHARSET . '</OutputEncoding>
	<InputEncoding>' . _CHARSET . '</InputEncoding>
</OpenSearchDescription>';
if (mxModuleAllowed('Search'))
{
    //header( 'Content-type: application/xml' );
    header('Content-Type: application/opensearchdescription+xml; charset=' . _CHARSET . '');
    echo $out;
}
?>