X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Frecent.ml;h=4af4886a23f262723913db2c46550ca036e9056d;hb=ca4d4140c5ab4b351dd5483337cf61e8e9fa94e6;hp=39526caabb846ccd23d0455d1d5de41952426cee;hpb=3062d573a7617339324c23cdd4755f8f04956b92;p=cocanwiki.git diff --git a/scripts/recent.ml b/scripts/recent.ml index 39526ca..4af4886 100644 --- a/scripts/recent.ml +++ b/scripts/recent.ml @@ -1,7 +1,7 @@ (* COCANWIKI scripts. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: recent.ml,v 1.1 2004/09/07 10:14:09 rich Exp $ + * $Id: recent.ml,v 1.4 2004/09/08 09:54:28 rich Exp $ *) open Apache @@ -10,12 +10,14 @@ open Cgi open Printf open Cocanwiki +open Cocanwiki_template +open Cocanwiki_date 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 @@ -65,4 +67,4 @@ let run r (q : cgi) (dbh : Dbi.connection) (hostid, _) _ = q#template template let () = - register_script run + register_script ~restrict:[CanEdit] run