#!/usr/bin/perl
#### #!/bin/perl5.005_03 -w

use strict;
use CGI;

sub urlencode{
    my($esc) = @_;
    $esc =~ s/^\s+|\s+$//gs;
    $esc =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
    $esc =~ s/ /\+/g;
    $esc =~ s/%20/\+/g;
    return $esc;
}

my ($query, $contentpage);
$query = new CGI;
$contentpage = $query->param('p') . '/' . $query->param('c');

print "Content-type: text/html\n\n";
print <<"EOFS";
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<meta name="description" content="Stichting Spoetnik - humanitaire hulp aan Oekraïne">
		<meta name="keywords" content="Spoetnik, Oekraine, Oekra&iuml;ne, Oekraïne, Humanitair, Vlaardingen, Beja, Kluiters">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="pragma" content="no-cache">
		<base target="content">
		<link rel="stylesheet" href="layout.css">
		<title>Stichting Spoetnik - humanitaire hulp aan Oekraïne</title>
	</head>

	<frameset rows="161,*" framespacing="0" border="0" frameborder="0">
		<frame name="top" src="top.html" border="0" frameborder="0" marginwidth="0" marginheight="0" noresize scrolling="NO">
		<frame src="$contentpage" name="content" border="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes">
	</frameset>
</html>

EOFS

exit;
