summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-12-04 18:18:26 +0000
committerDaouda Lo <daouda@mandriva.com>2003-12-04 18:18:26 +0000
commitfb029234936ac3e8f9c6f03ee5ee5587785b1b05 (patch)
tree053f2563f0321fe5dda779c7bc6468e75398bc2d
parentbc1afc9a6cc141585592c0f90ea4950757f6c2ba (diff)
downloadcontrol-center-fb029234936ac3e8f9c6f03ee5ee5587785b1b05.tar
control-center-fb029234936ac3e8f9c6f03ee5ee5587785b1b05.tar.gz
control-center-fb029234936ac3e8f9c6f03ee5ee5587785b1b05.tar.bz2
control-center-fb029234936ac3e8f9c6f03ee5ee5587785b1b05.tar.xz
control-center-fb029234936ac3e8f9c6f03ee5ee5587785b1b05.zip
- added mdkwebadmin.pl script for online administration
-rwxr-xr-xcontrol-center14
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") ] )
)
]
]),