--- parser3/src/include/pa_request.h 2002/04/18 10:51:00 1.132 +++ parser3/src/include/pa_request.h 2002/05/07 07:39:18 1.134 @@ -4,7 +4,7 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_request.h,v 1.132 2002/04/18 10:51:00 paf Exp $ + $Id: pa_request.h,v 1.134 2002/05/07 07:39:18 paf Exp $ */ #ifndef PA_REQUEST_H @@ -32,6 +32,7 @@ // consts +#define MAIN_METHOD_NAME "main" const uint ANTI_ENDLESS_EXECUTE_RECOURSION=500; // defines @@ -218,6 +219,10 @@ public: return fconnection; } + bool origins_mode() { + return main_class->get_element(*origins_mode_name)!=0; // $ORIGINS mode + } + public: /// info from web server @@ -225,6 +230,9 @@ public: /// user's post data char *post_data; size_t post_size; + /// name of 'main' method + const String main_method_name; + /// operators are methods of this class Methoded& OP; /// $env:fields