Added machine-parsable links database, per-page links and page source.
[cocanwiki.git] / scripts / admin / host.ml
index 732e5d0..4cec09c 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: 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 () =