Commit graph

12 commits

Author SHA1 Message Date
Uriel
b4fc73806b Ignore leading spaces/tabs when extracting a title from HTML files. 2011-06-30 22:58:17 +00:00
Uriel
2cdc75633d Still extract tile if 'empty' line after tile contains spaces. 2010-01-19 00:28:25 +00:00
Uriel
c7c130e591 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
cb97e355bf Whitespace change. 2009-07-28 23:58:32 +02:00
Uriel
2d8ce10389 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
1c73471579 Add comment on auth docs to review in the futre. 2009-03-14 14:32:22 +01:00
Uriel
a0254318ee Fix a bug where check_user would not work properly when called from config files. 2009-03-09 22:08:22 +00:00
Uriel
c9b9e4e9bf 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
835d392f0c Groups are now simply users with a /members file with one member per file. 2009-02-28 13:27:16 +00:00
Uriel
32706e97c7 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
1c4d6ff8bd Minor style change and delete debug print. 2009-02-13 23:17:49 +00:00
Uriel
e084b89cae 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