X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fadmin%2Fhost.ml;h=4cec09ca97c9f4e417ff13a22ecefae5c225a1b2;hb=89e8d5757ca111d16ce3dfcc1ce4f2c00a119c85;hp=732e5d01a0963b9220c4aeb1d0341743e241c58b;hpb=11b93485a29771f4d826c50d9efc6d3607dfa50f;p=cocanwiki.git diff --git a/scripts/admin/host.ml b/scripts/admin/host.ml index 732e5d0..4cec09c 100644 --- a/scripts/admin/host.ml +++ b/scripts/admin/host.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: host.ml,v 1.6 2004/09/09 12:21:22 rich Exp $ + * $Id: host.ml,v 1.7 2004/10/21 19:54:29 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 @@ -92,21 +92,6 @@ let run r (q : cgi) (dbh : Dbi.connection) _ _ _ = | _ -> assert false) in template#table "hostnames" table; - (* Pull out any email notifications. *) - let sth = dbh#prepare_cached "select email, name from email_notify - where hostid = ?" in - sth#execute [`Int hostid]; - - let table = sth#map (function - [`String email; `Null] -> - [ "email", Template.VarString email; - "name", Template.VarString "" ] - | [ `String email; `String name] -> - [ "email", Template.VarString email; - "name", Template.VarString name ] - | _ -> assert false) in - template#table "emails" table; - q#template template let () =