'' => \&PciIds::Html::List::list,
#Database changes
'newitem' => \&PciIds::Html::Changes::newItemForm,
- 'newcomment' => \&PciIds::Html::Changes::newCommentForm,
+ 'newhistory' => \&PciIds::Html::Changes::newHistoryForm,
#Registering users
'register' => \&PciIds::Html::Users::registerForm,
'register-confirm' => \&PciIds::Html::Users::confirmForm,
#Some debug
'test' => \&PciIds::Html::Debug::test,
#Notifications
- 'notifications' => \&PciIds::Html::Notifications::notifForm
+ 'notifications' => \&PciIds::Html::Notifications::notifForm,
+ 'help' => \&PciIds::Html::Help::getHelp
},
'POST' => {
'newitem' => \&PciIds::Html::Changes::newItemSubmit,
- 'newcomment' => \&PciIds::Html::Changes::newCommentSubmit,
+ 'newhistory' => \&PciIds::Html::Changes::newHistorySubmit,
'register' => \&PciIds::Html::Users::registerSubmit,
'register-confirm' => \&PciIds::Html::Users::confirmSubmit,
'login' => \&PciIds::Html::Users::loginSubmit,
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() );
+ return HTTPRedirect( $req, $req->uri()."index.html" ) if( $req->uri() eq '/' && ( !defined $args->{'action'} || $args->{'action'} ne 'help' ) );
+ return DECLINED if( $req->uri() =~ /^\/((static)\/|robots.txt|index.html)/ );
my $action = $args->{'action'};
$action = '' unless( defined $action );
my $method = $handlers{$req->method()};