Many big changes:

* Cache arg list in get_post_args so it can be called more than once and from inside templates.
* Get/set_cookie functions.
* New user auth system that actually works.
* Make_blog_post actually works now.
* Many other fixes and improvments.
This commit is contained in:
Uriel 2008-10-18 03:26:54 +02:00
parent 20339633b0
commit a1dd162124
2 changed files with 125 additions and 26 deletions

View file

@ -257,6 +257,11 @@ ifs='/' { args = `{echo -n $uri} }
if(! ~ $#debug 0)
dprint ' ' $SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_USER_AGENT
# Hack: preload post data so we can access it from templates where cgi's stdin is not accesible
if(~ $REQUEST_METHOD POST) {
get_post_args
login_user
}
if (! ~ $args '') {
if (~ $args($#args) 'index')