<?php
require 'rb-include.php';

if (!$id) {
	rb_header();
	echo '<p>Error: song does not exist</p>', "\n";
	rb_footer();
	exit(1);
}

if (!$license) {
	header('Location: http://creativecommons.org/license/?partner=gnomoradio&exit_url=http://gnomoradio.org/artists/rb/rb-choose-license.php?license=[license_url]%26id='. $id);
	exit(0);
}

rb_header();

#if ($others) {
#
#} else {
	pg_exec($db, "update songs set license='$license' where id='$id' and owner='$uid'");
	echo '<p>Your submission has been saved.  Please return to the <a href="rb-main.php">main menu</a>.</p>', "\n";
#}

rb_footer();
?>
