diff options
| author | Matteo Pasotti <matteo@mageia.org> | 2013-01-09 17:41:32 +0000 |
|---|---|---|
| committer | Matteo Pasotti <matteo@mageia.org> | 2013-01-09 17:41:32 +0000 |
| commit | 2e0f9b70beecb7bdd27e74088368936cdb718c72 (patch) | |
| tree | 7b58619637be6669478b790c0acd93d7ee9f9f09 /modules | |
| parent | 5b97980dd59e47ebf1d6f8ca37b7cafb48410bf6 (diff) | |
| download | manatools-2e0f9b70beecb7bdd27e74088368936cdb718c72.tar manatools-2e0f9b70beecb7bdd27e74088368936cdb718c72.tar.gz manatools-2e0f9b70beecb7bdd27e74088368936cdb718c72.tar.bz2 manatools-2e0f9b70beecb7bdd27e74088368936cdb718c72.tar.xz manatools-2e0f9b70beecb7bdd27e74088368936cdb718c72.zip | |
- added LogViewer namespace
- added init module for logviewer
- Rpmdragora/init.pm: fixed warn_about_user_mode message alignment
- logviewer.pl: added call to LogViewer::warn_about_user_mode
Diffstat (limited to 'modules')
| -rwxr-xr-x | modules/logviewer/logviewer.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/logviewer/logviewer.pl b/modules/logviewer/logviewer.pl index c0c0e705..79acc7ad 100755 --- a/modules/logviewer/logviewer.pl +++ b/modules/logviewer/logviewer.pl @@ -33,6 +33,7 @@ use yui; #use AdminPanel::Privileges; use AdminPanel::Shared; +use AdminPanel::LogViewer::init; ### TODO icon my $wm_icon = "/usr/share/mcc/themes/default/logdrake-mdk.png"; @@ -71,6 +72,11 @@ my $optFactory = yui::YUI::optionalWidgetFactory; ### MAIN DIALOG ### my $my_win = $factory->createMainDialog; +if(!warn_about_user_mode()) { + quit(); + exit(0); +} + my %files = ( "auth" => { file => "/var/log/auth.log", desc => N("_:this is the auth.log log file\nAuthentication") }, |
