diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-27 00:29:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:03 -0500 |
commit | fc45b63e478f6f891f0d04bf49423be30a63617d (patch) | |
tree | b5671673fed4e1aef23ca21d840acd1c04bf287e /source4/web_server/ejs/miniMpr.c | |
parent | b7158885afc40bcac857e6fc2cfd97e6c8f4c4f8 (diff) | |
download | samba-fc45b63e478f6f891f0d04bf49423be30a63617d.tar.gz samba-fc45b63e478f6f891f0d04bf49423be30a63617d.tar.bz2 samba-fc45b63e478f6f891f0d04bf49423be30a63617d.zip |
r6998: - added support for application[] data, which is global to all clients using the web server.
This allows for things like
application['state'] = "shuttting down"
and then every web client can see that the server is going down
- added support for session[] data. This allows web pages to store
long term data specific to this client. It relies on
cookies. Sessions auto timeout (default timeout 5 minutes). The
timeout can be set in the scripts.
- changed from processing all .html files as esp, to only processing
.esp files as esp. This makes it easier to compare the samba web
server to appWeb as a reference implementation.
- expanded the number of standard variables setup by esp. See the
showvars.esp example page for all variables.
(This used to be commit c418b23c2ea383da8fad21b62213ec01fd135ebb)
Diffstat (limited to 'source4/web_server/ejs/miniMpr.c')
-rw-r--r-- | source4/web_server/ejs/miniMpr.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/web_server/ejs/miniMpr.c b/source4/web_server/ejs/miniMpr.c index 38241e5c71..46d9579c7e 100644 --- a/source4/web_server/ejs/miniMpr.c +++ b/source4/web_server/ejs/miniMpr.c @@ -37,16 +37,9 @@ static TALLOC_CTX *mpr_ctx; -void mprFreeAll(void) -{ - talloc_free(mpr_ctx); - mpr_ctx = NULL; -} - void mprSetCtx(TALLOC_CTX *ctx) { - talloc_free(mpr_ctx); - mpr_ctx = talloc_new(ctx); + mpr_ctx = ctx; } void mprFree(void *ptr) |