]> mj.ucw.cz Git - pciids.git/blobdiff - PciIds/Html/Handler.pm
Help system
[pciids.git] / PciIds / Html / Handler.pm
index 9882f76fe3b4ae8272564906bc88b44f4a606872..24f33cfc053dfd80596f7c2631d3df3220be1e00 100644 (file)
@@ -10,9 +10,10 @@ use PciIds::Html::Debug;
 use PciIds::Html::Changes;
 use PciIds::Html::Admin;
 use PciIds::Html::Notifications;
-use PciIds::Notifications;
+use PciIds::Html::Help;
 use Apache2::Const qw(:common :http);
 
+$ENV{'PATH'} = '';
 my $dbh = connectDb();
 my $tables = PciIds::Html::Tables::new( $dbh );
 
@@ -58,6 +59,7 @@ sub handler( $$ ) {
        my( $req, $hasSSL ) = @_;
        return HTTPRedirect( $req, $req->uri()."index.html" ) if( $req->uri() eq '/' );
        return DECLINED if( $req->uri() =~ /^\/((static)\/|robots.txt|index.html)/ );
+       return getHelp( $req ) if( $req->uri() =~ /^\/help/ );
        my $args = parseArgs( $req->args() );
        my $action = $args->{'action'};
        $action = '' unless( defined $action );