June 3rd, 2002

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Mon Jun 3 21:39:02 UTC 2002

Modified Files:
---------------
livejournal/bin: cvsreport.pl
livejournal/doc/raw/lj.book/install: general_setup.xml
Added Files:
------------
livejournal/cvs: multicvs.conf
Removed Files:
-------------
livejournal/cgi-bin/Apache: BML.pm
livejournal/doc/raw/int: bml-notes.txt

Log Message:
------------
change cvsreport.pl to be a wrapper around the rewritten version
"multicvs.pl" now in the 'wcmtools' CVS repository.

(wcmtools = website creation/management ... generally useful things.)

remove BML and docs, since those are now in the 'bml' CVS repository,
since a BML 1.0 release will be coming soon, and other sites may want
to use BML.

modify general_setup.xml to say how to get at stuff in all these new
CVS repositories.

add cvs/multicvs.conf, which is required by multicvs.pl, and says how
all the different CVS directories merge together, where, and in what
order.


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 livejournal/bin/cvsreport.pl
http://cvs.livejournal.org/browse.cgi/livejournal/bin/cvsreport.pl.diff?r1=1.16&r2=1.17
cvs rdiff -r1.35 -r0 livejournal/cgi-bin/Apache/BML.pm
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/Apache/BML.pm.diff?r1=1.35&r2=0
cvs rdiff -r0 -r1.1 livejournal/cvs/multicvs.conf
http://cvs.livejournal.org/browse.cgi/livejournal/cvs/multicvs.conf.diff?r1=0&r2=1.1
cvs rdiff -r1.1 -r0 livejournal/doc/raw/int/bml-notes.txt
http://cvs.livejournal.org/browse.cgi/livejournal/doc/raw/int/bml-notes.txt.diff?r1=1.1&r2=0
cvs rdiff -r1.3 -r1.4 livejournal/doc/raw/lj.book/install/general_setup.xml
http://cvs.livejournal.org/browse.cgi/livejournal/doc/raw/lj.book/install/general_setup.xml.diff?r1=1.3&r2=1.4

ljcom

Module Name: ljcom
Committed By: bradfitz
Date: Mon Jun 3 22:06:31 UTC 2002

Modified Files:
---------------
ljcom: .forward .procmailrc

Log Message:
------------
whoa, didn't think we had any freebsd-isms in the code anymore


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 ljcom/.forward ljcom/.procmailrc
http://cvs.livejournal.org/browse.cgi/ljcom/.forward.diff?r1=1.1&r2=1.2
http://cvs.livejournal.org/browse.cgi/ljcom/.procmailrc.diff?r1=1.1&r2=1.2

ljcom

Module Name: ljcom
Committed By: bradfitz
Date: Mon Jun 3 23:09:39 UTC 2002

Modified Files:
---------------
ljcom/cgi-bin: ljconfig-local.pl
ljcom/cgi-bin/bml/scheme/dystopia: generic.look
ljcom/htdocs: 500.html index.bml
ljcom/htdocs/inc: email-welcome support-currentproblems support-links
ljcom/htdocs/paidaccounts: pp_notify.bml

Log Message:
------------
I tried to test it thoroughly, but in many cases (old BML schemes,
parts of the site that are out of order such as topics, or not set up
on my goathack such as the directory etc.) this wasn't fully possible.

Here's what it does:
- removes LJ::self_link() from ljlib.pl and makes all source files use
the already present BML::self_link()
- fixes BML::get_query_string() to always return the scalar string
(it's sometimes called in scalar context w/o intention to parse the
string, e.g. my ($uri, $args) = (BML::get_uri(), BML::get_query_string()).
- adds the following information retrieval methods to package BML to
replace CGI environment variables:
get_path_info for PATH_INFO
get_remote_ip for REMOTE_ADDR
get_remote_host for REMOTE_HOST
get_remote_user for REMOTE_USER
get_client_header for any client HTTP header, in particular
any HTTP_* environment variable
- replaces usage of various CGI variables throughout the site by usage
of these new and already existing BML:: functions
- teaches protocol and ljviews.pl to do w/o the environment (they
can't call BML:: functions directly of course). The
former needs it for REMOTE_ADDR in the tracking table, the latter
for IF_MODIFIED_SINCE in the friends view. Since in either case very
little is required, I didn't change them to accommodate a
full-blown interface to $r; rather I put the needed variables into
%ENV immediately before calling them.
- err, that's it, I think. I'll continue further checking if I
missed some of the stuff.

Tested, though not always comprehensively as reported above.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 ljcom/cgi-bin/ljconfig-local.pl
http://cvs.livejournal.org/browse.cgi/ljcom/cgi-bin/ljconfig-local.pl.diff?r1=1.1&r2=1.2
cvs rdiff -r1.29 -r1.30 ljcom/cgi-bin/bml/scheme/dystopia/generic.look
http://cvs.livejournal.org/browse.cgi/ljcom/cgi-bin/bml/scheme/dystopia/generic.look.diff?r1=1.29&r2=1.30
cvs rdiff -r1.1 -r1.2 ljcom/htdocs/500.html
http://cvs.livejournal.org/browse.cgi/ljcom/htdocs/500.html.diff?r1=1.1&r2=1.2
cvs rdiff -r1.20 -r1.21 ljcom/htdocs/index.bml
http://cvs.livejournal.org/browse.cgi/ljcom/htdocs/index.bml.diff?r1=1.20&r2=1.21
cvs rdiff -r1.1 -r1.2 ljcom/htdocs/inc/email-welcome \
ljcom/htdocs/inc/support-currentproblems ljcom/htdocs/inc/support-links
http://cvs.livejournal.org/browse.cgi/ljcom/htdocs/inc/email-welcome.diff?r1=1.1&r2=1.2
http://cvs.livejournal.org/browse.cgi/ljcom/htdocs/inc/support-currentproblems.diff?r1=1.1&r2=1.2
http://cvs.livejournal.org/browse.cgi/ljcom/htdocs/inc/support-links.diff?r1=1.1&r2=1.2
cvs rdiff -r1.11 -r1.12 ljcom/htdocs/paidaccounts/pp_notify.bml
http://cvs.livejournal.org/browse.cgi/ljcom/htdocs/paidaccounts/pp_notify.bml.diff?r1=1.11&r2=1.12

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Mon Jun 3 23:10:36 UTC 2002

Modified Files:
---------------
livejournal/cgi-bin: ljlib.pl ljprotocol.pl ljviews.pl
livejournal/cgi-bin/Apache: LiveJournal.pm
livejournal/cgi-bin/bml/scheme: global.look
livejournal/cgi-bin/bml/scheme/bluewhite: generic.look
livejournal/cgi-bin/bml/scheme/opalcat: generic.look
livejournal/cgi-bin/bml/scheme/woais: generic.look
livejournal/htdocs: directory.bml interests.bml login.bml
lostinfo_do.bml talkpost.bml talkpost_do.bml talkread.bml
userinfo.bml
livejournal/htdocs/admin: mysql_status.bml
livejournal/htdocs/admin/faq: faqedit_do.bml
livejournal/htdocs/admin/priv: index.bml
livejournal/htdocs/friends: graph.bml
livejournal/htdocs/todo: index.bml
livejournal/htdocs/topics: index.bml
livejournal/htdocs/view: index.bml

Log Message:
------------
avva:
I tried to test it thoroughly, but in many cases (old BML schemes,
parts of the site that are out of order such as topics, or not set up
on my goathack such as the directory etc.) this wasn't fully possible.

Here's what it does:
- removes LJ::self_link() from ljlib.pl and makes all source files use
the already present BML::self_link()
- fixes BML::get_query_string() to always return the scalar string
(it's sometimes called in scalar context w/o intention to parse the
string, e.g. my ($uri, $args) = (BML::get_uri(), BML::get_query_string()).
- adds the following information retrieval methods to package BML to
replace CGI environment variables:
get_path_info for PATH_INFO
get_remote_ip for REMOTE_ADDR
get_remote_host for REMOTE_HOST
get_remote_user for REMOTE_USER
get_client_header for any client HTTP header, in particular
any HTTP_* environment variable
- replaces usage of various CGI variables throughout the site by usage
of these new and already existing BML:: functions
- teaches protocol and ljviews.pl to do w/o the environment (they
can't call BML:: functions directly of course). The
former needs it for REMOTE_ADDR in the tracking table, the latter
for IF_MODIFIED_SINCE in the friends view. Since in either case very
little is required, I didn't change them to accommodate a
full-blown interface to $r; rather I put the needed variables into
%ENV immediately before calling them.
- err, that's it, I think. I'll continue further checking if I
missed some of the stuff.

Tested, though not always comprehensively as reported above.

bradfitz:
redo X-Forwarded-For stuff,
change some of Avva's patch above


To generate a diff of this commit:
cvs rdiff -r1.202 -r1.203 livejournal/cgi-bin/ljlib.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/ljlib.pl.diff?r1=1.202&r2=1.203
cvs rdiff -r1.104 -r1.105 livejournal/cgi-bin/ljprotocol.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/ljprotocol.pl.diff?r1=1.104&r2=1.105
cvs rdiff -r1.55 -r1.56 livejournal/cgi-bin/ljviews.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/ljviews.pl.diff?r1=1.55&r2=1.56
cvs rdiff -r1.26 -r1.27 livejournal/cgi-bin/Apache/LiveJournal.pm
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/Apache/LiveJournal.pm.diff?r1=1.26&r2=1.27
cvs rdiff -r1.14 -r1.15 livejournal/cgi-bin/bml/scheme/global.look
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/bml/scheme/global.look.diff?r1=1.14&r2=1.15
cvs rdiff -r1.1 -r1.2 livejournal/cgi-bin/bml/scheme/bluewhite/generic.look
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/bml/scheme/bluewhite/generic.look.diff?r1=1.1&r2=1.2
cvs rdiff -r1.3 -r1.4 livejournal/cgi-bin/bml/scheme/opalcat/generic.look
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/bml/scheme/opalcat/generic.look.diff?r1=1.3&r2=1.4
cvs rdiff -r1.2 -r1.3 livejournal/cgi-bin/bml/scheme/woais/generic.look
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/bml/scheme/woais/generic.look.diff?r1=1.2&r2=1.3
cvs rdiff -r1.13 -r1.14 livejournal/htdocs/directory.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/directory.bml.diff?r1=1.13&r2=1.14
cvs rdiff -r1.25 -r1.26 livejournal/htdocs/interests.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/interests.bml.diff?r1=1.25&r2=1.26
cvs rdiff -r1.11 -r1.12 livejournal/htdocs/login.bml \
livejournal/htdocs/lostinfo_do.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/login.bml.diff?r1=1.11&r2=1.12
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/lostinfo_do.bml.diff?r1=1.11&r2=1.12
cvs rdiff -r1.53 -r1.54 livejournal/htdocs/talkpost.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/talkpost.bml.diff?r1=1.53&r2=1.54
cvs rdiff -r1.66 -r1.67 livejournal/htdocs/talkpost_do.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/talkpost_do.bml.diff?r1=1.66&r2=1.67
cvs rdiff -r1.78 -r1.79 livejournal/htdocs/talkread.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/talkread.bml.diff?r1=1.78&r2=1.79
cvs rdiff -r1.51 -r1.52 livejournal/htdocs/userinfo.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/userinfo.bml.diff?r1=1.51&r2=1.52
cvs rdiff -r1.3 -r1.4 livejournal/htdocs/admin/mysql_status.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/admin/mysql_status.bml.diff?r1=1.3&r2=1.4
cvs rdiff -r1.9 -r1.10 livejournal/htdocs/admin/faq/faqedit_do.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/admin/faq/faqedit_do.bml.diff?r1=1.9&r2=1.10
cvs rdiff -r1.13 -r1.14 livejournal/htdocs/admin/priv/index.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/admin/priv/index.bml.diff?r1=1.13&r2=1.14
cvs rdiff -r1.5 -r1.6 livejournal/htdocs/friends/graph.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/friends/graph.bml.diff?r1=1.5&r2=1.6
cvs rdiff -r1.10 -r1.11 livejournal/htdocs/todo/index.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/todo/index.bml.diff?r1=1.10&r2=1.11
cvs rdiff -r1.10 -r1.11 livejournal/htdocs/topics/index.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/topics/index.bml.diff?r1=1.10&r2=1.11
cvs rdiff -r1.12 -r1.13 livejournal/htdocs/view/index.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/view/index.bml.diff?r1=1.12&r2=1.13

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Tue Jun 4 00:09:47 UTC 2002

Modified Files:
---------------
livejournal/htdocs: directory.bml export.bml export_do.bml talkread.bml
userinfo.bml
livejournal/htdocs/admin: mysql_status.bml
livejournal/htdocs/admin/priv: index.bml
livejournal/htdocs/todo: index.bml
livejournal/htdocs/topics: index.bml
livejournal/htdocs/view: index.bml

Log Message:
------------
merging avva's last big patch by hand, i didn't notice he removed the %FORM
ref arg in BML::self_link.

props to jproulx for noticing.


To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 livejournal/htdocs/directory.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/directory.bml.diff?r1=1.14&r2=1.15
cvs rdiff -r1.7 -r1.8 livejournal/htdocs/export.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/export.bml.diff?r1=1.7&r2=1.8
cvs rdiff -r1.12 -r1.13 livejournal/htdocs/export_do.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/export_do.bml.diff?r1=1.12&r2=1.13
cvs rdiff -r1.79 -r1.80 livejournal/htdocs/talkread.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/talkread.bml.diff?r1=1.79&r2=1.80
cvs rdiff -r1.52 -r1.53 livejournal/htdocs/userinfo.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/userinfo.bml.diff?r1=1.52&r2=1.53
cvs rdiff -r1.4 -r1.5 livejournal/htdocs/admin/mysql_status.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/admin/mysql_status.bml.diff?r1=1.4&r2=1.5
cvs rdiff -r1.14 -r1.15 livejournal/htdocs/admin/priv/index.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/admin/priv/index.bml.diff?r1=1.14&r2=1.15
cvs rdiff -r1.11 -r1.12 livejournal/htdocs/todo/index.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/todo/index.bml.diff?r1=1.11&r2=1.12
cvs rdiff -r1.11 -r1.12 livejournal/htdocs/topics/index.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/topics/index.bml.diff?r1=1.11&r2=1.12
cvs rdiff -r1.13 -r1.14 livejournal/htdocs/view/index.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/view/index.bml.diff?r1=1.13&r2=1.14

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Tue Jun 4 04:09:40 UTC 2002

Modified Files:
---------------
livejournal/cgi-bin: lj-bml-init.pl ljlib.pl
livejournal/cvs: multicvs.conf

Log Message:
------------
move db stuff to its own library


To generate a diff of this commit:
cvs rdiff -r1.29 -r1.30 livejournal/cgi-bin/lj-bml-init.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/lj-bml-init.pl.diff?r1=1.29&r2=1.30
cvs rdiff -r1.204 -r1.205 livejournal/cgi-bin/ljlib.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/ljlib.pl.diff?r1=1.204&r2=1.205
cvs rdiff -r1.1 -r1.2 livejournal/cvs/multicvs.conf
http://cvs.livejournal.org/browse.cgi/livejournal/cvs/multicvs.conf.diff?r1=1.1&r2=1.2