Logging in and logging out.
[cocanwiki.git] / scripts / sitemap.ml
index 154f2f0..ecf0d81 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI scripts.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: sitemap.ml,v 1.1 2004/09/07 10:14:09 rich Exp $
+ * $Id: sitemap.ml,v 1.3 2004/09/07 14:58:34 rich Exp $
  *)
 
 open Apache
@@ -9,13 +9,14 @@ open Registry
 open Cgi
 open Printf
 
-open Merjisforwiki
-
 open Cocanwiki
+open Cocanwiki_template
+open Cocanwiki_date
+open Cocanwiki_strings
 
 let template = get_template "sitemap.html"
 
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname) _ =
+let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
   (* Pull out all the current pages, and a bit of content from each. *)
   let sth = dbh#prepare_cached "select p.url, p.url = 'index',
                                        p.title, p.description,