#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
# use utf8;
# use Fcntl qw(:DEFAULT :flock);

print header(-charset=>'utf-8');

my $file="b2k"; #param("file") || "kibbutz";
my $style=param("style") || "kibbutz.css";

# sysopen (SOURCE, "$file.txt", O_RDONLY) or die "$file.txt nicht lesbar. $!";
# flock(SOURCE, LOCK_EX) or die "Kein LOCK moeglich: $!";

print qq
{
<html>
	<head>
		<title>Kibbutz-Input</title>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<link type="text/css" href="$style" rel="stylesheet">
	</head>

	<body style="overflow: auto;">
	<form action="enter.pl">
	<table width="100%" height="128" border="0" cellspacing="0" cellpadding="0" class="kibbutz">
		<tr>
			<td>name:&nbsp;</td>
			<td width="100%"><input type="text" name="name" class="lineinput"></td>
		</tr>
		<tr class="urlrow">
			<td>home page:&nbsp;</td>
			<td width="100%"><input type="text" name="homepage" value="http://" class="lineinput"></td>
		</tr>
		<tr>
			<td>URL:&nbsp;</td>
			<td width="100%"><input type="text" name="url" value="http://" class="lineinput"
			title="You can also use a &quot;mailto:&quot;-link here!"></td>
		</tr>
		<tr>
			<td colspan="2">message:</td>
		</tr>
			<td colspan="2" height="100%">
				<textarea wrap="virtual" name="message"
				title="No, HTML, no URLs!!"></textarea></td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit" value=" Ok "></td>
		</tr>
	</table>
	<input type="hidden" name="style" value="$style">
	</form>
	</body>
</html>

};

#use Data::Dumper;
#print Dumper(\@messages);

