#!/usr/bin/perl -U use strict; use Time::CTime qw(strftime); use File::stat; use editor_com; my $ALLOW_HIDDEN = 0; my %fieldHash; my $queryString = ''; my ($rows, $cols) = (25, 65); # Rows and columns for the textarea in file edit if(uc($ENV{REQUEST_METHOD}) eq 'GET'){ $queryString = $ENV{QUERY_STRING}; }else{ read(STDIN, $queryString, $ENV{CONTENT_LENGTH}); } StripEncoding($queryString, \%fieldHash); if(exists $fieldHash{'rows'} and exists $fieldHash{'cols'}){ ($rows, $cols) = @fieldHash{'rows', 'cols'}; }else{ ($rows, $cols) = (21, 73); } unless(exists $fieldHash{'phase'}){ print "Content-type: text/html\n\n"; print "