Added machine-parsable links database, per-page links and page source.
[cocanwiki.git] / scripts / edit_host_settings.ml
index fd85e17..135bd30 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_host_settings.ml,v 1.4 2004/09/27 16:21:09 rich Exp $
+ * $Id: edit_host_settings.ml,v 1.6 2004/10/10 16:14:43 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
@@ -42,6 +42,8 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
   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 navigation = q#param_true "navigation" 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 =
@@ -51,10 +53,11 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
   let sth = dbh#prepare_cached "update hosts set edit_anon = ?,
                                   create_account_anon = ?, theme_css = ?,
                                   feedback_email = ?, mailing_list = ?,
-                                  search_box = ?
+                                  search_box = ?, navigation = ?, view_anon = ?
                                 where id = ?" in
   sth#execute [`Bool edit_anon; `Bool create_account_anon;
               theme_css; feedback_email; `Bool mailing_list; `Bool search_box;
+              `Bool navigation; `Bool view_anon;
               `Int hostid];
 
   dbh#commit ();