summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-03-12 22:27:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:21 -0500
commitd245d5c0171c918f2d691160aecde43608bf2264 (patch)
tree7aca4be463704aa99faf289c20527ce6ffbaf730 /source3/web
parent06f7ee5d4b9d2f94c0178a0c979f50fa2f96b905 (diff)
downloadsamba-d245d5c0171c918f2d691160aecde43608bf2264.tar.gz
r14255: Revert r14204 which was horribly broken.
(This used to be commit 950ed28f9f3f57dc449bd3bd6e7be7acb1e3d26d)
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/swat.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 3800a1db7fd..cbf5ba89891 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -275,6 +275,16 @@ static void show_parameter(int snum, struct parm_struct *parm)
_("Set Default"), make_parm_name(parm->label),fix_backslash((char *)(parm->def.svalue)));
break;
+ case P_GSTRING:
+ case P_UGSTRING:
+ push_utf8_allocate(&utf8_s1, (char *)ptr);
+ printf("<input type=text size=40 name=\"parm_%s\" value=\"%s\">",
+ make_parm_name(parm->label), fix_quotes(utf8_s1));
+ SAFE_FREE(utf8_s1);
+ printf("<input type=button value=\"%s\" onClick=\"swatform.parm_%s.value=\'%s\'\">",
+ _("Set Default"), make_parm_name(parm->label),fix_backslash((char *)(parm->def.svalue)));
+ break;
+
case P_BOOL:
printf("<select name=\"parm_%s\">",make_parm_name(parm->label));
printf("<option %s>Yes", (*(BOOL *)ptr)?"selected":"");
@@ -368,6 +378,11 @@ static void show_parameters(int snum, int allparameters, unsigned int parm_filte
if (!strcmp(*(char **)ptr,(char *)(parm->def.svalue))) continue;
break;
+ case P_GSTRING:
+ case P_UGSTRING:
+ if (!strcmp((char *)ptr,(char *)(parm->def.svalue))) continue;
+ break;
+
case P_BOOL:
case P_BOOLREV:
if (*(BOOL *)ptr == (BOOL)(parm->def.bvalue)) continue;