From 240d80537fb60d137f6e7e9d8959fde4602f9fc2 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 9 Oct 2002 12:19:42 +0000 Subject: [PATCH] added support for unload and reload of predefined stylesheets --- .../init.d/loadPredefinedStylesheets.pl | 48 ++++++++++++++----- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/helm/scripts/init.d/loadPredefinedStylesheets.pl b/helm/scripts/init.d/loadPredefinedStylesheets.pl index 387a6fc2c..bf04ef4fb 100755 --- a/helm/scripts/init.d/loadPredefinedStylesheets.pl +++ b/helm/scripts/init.d/loadPredefinedStylesheets.pl @@ -1,12 +1,18 @@ #!/usr/bin/perl -w use strict; -my $confile = $ENV{"UWOBO_PANEL_CONF"} || die "UWOBO_PANEL_CONF not defined"; - use LWP::UserAgent; use URI::Escape; -sub getPredefinedStylesheets () { +my $usage = <new(); - my $response = $agent->get($request_url); - print $response->as_string(); -# print "$request_url\n"; + +} elsif ($action eq "unload") { # unload predefined stylesheets + $request_url = $uwobo_url . "remove?keys=" . join(',', keys %styles); + +} elsif ($action eq "reload") { # reload predefined stylesheets + $request_url = $uwobo_url . "reload?keys=" . join(',', keys %styles); + +} else { # unknown action + die "Unknown action '$action'"; } -main(); +my $agent = LWP::UserAgent->new(); +my $response = $agent->get($request_url); +print $response->as_string(); +# print "$request_url\n"; -- 2.39.2