(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: mailing_list_confirm.ml,v 1.2 2004/09/24 16:45:02 rich Exp $
+ * $Id: mailing_list_confirm.ml,v 1.4 2005/11/24 14:54:12 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
with
Not_found ->
error ~close_button:true ~title:"Email already confirmed"
- q "It looks like that email address has already been confirmed.";
+ dbh hostid q
+ "It looks like that email address has already been confirmed.";
return () in
(* Update the database. *)
(* Confirmed. *)
let buttons = [ ok_button "/" ] in
ok ~buttons ~title:"Confirmed"
- q ("Your email address has been confirmed. " ^
- "You are now on our mailing list.")
+ dbh hostid q ("Your email address has been confirmed. " ^
+ "You are now on our mailing list.")
let () =
- register_script run
+ register_script ~restrict:[CanView] run