discourse-legacysite-perl/site/forum.slowtwitch.com/cgi-bin/tickerad/ticker.cgi

18 lines
436 B
Plaintext
Raw Normal View History

2024-06-17 11:49:12 +00:00
#!/bin/env perl
#
# Handle requests for the client-side view of the Ticker.
#
# Returns an xml document containing all the tickers currently present in
# the database.
#
use strict;
use warnings;
use lib '/home/slowtwitch/forum.slowtwitch.com/cgi-bin/admin';
use GForum qw($IN);
GForum::init('/home/slowtwitch/forum.slowtwitch.com/cgi-bin/admin');
use Ticker;
print $IN->header(-type => "text/xml");
print Ticker::read_tickers_xml();