Commit Graph

19 Commits

Author SHA1 Message Date
stanley lieber
e7eba3977e bin/werclib.rc: annotate ndate -i 'iso-8601 lite' 2020-06-09 20:40:15 -04:00
stanley lieber
0249712e67 bin/werclib.rc: ndate -a is rfc3339; ndate -t is iso-8601 2019-12-09 22:19:18 -05:00
stanley lieber
ce5436e0b4 bin/werclib.rc -> ndate -t output rfc3339 compliant dates. 2019-12-09 22:09:16 -05:00
stanley lieber
dec5683059 bin/werclib.rc: fn ndate: convert seconds to date when seconds is provided as the second argument. 2019-12-09 19:36:03 -05:00
stanley lieber
4f42153162 bin/werclib.rc: replace fn datei and fn datet (both broken) with fn ndate (implements 9front's date -i, -m, and -t) 2019-12-07 21:55:00 -05:00
sl
89d9d99912 bin/werclib.rc: add datei() and datet() 2016-02-10 20:29:27 -05:00
sl
32414fdfff initial import of changes from 9front bikeshedding; bundle rc-httpd 2016-02-04 15:05:05 -05:00
Uriel
916eba13c9 Ignore leading spaces/tabs when extracting a title from HTML files. 2011-06-30 22:58:17 +00:00
Uriel
7dae66e13e Still extract tile if 'empty' line after tile contains spaces. 2010-01-19 00:28:25 +00:00
uriel
e4424e0844 Much better (I hope) get_html_title implementation, first try to find <title>, if that fails, get the first non-tag string in the file. 2009-07-30 02:12:06 +02:00
uriel
e3e9fd0754 Whitespace change. 2009-07-28 23:58:32 +02:00
uriel
8cd04dd184 New context var 'local_file' that will point to the on-disk-file that represents the main content of a given page request (if such exists, otherwise it is '' or ()).
Move title extracting functions from sitemap.tpl to werclib.rc.
Rewrite .md title extraction code to only match first lines when 'underlines' with =.

Use the changes above to generate better page titles when possible.
2009-07-28 20:28:35 +02:00
uriel
0ccee39ddb Add comment on auth docs to review in the futre. 2009-03-14 14:32:22 +01:00
uriel
232aefb7ff Fix a bug where check_user would not work properly when called from config files. 2009-03-09 22:08:22 +00:00
uriel
2f3b982ff0 Preserve ifs when calling other functions after temporary altering it. Fixes a couple of minor bugs.
Added difs env var that can be used anywhere to restore default ifs.
2009-03-03 20:23:00 +00:00
uriel
ef8436e44f Groups are now simply users with a /members file with one member per file. 2009-02-28 13:27:16 +00:00
uriel
a9d9828727 Be more careful when checking passwords, make sure that the password file exists and is not empty. 2009-02-28 12:56:13 +00:00
uriel
929233edd7 Minor style change and delete debug print. 2009-02-13 23:17:49 +00:00
uriel
a1d12138bb Reorg code in five source files: werc.rc, cgilib.rc, corehandlers.rc, wercconf.rc and werclib.rc. 2009-02-01 20:06:51 +01:00