(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: admin.ml,v 1.4 2004/09/08 15:46:53 rich Exp $
+ * $Id: admin.ml,v 1.5 2004/09/09 09:35:34 rich Exp $
*)
open Apache
let template = _get_template "admin/admin.html"
-let run r (q : cgi) (dbh : Dbi.connection) _ _ =
+let run r (q : cgi) (dbh : Dbi.connection) _ _ _ =
(* Select out the alternative hostnames. *)
let sth = dbh#prepare_cached
"select hs.hostid, hs.name from hostnames hs
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_emails.ml,v 1.3 2004/09/07 14:58:34 rich Exp $
+ * $Id: edit_emails.ml,v 1.4 2004/09/09 09:35:35 rich Exp $
*)
open Apache
let split_re = Pcre.regexp "[\\r\\n,;]+"
let email_re = Pcre.regexp "(.*)<(.*)>"
-let run r (q : cgi) (dbh : Dbi.connection) host_stuff _ =
+let run r (q : cgi) (dbh : Dbi.connection) _ host' _ =
let hostid = int_of_string (q#param "hostid") in
if q#param_true "cancel" then (
- let _, hostname, _ = host_stuff in
+ let { hostname = hostname } = host' in
q#redirect ("http://" ^ hostname ^ "/_bin/admin/host.cmo?hostid=" ^
string_of_int hostid);
raise CgiExit
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_emails_form.ml,v 1.3 2004/09/08 15:46:53 rich Exp $
+ * $Id: edit_emails_form.ml,v 1.4 2004/09/09 09:35:35 rich Exp $
*)
open Apache
let template = _get_template "admin/edit_emails_form.html"
-let run r (q : cgi) (dbh : Dbi.connection) _ _ =
+let run r (q : cgi) (dbh : Dbi.connection) _ _ _ =
let hostid = int_of_string (q#param "hostid") in
template#set "id" (string_of_int hostid);
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_host_css.ml,v 1.3 2004/09/07 14:58:34 rich Exp $
+ * $Id: edit_host_css.ml,v 1.4 2004/09/09 09:35:35 rich Exp $
*)
open Apache
open Cocanwiki_ok
open Cocanwiki_strings
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) _ _ _ =
let hostid = int_of_string (q#param "hostid") in
let css = q#param "css" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_host_css_form.ml,v 1.3 2004/09/08 15:46:53 rich Exp $
+ * $Id: edit_host_css_form.ml,v 1.4 2004/09/09 09:35:35 rich Exp $
*)
open Apache
let template = _get_template "admin/edit_host_css_form.html"
-let run r (q : cgi) (dbh : Dbi.connection) _ _ =
+let run r (q : cgi) (dbh : Dbi.connection) _ _ _ =
let hostid = int_of_string (q#param "hostid") in
template#set "id" (string_of_int hostid);
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_hostnames.ml,v 1.3 2004/09/07 14:58:34 rich Exp $
+ * $Id: edit_hostnames.ml,v 1.4 2004/09/09 09:35:35 rich Exp $
*)
open Apache
let split_re = Pcre.regexp "[\\s,;]+"
-let run r (q : cgi) (dbh : Dbi.connection) host_stuff _ =
+let run r (q : cgi) (dbh : Dbi.connection) _ host' _ =
let hostid = int_of_string (q#param "hostid") in
if q#param_true "cancel" then (
- let _, hostname, _ = host_stuff in
+ let { hostname = hostname } = host' in
q#redirect ("http://" ^ hostname ^ "/_bin/admin/host.cmo?hostid=" ^
string_of_int hostid);
raise CgiExit
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_hostnames_form.ml,v 1.3 2004/09/08 15:46:53 rich Exp $
+ * $Id: edit_hostnames_form.ml,v 1.4 2004/09/09 09:35:35 rich Exp $
*)
open Apache
let template = _get_template "admin/edit_hostnames_form.html"
-let run r (q : cgi) (dbh : Dbi.connection) _ _ =
+let run r (q : cgi) (dbh : Dbi.connection) _ _ _ =
let hostid = int_of_string (q#param "hostid") in
template#set "id" (string_of_int hostid);
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: host.ml,v 1.4 2004/09/08 15:46:53 rich Exp $
+ * $Id: host.ml,v 1.5 2004/09/09 09:35:35 rich Exp $
*)
open Apache
let template = _get_template "admin/host.html"
-let run r (q : cgi) (dbh : Dbi.connection) _ _ =
+let run r (q : cgi) (dbh : Dbi.connection) _ _ _ =
let hostid = int_of_string (q#param "hostid") in
template#set "id" (string_of_int hostid);
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: cocanwiki.ml,v 1.4 2004/09/07 16:19:43 rich Exp $
+ * $Id: cocanwiki.ml,v 1.5 2004/09/09 09:35:33 rich Exp $
*)
open Apache
let can_edit edit_anon = test_permission edit_anon CanEdit
let can_manage_users = test_permission false CanManageUsers
+(* The "host object". *)
+type host_t = { hostname : string;
+ edit_anon : bool; }
+
(* Our wrapper around the standard [register_script] function.
*
* The optional ~restrict and ~anonymous parameters work as follows:
failwith ("Hostname ``" ^ hostname ^ "'' not found in " ^
"the hosts/hostnames tables in the database.") in
+ (* Create the host object. *)
+ let host = { hostname = hostname; edit_anon = edit_anon; } in
+
(* Look for the user's cookie, and determine from this the user
* object.
*)
if permitted then (
(* Call the actual CGI script. *)
try
- run r q dbh (hostid, hostname, edit_anon) user
+ run r q dbh hostid host user
with
CgiExit -> ()
) else
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: create.ml,v 1.3 2004/09/08 09:54:28 rich Exp $
+ * $Id: create.ml,v 1.4 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_emailnotify
open Cocanwiki_ok
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
(* Get the page title. *)
let title = q#param "title" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: create_form.ml,v 1.4 2004/09/08 15:46:52 rich Exp $
+ * $Id: create_form.ml,v 1.5 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_template
open Cocanwiki_ok
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let template = get_template dbh hostid "create_form.html" in
(* Get the page title. *)
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: delete_file.ml,v 1.4 2004/09/08 09:54:28 rich Exp $
+ * $Id: delete_file.ml,v 1.5 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_ok
open Cocanwiki_emailnotify
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let id = int_of_string (q#param "id") in
if q#param_true "yes" then (
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: delete_file_form.ml,v 1.5 2004/09/08 15:46:52 rich Exp $
+ * $Id: delete_file_form.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "delete_file_form.html" in
let id = int_of_string (q#param "id") in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: delete_image.ml,v 1.4 2004/09/08 09:54:28 rich Exp $
+ * $Id: delete_image.ml,v 1.5 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_ok
open Cocanwiki_emailnotify
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let id = int_of_string (q#param "id") in
if q#param_true "yes" then (
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: delete_image_form.ml,v 1.5 2004/09/08 15:46:52 rich Exp $
+ * $Id: delete_image_form.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "delete_image_form.html" in
let id = int_of_string (q#param "id") in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: diff.ml,v 1.5 2004/09/08 15:46:52 rich Exp $
+ * $Id: diff.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_template
open Cocanwiki_diff
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "diff.html" in
let page = q#param "page" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit.ml,v 1.6 2004/09/08 15:46:53 rich Exp $
+ * $Id: edit.ml,v 1.7 2004/09/09 09:35:33 rich Exp $
*)
open Apache
* for each section. *)
}
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let template = get_template dbh hostid "edit.html" in
let template_conflict = get_template dbh hostid "edit_conflict.html" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_page_css.ml,v 1.5 2004/09/08 13:09:05 rich Exp $
+ * $Id: edit_page_css.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_emailnotify
open Cocanwiki_strings
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let page = q#param "page" in
let css = q#param "css" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_page_css_form.ml,v 1.4 2004/09/08 15:46:53 rich Exp $
+ * $Id: edit_page_css_form.ml,v 1.5 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "edit_page_css_form.html" in
let page = q#param "page" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_sitemenu.ml,v 1.2 2004/09/08 15:46:53 rich Exp $
+ * $Id: edit_sitemenu.ml,v 1.3 2004/09/09 09:35:33 rich Exp $
*)
open Apache
*)
type model_t = (string * string) list (* label, url *)
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let template = get_template dbh hostid "edit_sitemenu.html" in
(* Workaround bugs in IE, specifically lack of support for <button>
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_user.ml,v 1.1 2004/09/08 12:45:38 rich Exp $
+ * $Id: edit_user.ml,v 1.2 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_strings
open Cocanwiki_ok
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) self =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ self =
let userid = int_of_string (q#param "userid") in
(* Get the user's original name. If we're going to change the
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_user_form.ml,v 1.2 2004/09/08 15:46:53 rich Exp $
+ * $Id: edit_user_form.ml,v 1.3 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_template
open Cocanwiki_date
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "edit_user_form.html" in
let userid = int_of_string (q#param "userid") in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: file.ml,v 1.3 2004/09/07 14:58:34 rich Exp $
+ * $Id: file.ml,v 1.4 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let name = q#param "name" in
let version =
try Some (int_of_string (q#param "version")) with Not_found -> None in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: files.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: files.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "files.html" in
let deleted = q#param_true "deleted" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: forgot_password.ml,v 1.2 2004/09/08 09:13:02 rich Exp $
+ * $Id: forgot_password.ml,v 1.3 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_ok
open Cocanwiki_strings
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let name = trim (q#param "name") in
if name = "" then (
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: forgot_password_form.ml,v 1.2 2004/09/08 15:46:53 rich Exp $
+ * $Id: forgot_password_form.ml,v 1.3 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "forgot_password_form.html" in
q#template template
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: history.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: history.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_template
open Cocanwiki_date
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "history.html" in
let page = q#param "page" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: hoststyle.ml,v 1.2 2004/09/07 13:40:10 rich Exp $
+ * $Id: hoststyle.ml,v 1.3 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
(* Get the CSS. *)
let sth = dbh#prepare_cached "select css from hosts where id = ?" in
sth#execute [`Int hostid];
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: image.ml,v 1.3 2004/09/07 14:58:34 rich Exp $
+ * $Id: image.ml,v 1.4 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let image = q#param "image" in
let is_thumbnail = q#param_true "thumbnail" in
let version =
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: images.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: images.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "images.html" in
let deleted = q#param_true "deleted" in
(* Easy Web Pages (EWP) scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: login.ml,v 1.1 2004/09/07 16:19:43 rich Exp $
+ * $Id: login.ml,v 1.2 2004/09/09 09:35:33 rich Exp $
*)
open Apache
let expires = "Wed, 18-May-2033 04:33:20 GMT"
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let username = q#param "username" in
let password = q#param "password" in
let permanent = try "1" = q#param "permanent" with Not_found -> false in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: login_form.ml,v 1.2 2004/09/08 15:46:53 rich Exp $
+ * $Id: login_form.ml,v 1.3 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_template
open Cocanwiki_strings
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "login_form.html" in
let redirect = try q#param "redirect" with Not_found -> "" in
(* Easy Web Pages (EWP) scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: logout.ml,v 1.1 2004/09/07 16:19:43 rich Exp $
+ * $Id: logout.ml,v 1.2 2004/09/09 09:35:33 rich Exp $
*)
open Apache
let expires = "Sun, 09-Sep-2001 02:46:40 GMT"
-let run r (q : cgi) (dbh : Dbi.connection) _ user =
+let run r (q : cgi) (dbh : Dbi.connection) _ _ user =
(* The logout function removes all of the associated cookies from the
* database. This isn't required, but is nice semantics, and also helps
* to reduce the size of the usercookies table in the database.
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: page.ml,v 1.9 2004/09/08 17:07:24 rich Exp $
+ * $Id: page.ml,v 1.10 2004/09/09 09:35:33 rich Exp $
*)
open Apache
| FPRedirect of string
| FPNotFound
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, edit_anon) user =
+let run r (q : cgi) (dbh : Dbi.connection) hostid {edit_anon=edit_anon} user =
let template_page = get_template dbh hostid "page.html" in
let template_404 = get_template dbh hostid "page_404.html" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: pagestyle.ml,v 1.2 2004/09/07 13:40:10 rich Exp $
+ * $Id: pagestyle.ml,v 1.3 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let page = q#param "page" in
let version =
try Some (int_of_string (q#param "version")) with Not_found -> None in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: preview.ml,v 1.2 2004/09/07 13:40:10 rich Exp $
+ * $Id: preview.ml,v 1.3 2004/09/09 09:35:33 rich Exp $
*
* In case you were wondering, this script is called from the Javascript
* to update the preview <div>. See /_js/editor.js for details.
open Cocanwiki
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let content = q#param "content" in
let xhtml = Wikilib.xhtml_of_content dbh hostid content in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: recent.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: recent.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
let max_age = "3 months"
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "recent.html" in
let sth =
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: restore.ml,v 1.5 2004/09/08 13:09:05 rich Exp $
+ * $Id: restore.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_diff
open Cocanwiki_emailnotify
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let version = int_of_string (q#param "version") in
let page = q#param "page" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: restore_form.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: restore_form.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_ok
open Cocanwiki_diff
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "restore_form.html" in
(* Parameters. *)
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: search.ml,v 1.2 2004/09/07 13:40:10 rich Exp $
+ * $Id: search.ml,v 1.3 2004/09/09 09:35:34 rich Exp $
*)
open Apache
let search : ('a -> 'b -> 'c, unit, string, string) format4 =
"http://www.google.com/search?q=site:%s+%s"
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let query = q#param "q" in
let query = sprintf search (escape_url hostname) (escape_url query) in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: signup.ml,v 1.3 2004/09/08 12:45:38 rich Exp $
+ * $Id: signup.ml,v 1.4 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki_ok
open Cocanwiki_strings
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
(* Verify that we're allowed to create accounts anonymously
* on this host.
*)
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: sitemap.ml,v 1.4 2004/09/08 15:46:53 rich Exp $
+ * $Id: sitemap.ml,v 1.5 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki_date
open Cocanwiki_strings
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let template = get_template dbh hostid "sitemap.html" in
(* Pull out all the current pages, and a bit of content from each. *)
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: undelete_file.ml,v 1.4 2004/09/08 09:54:28 rich Exp $
+ * $Id: undelete_file.ml,v 1.5 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki_template
open Cocanwiki_ok
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let id = int_of_string (q#param "id") in
if q#param_true "yes" then (
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: undelete_file_form.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: undelete_file_form.ml,v 1.6 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "undelete_file_form.html" in
let id = int_of_string (q#param "id") in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: undelete_image.ml,v 1.4 2004/09/08 09:54:28 rich Exp $
+ * $Id: undelete_image.ml,v 1.5 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki_template
open Cocanwiki_ok
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let id = int_of_string (q#param "id") in
if q#param_true "yes" then (
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: undelete_image_form.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: undelete_image_form.ml,v 1.6 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "undelete_image_form.html" in
let id = int_of_string (q#param "id") in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: upload_file.ml,v 1.4 2004/09/08 09:54:28 rich Exp $
+ * $Id: upload_file.ml,v 1.5 2004/09/09 09:35:34 rich Exp $
*)
open Apache
(* Valid file names. *)
let file_ok_re = Pcre.regexp "^[a-z0-9][-._a-z0-9]*$"
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let name = q#param "name" in
let title = q#param "title" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: upload_file_form.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: upload_file_form.ml,v 1.6 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "upload_file_form.html" in
q#template template
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: upload_image.ml,v 1.4 2004/09/08 09:54:28 rich Exp $
+ * $Id: upload_image.ml,v 1.5 2004/09/09 09:35:34 rich Exp $
*)
open Apache
(* Valid image names. *)
let image_ok_re = Pcre.regexp "^[a-z0-9][_a-z0-9]*\\.(jpg|jpeg|gif|ico|png)$"
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
let name = q#param "name" in
let alt = q#param "alt" in
let title = q#param "title" in
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: upload_image_form.ml,v 1.5 2004/09/08 15:46:53 rich Exp $
+ * $Id: upload_image_form.ml,v 1.6 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki
open Cocanwiki_template
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "upload_image_form.html" in
q#template template
(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: users.ml,v 1.2 2004/09/08 15:46:53 rich Exp $
+ * $Id: users.ml,v 1.3 2004/09/09 09:35:34 rich Exp $
*)
open Apache
open Cocanwiki_template
open Cocanwiki_date
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
let template = get_template dbh hostid "users.html" in
let sth =
<title>This page does not exist yet</title>
<meta name="robots" content="noindex,nofollow"/>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/create.css" type="text/css" title="Standard"/>
</head><body>
</form>
+<ul id="topmenu" class="menu">
+<li class="first"> <a href="/">Home page</a> </li>
+<li> <a href="/_sitemap">Sitemap</a> </li>
+<li> <a href="/_recent">Recent changes</a> </li>
+</ul>
+
+<ul id="bottommenu" class="menu">
+<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
+<li> <a href="/_sitemap">Sitemap</a> </li>
+</ul>
+
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Delete file</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Delete file</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Delete image</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Delete image</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Diff</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Diff</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Edit stylesheet for this page</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Edit stylesheet for this page</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<title>Edit site menu</title>
<meta name="robots" content="noindex,nofollow"/>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/editor.css" type="text/css" title="Standard"/>
</head><body>
</form>
+<ul id="topmenu" class="menu">
+<li class="first"> <a href="/">Home page</a> </li>
+<li> <a href="/_sitemap">Sitemap</a> </li>
+<li> <a href="/_recent">Recent changes</a> </li>
+</ul>
+
+<ul id="bottommenu" class="menu">
+<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
+<li> <a href="/_sitemap">Sitemap</a> </li>
+</ul>
+
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Files</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/files.css" type="text/css" title="Standard"/>
</head><body>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<title>Forgotten your password?</title>
<meta name="description" content="Log in to this site for extra features." />
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/login.css" type="text/css" title="Standard"/>
</head><body>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<title>Versions of this page</title>
<meta name="robots" content="noindex,nofollow"/>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Versions of this page</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Images</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/images.css" type="text/css" title="Standard"/>
</head><body>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<title>Create an account or log in</title>
<meta name="description" content="Log in to this site for extra features." />
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/login.css" type="text/css" title="Standard"/>
</head><body>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
::if(is_old_version)::<meta name="robots" content="noindex,nofollow"/>::end::
<meta name="description" content="::description_html_tag::" />
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
::if(has_host_css)::<link rel="stylesheet" href="/_global.css" type="text/css" title="Standard"/>::end::
::if(has_page_css)::<link rel="stylesheet" href="/::page_html_tag::/styles.css::if(is_old_version)::?version=::old_version::::end::" type="text/css" title="Standard"/>::end::
</head><body>
<ul id="footer" class="menu">
<li class="first"> Last change: ::last_modified_date_html:: </li>
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li> <a href="/copyright">Copyright © ::year::</a> </li>
<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
<title>Page not found</title>
<meta name="robots" content="noindex,nofollow"/>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
::if(has_host_css)::<link rel="stylesheet" href="/_global.css" type="text/css" title="Standard"/>::end::
</head><body>
<ul id="topmenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
<li> <a href="/_sitemap">Sitemap</a> </li>
-::if(can_edit)::
<li> <a href="/_recent">Recent changes</a> </li>
-::end::
</ul>
<ul id="bottommenu" class="menu">
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<title>Recent changes</title>
<meta name="robots" content="noindex,nofollow"/>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Recent changes</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Restore page</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Restore page</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Sitemap</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Sitemap</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a></li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Restore file</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Restore file</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Restore image</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
</head><body>
<h1>Restore image</h1>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Upload file</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/create.css" type="text/css" title="Standard"/>
</head><body>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Upload image</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/create.css" type="text/css" title="Standard"/>
</head><body>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>
<head>
<title>Users</title>
<meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
<link rel="stylesheet" href="/_css/users.css" type="text/css" title="Standard"/>
</head><body>
<ul id="bottommenu" class="menu">
<li class="first"> <a href="/">Home page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent changes</a> </li>
</ul>
<hr/>
<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright © 2004</a> </li>
+<li class="first"> <a href="/copyright">Copyright © ::year::</a> </li>
+<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
</ul>
</body>