X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fsitemap.ml;h=ecf0d81d0641af4d2ada46ae6fa249c736fe56e3;hb=a9168cad656af034b671c9dea53057845e2196c9;hp=154f2f06af4e50f1a2bb81345c786f1ded709af8;hpb=3062d573a7617339324c23cdd4755f8f04956b92;p=cocanwiki.git diff --git a/scripts/sitemap.ml b/scripts/sitemap.ml index 154f2f0..ecf0d81 100644 --- a/scripts/sitemap.ml +++ b/scripts/sitemap.ml @@ -1,7 +1,7 @@ (* COCANWIKI scripts. * Written by Richard W.M. Jones . * 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,