# Apache configuration for COCANWIKI.
-# $Id: cocanwiki.conf,v 1.13 2004/10/14 15:57:15 rich Exp $
+# $Id: cocanwiki.conf,v 1.14 2004/10/15 12:47:17 rich Exp $
# Uncomment the following lines if necessary. You will probably need
# to adjust the paths to reflect where cocanwiki is really installed.
RewriteRule ^/_global.css$ /_bin/hoststyle.cmo [PT,L,QSA]
RewriteRule ^/_images$ /_bin/images.cmo [PT,L,QSA]
RewriteRule ^/_invite$ /_bin/invite_user_confirm_form.cmo [PT,L,QSA]
-RewriteRule ^/_login$ /_bin/login_form.cmo [PT,L]
+RewriteRule ^/_login$ /_bin/login_form.cmo [PT,L,QSA]
RewriteRule ^/_logout$ /_bin/logout.cmo [PT,L,QSA]
RewriteRule ^/_mailing_list.csv$ /_bin/mailing_list_view.cmo?csv=1 [PT,L]
RewriteRule ^/_ml_confirm$ /_bin/mailing_list_confirm.cmo [PT,L,QSA]
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: login_form.ml,v 1.4 2004/09/09 12:21:22 rich Exp $
+ * $Id: login_form.ml,v 1.5 2004/10/15 12:47:18 rich Exp $
*
* 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
template#set "redirect" redirect
);
+ let username = try q#param "username" with Not_found -> "" in
+ template#set "username" username;
+
let sth = dbh#prepare_cached "select create_account_anon from hosts
where id = ?" in
sth#execute [`Int hostid];