1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-sme7admin-1.1.0/root/etc/e-smith/web/functions/sme7admin mezzanine_patched_smeserver-sme7admin-1.1.0/root/etc/e-smith/web/functions/sme7admin |
2 |
|
|
--- smeserver-sme7admin-1.1.0/root/etc/e-smith/web/functions/sme7admin 2008-08-13 11:22:29.000000000 +0200 |
3 |
|
|
+++ mezzanine_patched_smeserver-sme7admin-1.1.0/root/etc/e-smith/web/functions/sme7admin 2008-08-13 11:22:26.000000000 +0200 |
4 |
|
|
@@ -597,6 +597,12 @@ |
5 |
|
|
{ |
6 |
|
|
print esmith::cgi::genTextRow($q,$q->p(gettext("Les e-mails de statut ont ete desactives.\n"))); |
7 |
|
|
} |
8 |
|
|
+ if ($modified){ |
9 |
|
|
+ foreach my $key (keys(%params)) |
10 |
|
|
+ { |
11 |
|
|
+ $sme7admindb->set_prop($key,$q->param($key)); |
12 |
|
|
+ } |
13 |
|
|
+ } |
14 |
|
|
} |
15 |
|
|
else |
16 |
|
|
#cas 2 :) |
17 |
|
|
@@ -613,17 +619,14 @@ |
18 |
|
|
{ |
19 |
|
|
#on applique la nouvelle valeur |
20 |
|
|
$params{$q->param('alert')}=$q->param("$key"); |
21 |
|
|
- } |
22 |
|
|
+ } |
23 |
|
|
+ $sme7admindb->set_prop($key,$q->param($key)) if ($modified); |
24 |
|
|
} |
25 |
|
|
|
26 |
|
|
if ($verifok) |
27 |
|
|
{ |
28 |
|
|
if ($modified) |
29 |
|
|
{ |
30 |
|
|
- foreach my $key (keys(%params)) |
31 |
|
|
- { |
32 |
|
|
- $sme7admindb->set_prop($key,$q->param($key)); |
33 |
|
|
- } |
34 |
|
|
|
35 |
|
|
#si un param a ete change, on notifie le demon avec un -SIGHUP |
36 |
|
|
`pkill -SIGHUP sme7admind`; |