/[BackupPC]/upstream/2.1.0/lib/BackupPC/CGI/AdminOptions.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /upstream/2.1.0/lib/BackupPC/CGI/AdminOptions.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations)
Wed Jun 22 19:12:04 2005 UTC (18 years, 11 months ago) by dpavlin
File size: 1632 byte(s)
import of version 2.1.0

1 dpavlin 1 #============================================================= -*-perl-*-
2     #
3     # BackupPC::CGI::AdminOptions package
4     #
5     # DESCRIPTION
6     #
7     # This module implements the AdminOptions action for the CGI interface.
8     #
9     # AUTHOR
10     # Craig Barratt <cbarratt@users.sourceforge.net>
11     #
12     # COPYRIGHT
13     # Copyright (C) 2003 Craig Barratt
14     #
15     # This program is free software; you can redistribute it and/or modify
16     # it under the terms of the GNU General Public License as published by
17     # the Free Software Foundation; either version 2 of the License, or
18     # (at your option) any later version.
19     #
20     # This program is distributed in the hope that it will be useful,
21     # but WITHOUT ANY WARRANTY; without even the implied warranty of
22     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23     # GNU General Public License for more details.
24     #
25     # You should have received a copy of the GNU General Public License
26     # along with this program; if not, write to the Free Software
27     # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28     #
29     #========================================================================
30     #
31     # Version 2.1.0, released 20 Jun 2004.
32     #
33     # See http://backuppc.sourceforge.net.
34     #
35     #========================================================================
36    
37     package BackupPC::CGI::AdminOptions;
38    
39     use strict;
40     use BackupPC::CGI::Lib qw(:all);
41    
42     sub action
43     {
44     unless ( CheckPermission() ) {
45     ErrorExit($Lang->{Only_privileged_users_can_view_admin_options});
46     }
47     my $content = eval("qq{$Lang->{Admin_Options_Page}}");
48     Header(eval("qq{$Lang->{H_Admin_Options}}"), $content);
49     Trailer();
50     }
51    
52     1;

  ViewVC Help
Powered by ViewVC 1.1.26