X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=cgi-bin%2FBackupPC_Admin;h=8dc2091b774b8f4b3466057d01e3113c609c16ae;hp=c99ba4c6c85195de7470976805cd84ccdb635be2;hb=a7e968ce327855f2ba2624ca8517069a936c9b5b;hpb=329e870f56fb6572fa697998d33676588034c149 diff --git a/cgi-bin/BackupPC_Admin b/cgi-bin/BackupPC_Admin index c99ba4c..8dc2091 100755 --- a/cgi-bin/BackupPC_Admin +++ b/cgi-bin/BackupPC_Admin @@ -61,6 +61,7 @@ my %ActionDispatch = ( $Lang->{Start_Incr_Backup} => "StartStopBackup", $Lang->{Start_Full_Backup} => "StartStopBackup", $Lang->{Stop_Dequeue_Backup} => "StartStopBackup", + $Lang->{Stop_Dequeue_Archive} => "StartStopBackup", "queue" => "Queue", "view" => "View", "LOGlist" => "LOGlist", @@ -72,12 +73,21 @@ my %ActionDispatch = ( "hostInfo" => "HostInfo", "generalInfo" => "GeneralInfo", "restoreInfo" => "RestoreInfo", + "archiveInfo" => "ArchiveInfo", + $Lang->{Start_Archive} => "Archive", + "Archive" => "Archive", + "Reload" => "ReloadServer", + "startServer" => "StartServer", + "Stop" => "StopServer", + "adminOpts" => "AdminOptions", ); # # Set default actions, then call sub handler # $In{action} ||= "hostInfo" if ( defined($In{host}) ); +## rk default non admin users to pc summary for their hosts +$In{action} = "summary" if ( !defined($ActionDispatch{$In{action}}) && !CheckPermission()); $In{action} = "generalInfo" if ( !defined($ActionDispatch{$In{action}}) ); my $action = $ActionDispatch{$In{action}}; require "BackupPC/CGI/$action.pm"