include("../include/irm.inc");
AuthCheck("3");
#
# First we need to make sure it's ok to Add/Delete software
# AKA we are not allowed to do it if we have any installed licenses.
#
$query = "select * from inst_software WHERE sID=$bID ORDER BY sID";
$count = $adb->dbh_do($query);
if ($count==0) {
$query = "INSERT INTO software_bundles
( sID, bID ) VALUES ('$sID','$bID')";
$count = $adb->dbh_do($query);
header("Location: $HTTP_REFERER");
} else {
commonHeader("Software Bundle: Add Software Error");
print "We have copies of this bundle installed. You may not alter
the software included with this bundle.
Return to Previous Screen";
commonFooter();
}
?>