1 package PciIds::Html::Help;
5 use PciIds::Html::Util;
6 use Apache2::Const qw(:common :http);
9 our @EXPORT=qw(getHelp);
13 my( $helpname ) = ( $req->uri() =~ /^\/help\/(.*)/ );
14 return NOT_FOUND if( $helpname =~ /[\/.]/ || $helpname eq '' );
15 open HELP, "$directory/help/$helpname" or return NOT_FOUND;
18 genHtmlHead( $req, $head, undef );
19 print "<h1>$head</h1>\n";
20 while( defined( my $line = <HELP> ) ) {