Files
mirror-processhacker/misc/website/websitev2/update.php
T
dmex b74a3b3b7e Website: fixed updater caching, fixed memory leaks with define, IE fixes (IE7 now 90%, 8/9/10 are 100%)
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4723 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2011-09-28 09:25:42 +00:00

19 lines
827 B
PHP

<?php include('config.php');
header('Content-Type: application/xml; charset=UTF-8');
// output the config.php modification date as a cache control helper.
header("last-modified: {$lastmod} GMT");
// calc the expires string in GMT not localtime and add the offset for two hours using php.
header($expires = "Expires: ".gmdate("D, d M Y H:i:s", strtotime('+2 days'))." GMT");
// setup caching.
header("Cache-Control: {$expires}");
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;
?>