aboutsummaryrefslogtreecommitdiffstats
path: root/AdminPanel/LogViewer
diff options
context:
space:
mode:
Diffstat (limited to 'AdminPanel/LogViewer')
-rw-r--r--AdminPanel/LogViewer/init.pm31
1 files changed, 0 insertions, 31 deletions
diff --git a/AdminPanel/LogViewer/init.pm b/AdminPanel/LogViewer/init.pm
deleted file mode 100644
index 1c96171..0000000
--- a/AdminPanel/LogViewer/init.pm
+++ /dev/null
@@ -1,31 +0,0 @@
-package AdminPanel::LogViewer::init;
-
-use strict;
-use warnings;
-use diagnostics;
-use English;
-use lib qw(/usr/lib/libDrakX);
-use common;
-use AdminPanel::Shared;
-use base qw(Exporter);
-
-our @EXPORT = qw(warn_about_user_mode
- interactive_msg);
-
-sub interactive_msg {
- my ($title, $contents) = @_;
- return ask_YesOrNo($title, $contents);
-}
-
-sub warn_about_user_mode() {
- my $title = N("Running in user mode");
- my $msg = N("You are launching this program as a normal user.\n".
- "You will not be able to read system logs which you do not have rights to,\n".
- "but you may still browse all the others.");
- if(($EUID != 0) and (!interactive_msg($title, $msg))) {
- return 0;
- }
- return 1;
-}
-
-1;