From fc972e108b71d452f7134af16cdbce6a0be3b73f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 17 Feb 2005 19:25:13 +0000 Subject: [PATCH] Add backend for resetting the song chooser. --- html/do-reset-randomsongs.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 html/do-reset-randomsongs.pl diff --git a/html/do-reset-randomsongs.pl b/html/do-reset-randomsongs.pl new file mode 100755 index 0000000..e470b73 --- /dev/null +++ b/html/do-reset-randomsongs.pl @@ -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; -- 2.39.2