/[smecontribs]/rpms/smeserver-unjunkmgr/contribs8/smeserver-unjunkmgr-2.1_add_panel_to_server-manager.patch
ViewVC logotype

Contents of /rpms/smeserver-unjunkmgr/contribs8/smeserver-unjunkmgr-2.1_add_panel_to_server-manager.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun Apr 6 16:20:55 2014 UTC (10 years, 1 month ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-unjunkmgr-2_1-3_el5_sme, HEAD
push to cvs a patch to solve [SME: 8307]

1 diff -Nur smeserver-unjunkmgr-2.1-old/createlinks smeserver-unjunkmgr-2.1/createlinks
2 --- smeserver-unjunkmgr-2.1-old/createlinks 2014-04-04 17:20:34.382938898 +0200
3 +++ smeserver-unjunkmgr-2.1/createlinks 2014-04-04 17:44:32.393710509 +0200
4 @@ -4,7 +4,12 @@
5
6 # Start and stop links
7
8 -# Panel links
9 +#--------------------------------------------------
10 +# functions for manager panel
11 +#--------------------------------------------------
12 +my $panel = "manager";
13 +
14 +panel_link("unjunkmgr", $panel);
15
16 # Events links
17
18 diff -Nur smeserver-unjunkmgr-2.1-old/root/etc/e-smith/web/functions/unjunkmgr smeserver-unjunkmgr-2.1/root/etc/e-smith/web/functions/unjunkmgr
19 --- smeserver-unjunkmgr-2.1-old/root/etc/e-smith/web/functions/unjunkmgr 1970-01-01 01:00:00.000000000 +0100
20 +++ smeserver-unjunkmgr-2.1/root/etc/e-smith/web/functions/unjunkmgr 2014-04-04 17:37:53.454999896 +0200
21 @@ -0,0 +1,30 @@
22 +#!/usr/bin/perl
23 +#----------------------------------------------------------------------
24 +# heading : Administration
25 +# description : Unjunkmgr
26 +# navigation : 4000 4200
27 +#----------------------------------------------------------------------
28 +
29 +use strict;
30 +use CGI':all';
31 +use CGI::Carp qw(fatalsToBrowser);
32 +
33 +
34 +BEGIN
35 +{
36 + $ENV {'PATH'} = '/bin:/usr/bin:/sbin';
37 + $ENV {'SHELL'} = '/bin/bash';
38 + delete $ENV {'ENV'};
39 + }
40 +
41 +
42 + my $q = new CGI;
43 + my $content="0; url=https://".$ENV {'HTTP_X_FORWARDED_HOST'}."/unjunkmgr";
44 + $q->default_dtd('-//W3C//DTD XHTML 1.0 Transitional//EN');
45 +
46 + print $q->header ('text/html');
47 + print $q->start_html (-head=>meta({-http_equiv=>'refresh', -content=>$content}));
48 +
49 +
50 +
51 + print $q->end_html;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed