aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-03-08 18:16:01 +0100
committerAngelo Naselli <anaselli@linux.it>2014-03-08 18:16:01 +0100
commit6e2f82f57449d6b1c788f1290d281a776c70af5c (patch)
tree286aa26ad84ef519726b7fcfc8d02dcb59640ffb /lib
parentb7a2fb5401c2fb44574b78598e7eefbfe6645119 (diff)
downloadmanatools-6e2f82f57449d6b1c788f1290d281a776c70af5c.tar
manatools-6e2f82f57449d6b1c788f1290d281a776c70af5c.tar.gz
manatools-6e2f82f57449d6b1c788f1290d281a776c70af5c.tar.bz2
manatools-6e2f82f57449d6b1c788f1290d281a776c70af5c.tar.xz
manatools-6e2f82f57449d6b1c788f1290d281a776c70af5c.zip
Removed old log viewer (no more syslog)
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/LogViewer/init.pm31
-rw-r--r--lib/AdminPanel/Module/LogViewer.pm1
2 files changed, 0 insertions, 32 deletions
diff --git a/lib/AdminPanel/LogViewer/init.pm b/lib/AdminPanel/LogViewer/init.pm
deleted file mode 100644
index 1c961712..00000000
--- a/lib/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;
diff --git a/lib/AdminPanel/Module/LogViewer.pm b/lib/AdminPanel/Module/LogViewer.pm
index dacb98fe..7b9b5a11 100644
--- a/lib/AdminPanel/Module/LogViewer.pm
+++ b/lib/AdminPanel/Module/LogViewer.pm
@@ -479,7 +479,6 @@ $DB::single = 1;
my $log = AdminPanel::Shared::JournalCtl->new(%{$log_opts});
my $all = $log->getLog();
-print " _search \n";
return $all;
}