Uriel
e91609e301
Move shared .tpl files to tpl/ from lib/, this fixes a DoS vulneravility where master_template.tpl could be accessed as a standalone .tpl file that recursively called itself.
2009-06-06 16:20:02 +02:00
Uriel
7ba725cf92
Don't execute perm_redirects directly from conf_perm_redirect to avoid tripping over sitemaps and other code that sources config files but doesn't want to actually *do* anything. Also hide paths with simple or pattern redirects from sitemaps.
2009-02-14 07:09:27 +00:00
Uriel
93ad9c35c0
Use new conf_enable_... interfaces, this also alos us to make the default for $enabled_apps nil.
2009-02-08 00:23:33 +00:00
Uriel
fe5c67da46
Fix sitemap.txt generation.
2009-02-06 21:20:36 +00:00
Uriel
2e1f0dd32f
Convert fltr_cache into a function. Enable output buffering which had been commented out for unknwon reasons.
2009-02-06 22:09:32 +01:00
Uriel
9ff545ec83
Rewrite most sitemap generation code, much cleaner, modularize file title/desc extraction, take advantage of new fproc_cache to cache sitemap.
2009-02-06 20:43:11 +01:00
Uriel
602819f2fa
Make conf_hide_path more flexible, and note a limitation in sitemap dirfilter handling.
2009-02-05 03:16:14 +00:00
Uriel
f785c96fbb
Fix sitemap.tpl to use the new split dirfilter
2009-01-10 17:34:56 +01:00
Uriel
2028076c80
Rename $baseuri to $base_url
2008-12-28 20:20:48 +01:00
Uriel
f1f653f876
Sitemap improvemnts and cleanups:
...
- Avoid nedless tests
- Replace reference to /bin/sed with faster, simpler and probably more correct plan9 sed call.
- Move inline html styling to style.css
- Various code cleanups, bring source style in line with other werc source.
2008-12-20 13:20:31 +01:00
Uriel
b7f33b8d07
New menu implementation, removes the recursive calls to rc/awk, also makes use of dirfilter more consistent and simplifies some code.
...
Other minnor cleanups.
2008-10-27 00:41:23 +01:00
Uriel
33597169a5
Update sitemap.tpl to use _werc/config instead of the deprecated _config, also don't include in sitemap sub-tress where permanentRedirect is set to make Google happy.
2008-10-24 04:19:29 +02:00
Uriel
e78e2d2c73
Add trailing / for directories in sitemap to make google crawler happy
2008-10-12 22:41:40 +00:00
Uriel
92c0e7b4d5
Use /tmp to store temporay sitemap.txt files
2008-09-26 14:48:31 +02:00
Uriel
692f272645
Dynamically generate a sitemap.txt when the sitemap page is requested
2008-09-25 11:04:57 +02:00
Uriel
83a10c526a
Reorganization of included and template files, made more consistent and logical. inc/ is now called lib/, and all non-staic files in pub/ have moved to lib/.
...
In site dirs _config and _default.tpl have moved to _werc/ in preparation for things like comments.
2008-09-24 20:21:32 +02:00