|
|
| version 1.69, 2002/01/25 12:09:03 | version 1.73, 2002/03/25 11:55:26 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b file parser class. | Parser: @b file parser class. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | $Id$ |
| */ | */ |
| Line 236 static void _exec_cgi(Request& r, const | Line 236 static void _exec_cgi(Request& r, const |
| //out.APPEND_CONST("content-type:text/plain\nheader:test-header\n\ntest-body"); | //out.APPEND_CONST("content-type:text/plain\nheader:test-header\n\ntest-body"); |
| //out<<in; | //out<<in; |
| String& err=*new(pool) String(pool); | String& err=*new(pool) String(pool); |
| int status=pa_exec(script_name, &env, argv, in, out, err); | int status=pa_exec(false/*forced_allow*/, script_name, &env, argv, in, out, err); |
| VFile& self=*static_cast<VFile *>(r.self); | VFile& self=*static_cast<VFile *>(r.self); |
| Line 388 static void _lock(Request& r, const Stri | Line 388 static void _lock(Request& r, const Stri |
| Value& body_code=params->as_junction(1, "body must be code"); | Value& body_code=params->as_junction(1, "body must be code"); |
| Lock_execute_body_info info={&r, &body_code}; | Lock_execute_body_info info={&r, &body_code}; |
| file_action_under_lock(file_spec, "lock", lock_execute_body, &info); | file_write_action_under_lock(file_spec, "lock", lock_execute_body, &info); |
| } | } |
| // constructor | // constructor |