Support for users, roles, restrictions.
[cocanwiki.git] / scripts / recent.ml
index 39526ca..a1b53be 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI scripts.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: recent.ml,v 1.1 2004/09/07 10:14:09 rich Exp $
+ * $Id: recent.ml,v 1.2 2004/09/07 13:40:10 rich Exp $
  *)
 
 open Apache
@@ -10,12 +10,13 @@ open Cgi
 open Printf
 
 open Cocanwiki
+open Cocanwiki_template
 
 let template = get_template "recent.html"
 
 let max_age = "3 months"
 
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
   let sth =
     dbh#prepare_cached
       "select id, url, url_deleted, title, last_modified_date, logged_ip