X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fedit_host_settings.ml;h=0e2ffded963d08ffd72b73fd76b0460a879d7f6d;hb=f249bda689881753ba729e48cce6ddf84ffeb3c2;hp=61a039e7abb8b20685029f8528bf0f8d838ab6a8;hpb=50f72e5597bef62747f462d26cae836c7c9ee6b9;p=cocanwiki.git diff --git a/scripts/edit_host_settings.ml b/scripts/edit_host_settings.ml index 61a039e..0e2ffde 100644 --- a/scripts/edit_host_settings.ml +++ b/scripts/edit_host_settings.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: edit_host_settings.ml,v 1.3 2004/09/24 16:30:07 rich Exp $ + * $Id: edit_host_settings.ml,v 1.5 2004/10/04 15:19:56 rich Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,6 +41,8 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ = let theme_css = q#param "theme_css" in let feedback_email = q#param "feedback_email" in let mailing_list = q#param_true "mailing_list" in + let search_box = q#param_true "search_box" in + let view_anon = q#param_true "view_anon" in let theme_css = if theme_css = "" then `Null else `String theme_css in let feedback_email = @@ -49,10 +51,12 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ = (* Update the database. *) let sth = dbh#prepare_cached "update hosts set edit_anon = ?, create_account_anon = ?, theme_css = ?, - feedback_email = ?, mailing_list = ? + feedback_email = ?, mailing_list = ?, + search_box = ?, view_anon = ? where id = ?" in sth#execute [`Bool edit_anon; `Bool create_account_anon; - theme_css; feedback_email; `Bool mailing_list; + theme_css; feedback_email; `Bool mailing_list; `Bool search_box; + `Bool view_anon; `Int hostid]; dbh#commit ();