summaryrefslogtreecommitdiff
path: root/history.pl
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@wirdorange.org>2011-03-31 19:05:23 +0000
committerOthmar Gsenger <otti@wirdorange.org>2011-03-31 19:05:23 +0000
commitd26fa8c1e0886c813de5364ee6570c860c6ce12c (patch)
tree418120693100150b0443d3d880f945aaa45a0d22 /history.pl
parentadded support for browsing by category (diff)
hopfully repaired this after backup loss
Diffstat (limited to 'history.pl')
-rwxr-xr-xhistory.pl32
1 files changed, 0 insertions, 32 deletions
diff --git a/history.pl b/history.pl
deleted file mode 100755
index 204329e..0000000
--- a/history.pl
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/perl
-use strict;
-
-require RPC::XML;
-require RPC::XML::Client;
-use CGI qw(:standard);
-use CGI::Carp 'fatalsToBrowser';
-use URI::Escape;
-
-print header;
-print CGI::start_html('nzbget status');
-
-my $cli = RPC::XML::Client->new('http://nzbget:tegbzn6789@127.0.0.1:6789/xmlrpc');
-my $resp = $cli->send_request('history') or die "Can't connect to nubget";
-my $i=0;
-print CGI::start_table();
-foreach my $row (@{ $resp->value})
-{
- $i++;
- foreach my $key (keys %$row)
- {
- if (ref $row->{$key} eq 'ARRAY')
- {
- print Tr(td([$key,(join ',',@{$row->{$key}})]));
- } else {
- print Tr(td([$key,$row->{$key}]));
- }
- }
-}
-print CGI::end_table();
-;
-print end_html;