From c01f7bf989dedcc61e4e812fd57d6d73997cfd85 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 14 Sep 2007 14:07:30 +0000 Subject: added subnets of CHILD_SAs to xml interface a first design of Managers IKE_SA list page --- src/manager/lib/response.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/manager/lib/response.c') diff --git a/src/manager/lib/response.c b/src/manager/lib/response.c index ae74ab6e5..be933792f 100644 --- a/src/manager/lib/response.c +++ b/src/manager/lib/response.c @@ -186,6 +186,15 @@ static void redirect(private_response_t *this, char *location) *location == '/' ? "" : "/", location); } + +/** + * Implementation of response_t.get_base. + */ +static char* get_base(private_response_t *this) +{ + return FCGX_GetParam("SCRIPT_NAME", this->req->envp); +} + /** * Implementation of response_t.destroy */ @@ -210,6 +219,7 @@ response_t *response_create(FCGX_Request *request) this->public.set_content_type = (void(*)(response_t*, char *type))set_content_type; this->public.add_cookie = (void(*)(response_t*, char *name, char *value))add_cookie; this->public.redirect = (void(*)(response_t*, char *location))redirect; + this->public.get_base = (char*(*)(response_t*))get_base; this->public.destroy = (void(*)(response_t*))destroy; this->req = request; -- cgit v1.2.3