####################################################################### # htmlgen.pm # # These routines generate the HTML for the GnuDIP # Web interface. # # See COPYING for licensing information. # ####################################################################### # Perl modules use strict; # global variables use vars qw($conf); use vars qw($pref $userinfo $remote_ip); use vars qw($reqparm $thiscgi $thishost $thisurl); use vars qw($htmlgen_header $htmlgen_trailer); # GnuDIP common subroutines use gdiplib; use gdipcgi_cmn; use gdipmailchk; # variables global to this file # - may be included in all pages my ($title, $head, $headtxt, $topline, $trailerline, $bodytxt, $body, $bodyend, $html_dir); ####################################################################### # initialise global variables ####################################################################### sub htmlgen_init { # title $title = "GnuDIP Web Interface"; $headtxt = tst(qq*
|
'; } ####################################################################### # login ####################################################################### sub pg_login { header(); tpr(qq*
$headtxt <$bodytxt onload="sethidden()"> $topline
$htmlgen_trailer