r7002: added support for getting at loadparm config parameters via lpGet() in esp...
authorAndrew Tridgell <tridge@samba.org>
Fri, 27 May 2005 03:58:12 +0000 (03:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:04 +0000 (13:17 -0500)
commit5537a0d38d4805cbc2dad0d6f76db15173b1fd60
tree665dc402d3168fe02c110f019f2a0ecbd779df9d
parenta18b069f0634079d6b8acaab1cf540184ad28801
r7002: added support for getting at loadparm config parameters via lpGet() in esp scripts

lpGet takes 4 forms
    v = lpGet("type:parm");             gets a parametric variable
    v = lpGet("share", "type:parm");    gets a parametric variable on a share
    v = lpGet("parm");                  gets a global variable
    v = lpGet("share", "parm");         gets a share variable

in all cases a ejs object of the appropriate type for the variable is returned.

This commit also adds the function typeof() which returns the type of an object
source/include/structs.h
source/param/loadparm.c
source/web_server/calls.c [new file with mode: 0644]
source/web_server/config.mk
source/web_server/ejs/ejs.c
source/web_server/ejs/ejs.h
source/web_server/esp/esp.c
source/web_server/esp/esp.h
source/web_server/http.c