]> git.sesse.net Git - ccbs/commitdiff
Add backend for resetting the song chooser.
authorSteinar H. Gunderson <sesse@samfundet.no>
Thu, 17 Feb 2005 19:25:13 +0000 (19:25 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Thu, 17 Feb 2005 19:25:13 +0000 (19:25 +0000)
html/do-reset-randomsongs.pl [new file with mode: 0755]

diff --git a/html/do-reset-randomsongs.pl b/html/do-reset-randomsongs.pl
new file mode 100755 (executable)
index 0000000..e470b73
--- /dev/null
@@ -0,0 +1,14 @@
+#! /usr/bin/perl
+
+use ccbs;
+use strict;
+use warnings;
+
+my $dbh = ccbs::db_connect();
+my $cgi = new CGI;
+
+$dbh->do('DELETE FROM randomsongsused');
+
+ccbs::print_see_other('randomsongs.pl');
+
+$dbh->disconnect;