(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
*
* 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
*
* 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
* page isn't a matter of just doing 'select from_url from links ...'.
* We also look at pages which redirect to this URL (for redirections
* of degrees 1 through 4 = max_redirect).
* page isn't a matter of just doing 'select from_url from links ...'.
* We also look at pages which redirect to this URL (for redirections
* of degrees 1 through 4 = max_redirect).
*)
let what_links_here (dbh : Dbi.connection) hostid page =
(* Build up the complete list of URLs which redirect to the target
*)
let what_links_here (dbh : Dbi.connection) hostid page =
(* Build up the complete list of URLs which redirect to the target