<?php require_once('includes/requireadminlogin.inc.php'); require_once('includes/upgrade/upgrade.inc.php'); $result=download_upgrade_package($_SESSION['uniwits.upgrade']); if ($result['status']!='OK') { header("HTTP/1.1 500 Internal Error"); echo 'ERROR: '.$result['message']; } else { echo 'OK'; } ?>