discourse-legacysite-perl/site/slowtwitch.com/cgi-bin/ssi_poll.cgi
2024-06-17 21:49:12 +10:00

31 lines
1.0 KiB
Perl
Executable File

#!/usr/local/bin/perl
# ==================================================================
# Gossamer Links - enhanced directory management system
#
# Website : http://gossamer-threads.com/
# Support : http://gossamer-threads.com/scripts/support/
# CVS Info : 087,068,085,094,083
# Revision : $Id: page.cgi,v 1.39 2005/03/22 08:18:05 jagerman Exp $
#
# Copyright (c) 2001 Gossamer Threads Inc. All Rights Reserved.
# Redistribution in part or in whole strictly prohibited. Please
# see LICENSE file for full details.
# ==================================================================
use strict;
use lib '/var/home/slowtwitch/slowtwitch.com/cgi-bin/articles/admin';
use Links qw/:objects/;
use Links::User::Page;
use GT::WWW;
local $SIG{__DIE__} = \&Links::fatal;
Links::init('/var/home/slowtwitch/slowtwitch.com/cgi-bin/articles/admin');
Links::init_user();
my $poll = $IN->param('poll');
my $url = "http://forum.slowtwitch.com/cgi-bin/poll/poll.cgi?poll_id=$poll&remote=view";
my $content = GT::WWW->get($url);
print $IN->header;
print $content;