Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 286 Bytes
<?PHP
require 'includes/master.inc.php';
$o = new Order($_GET['id']);
if(!$o->ok()) exit;
$computed_hash = md5($o->id . $_GET['x'] . Config::get('authSalt'));
if($computed_hash !== $_GET['h']) exit;
if((time() > $_GET['x']) && ($_GET['x'] > 0)) exit;
$o->downloadLicense();