Remove "start_xml_output" and "start_js_output" functions

This commit is contained in:
Dmitriy Simushev 2014-06-03 14:58:14 +00:00
parent 390391d117
commit 2da623dfb3

View File

@ -40,20 +40,6 @@ function get_image($href, $width, $height)
return "<img src=\"$href\" border=\"0\" alt=\"\"/>";
}
/**
* Sends headers that are needed for XML responses.
*
* @deprecated
*/
function start_xml_output()
{
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: text/xml; charset=utf-8");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
}
function start_html_output()
{
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
@ -62,20 +48,6 @@ function start_html_output()
header("Content-type: text/html; charset=utf-8");
}
/**
* Sends headers that are needed for JS responses.
*
* @deprecated
*/
function start_js_output()
{
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: application/javascript; charset=utf-8");
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
}
/**
* Load additional CSS files, required by plugins, and build HTML code to
* include them