mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
38f106a92e
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4704 21ef857c-d57f-4fe0-8362-d861dc6d29cd
21 lines
863 B
PHP
21 lines
863 B
PHP
<?php include('config.php');
|
|
|
|
// output the config.php modification date as a cache control helper.
|
|
header("last-modified: ".gmdate("D, d M Y H:i:s", filemtime('config.php'))." GMT");
|
|
|
|
//calc the expires string in GMT not localtime and add the offset for two hours using php.
|
|
$expires = "Expires: ".gmdate("D, d M Y H:i:s", strtotime('+2 days'))." GMT";
|
|
|
|
header($expires);
|
|
header("Cache-Control: {$expires}");
|
|
header('Content-Type: text/xml; charset=UTF-8');
|
|
|
|
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>".PHP_EOL;
|
|
echo "<latest>".PHP_EOL;
|
|
echo "<ver>".LATEST_PH_VERSION."</ver>".PHP_EOL;
|
|
echo "<reldate>".LATEST_PH_RELEASE_DATE."</reldate>".PHP_EOL;
|
|
echo "<size>".LATEST_PH_SETUP_SIZE."</size>".PHP_EOL;
|
|
echo "<sha1>".LATEST_PH_SETUP_SHA1."</sha1>".PHP_EOL;
|
|
echo "<md5>".LATEST_PH_SETUP_MD5."</md5>".PHP_EOL;
|
|
echo "</latest>".PHP_EOL;
|
|
?>
|