diff options
-rwxr-xr-x | control-center | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/control-center b/control-center index a6e5c45c..5a51db3c 100755 --- a/control-center +++ b/control-center @@ -91,6 +91,7 @@ my $still_in_splash_screen = 1; $::isWiz = -e "/usr/sbin/drakwizard"; $::isRpmDrake = -e "/usr/sbin/rpmdrake"; +$::isWebAdmin = -e "/usr/bin/kdeinit"; # { key => [ log_exp, binary, gtkplug?, description ] } # { key => [ log_exp, [ binary, win_nb ], gtkplug?, description ] } @@ -245,6 +246,19 @@ my @tree = [ "Time wizard", "ntp", 'ntp_server-mdk', N("The Time wizard will help you to set the time of your server synchronized with an external time server") ], [ "Web wizard", "apache2", 'web_server-mdk', N("The Web wizard will help you configuring the Web Server for your network") ] ) + ) + ] + ]), + if_($::isWebAdmin, + [ N("Online Administration"), 'net-mdk', + [ + (map { + my ($id, $icon, $op, $description) = @$_; + $exec_hash->{$id} = [ "mdkwebadmin", "$bindir/mdkwebadmin.pl $op", -1, $description ]; + [ $id, $icon ]; + } (# [ id, wizard file name, icon, description ] + [ "Local Admin", 'XFdrake-mdk', '--direct', -e "/usr/bin/webmin" ? N("Configure the local machine via web interface") : N("You don't seem to have webmin intalled. Local config is disabled") ], + [ "Remote Admin", 'drakconnect-mdk', '--link', N("Click here if you want to configure a remote box via Web interface") ] ) ) ] ]), |