<?php
$system->error('Package id is required') if ($system->param('id') < 0);
$system->error('The package you selected wasn't found in the database') if (!$system->db->selectrow_array('SELECT id FROM packages WHERE id = ?',undef,$system->param('id')));
my $package = EasyHost::Package->new($system->param('id'));
$system->argv('&id='.$package->id);
?>