home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.sunet.sepub/pictures
/
2014.11.ftp.sunet.se-pictures.tar
/
ftp.sunet.se
/
pub
/
pictures
/
ACiD-artpacks
/
www
/
mirrors
/
acheron
/
cgi-bin
/
links
/
show_Links.cgi
< prev
Wrap
Text File
|
1999-02-04
|
2KB
|
78 lines
#!/usr/bin/perl
require ("cgi-lib.pl") or die "Could not open or find cgi-lib.pl\n";
# declare variables
$current_ip = "nothing";
$filename = "links.txt";
# call initial functions
&Get_request_types;
&Analyse_file;
#########################################################################
sub Get_request_types {
&ReadParse(*input);
$link_cat = ($input{'Category'});
}
#########################################################################
sub Analyse_file {
print &Header;
print &Top("test");
$output = "STDOUT";
open (LINKSFILE, "<$filename") || die "Could not open or find $filename\n";
foreach $line (<LINKSFILE>) {
($category, $name, $url, $desc, $features) = split('|', $line);
print $output "<B><a href=$url>$name</a></B><br>";
print $output "$desc";
}
print &Bottom;
close LOGFILE;
}
#########################################################################
#_____Module Returns the Output Document Type______#
sub Header
{
return "Content-type: text/html\n\n";
}
#_____Module Returns the Output Document Head_______#
sub Top
{
my ($title) = @_;
return <<"ENDPRINT";
<HTML>
<HEAD>
<TITLE>acheron.org // admin / banner statistics</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY link="#FFCC00" vlink="#FF9900" alink="#FFFFFF" text="#cccccc" BGCOLOR="#000000">
<div align="center">
<table border="0" width="640" align="center" cellspacing="0" cellpadding="0">
<tr>
<td width="640">
<p><font size="2" face="Arial, Helvetica, sans-serif">
ENDPRINT
}
#_____Module Returns the Output Document Bottom______#
sub Bottom
{
return "</td></tr></table></div></BODY></HTML>\n";
}