#!/usr/bin/perl

open(BE, "</home/bogardi/vegyes/link.htm");
@b = <BE>;
close(BE);

open(JUMP, "</home/bogardi/public_html/gen/gjump.txt");
@gjump = <JUMP>;
close(JUMP);

@k = ();
#$x = '<html><body bgcolor=white><table width=620 border=0>';
$x = '<table width=620 border=0>';
push(@k, $x);

$p = 0;
$ok = 0;
until ($ok == 50)
{
    if (substr($b[$p], 0, 2) eq "|1")
    {
	$ok++;
	$x1 = '<tr><td width=620 colspan=2>';
	$x2 = substr($b[$p], 2); chomp($x2);
	$x3 = substr($b[$p+1], 2); chomp($x3);
	$x4 = '</td></tr><tr><td width=20></td><td width=600>';
	$x5 = substr($b[$p+3], 2); chomp($x5);

	$x6 = "<font size=-1> [Language: ".substr($b[$p+2], 2)."] [Added: "; chomp($x6);
	$x7 = substr($b[$p+5], 2); chomp($x7); $x7 =~ s/(....)(..)(..)/$3\/$2\/$1/;
	$x7 =~ s/00\/00\/0000/before July 1999/;
	$x8 = ']</font></td></tr>'."\n";
	push(@k, $x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8);
    }
    $p++;
}

$x = "</table>\n";
push(@k, $x);

print "Content-type: text/html\n\n";

print <<SZOVEG;
<html><head><title>Radix links: Links added currently</title></head>
<body bgcolor=white><table width=620><tr><td>
<table width=620 border=0 cellpadding=0 cellspacing=0><tr><td width=140>
@gjump
</td><td width=480 valign=middle>
SZOVEG

require "banrot_d.pl";

print <<SZOVEG;
</td></tr></table>

<h3>Radix links: Links added currently</h3>
@k
</td></tr></table>
</body></html>
SZOVEG
