Diff for /parser3/src/classes/file.C between versions 1.65 and 1.68

version 1.65, 2001/11/05 11:46:20 version 1.68, 2002/01/25 11:33:45
Line 20 Line 20
 #include "pa_vdate.h"  #include "pa_vdate.h"
 #include "pa_dir.h"  #include "pa_dir.h"
 #include "pa_vtable.h"  #include "pa_vtable.h"
   #include "pa_charset.h"
   
 // consts  // consts
   
Line 60  static void _save(Request& r, const Stri Line 61  static void _save(Request& r, const Stri
 }  }
   
 static void _delete(Request& r, const String&, MethodParams *params) {  static void _delete(Request& r, const String&, MethodParams *params) {
         Pool& pool=r.pool();  
         Value& vfile_name=params->as_no_junction(0, "file name must not be code");          Value& vfile_name=params->as_no_junction(0, "file name must not be code");
   
         // unlink          // unlink
         file_delete(pool, r.absolute(vfile_name.as_string()));          file_delete(r.absolute(vfile_name.as_string()));
 }  }
   
 static void _move(Request& r, const String&, MethodParams *params) {  static void _move(Request& r, const String&, MethodParams *params) {
         Pool& pool=r.pool();  
         Value& vfrom_file_name=params->as_no_junction(0, "from file name must not be code");          Value& vfrom_file_name=params->as_no_junction(0, "from file name must not be code");
         Value& vto_file_name=params->as_no_junction(1, "to file name must not be code");          Value& vto_file_name=params->as_no_junction(1, "to file name must not be code");
   
         // move          // move
         file_move(pool,           file_move(
                 r.absolute(vfrom_file_name.as_string()),                  r.absolute(vfrom_file_name.as_string()),
                 r.absolute(vto_file_name.as_string()));                  r.absolute(vto_file_name.as_string()));
 }  }
Line 193  static void _exec_cgi(Request& r, const Line 192  static void _exec_cgi(Request& r, const
         // from Request.info          // from Request.info
         ECSTR(DOCUMENT_ROOT, r.info.document_root);          ECSTR(DOCUMENT_ROOT, r.info.document_root);
         ECSTR(PATH_TRANSLATED, r.info.path_translated);          ECSTR(PATH_TRANSLATED, r.info.path_translated);
         ECSTR(SERVER_PROTOCOL, r.info.method);          ECSTR(REQUEST_METHOD, r.info.method);
         ECSTR(QUERY_STRING, r.info.query_string);          ECSTR(QUERY_STRING, r.info.query_string);
         ECSTR(REQUEST_URI, r.info.uri);          ECSTR(REQUEST_URI, r.info.uri);
         ECSTR(CONTENT_TYPE, r.info.content_type);          ECSTR(CONTENT_TYPE, r.info.content_type);
Line 204  static void _exec_cgi(Request& r, const Line 203  static void _exec_cgi(Request& r, const
         ECSTR(HTTP_COOKIE, r.info.cookie);          ECSTR(HTTP_COOKIE, r.info.cookie);
         ECSTR(HTTP_USER_AGENT, r.info.user_agent);          ECSTR(HTTP_USER_AGENT, r.info.user_agent);
         // passing some SAPI:get_env-s          // passing some SAPI:get_env-s
           EPASS(SERVER_PROTOCOL);
         EPASS(SERVER_NAME);          EPASS(SERVER_NAME);
         EPASS(SERVER_PORT);          EPASS(SERVER_PORT);
         EPASS(HTTP_REFERER);          EPASS(HTTP_REFERER);
Line 311  static void _list(Request& r, const Stri Line 311  static void _list(Request& r, const Stri
                 int erroffset;                  int erroffset;
                 regexp_code=pcre_compile(pattern, PCRE_EXTRA | PCRE_DOTALL,                   regexp_code=pcre_compile(pattern, PCRE_EXTRA | PCRE_DOTALL, 
                         &errptr, &erroffset,                           &errptr, &erroffset, 
                         r.pcre_tables());                          pool.get_client_charset().pcre_tables);
   
                 if(!regexp_code)                  if(!regexp_code)
                         throw Exception(0, 0,                           throw Exception(0, 0, 

Removed from v.1.65  
changed lines
  Added in v.1.68


E-mail: