--- parser3/src/classes/file.C 2008/04/30 14:24:51 1.168 +++ parser3/src/classes/file.C 2008/06/07 17:30:33 1.170 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_FILE_C="$Date: 2008/04/30 14:24:51 $"; +static const char * const IDENT_FILE_C="$Date: 2008/06/07 17:30:33 $"; #include "pa_config_includes.h" @@ -248,7 +248,7 @@ static void _load(Request& r, MethodPara size_t size; time_t atime, mtime, ctime; - file_stat(r.absolute(lfile_name), size, atime, mtime, ctime); + file_stat(lfile_name, size, atime, mtime, ctime); HashStringValue& ff=self.fields(); ff.put(adate_name, new VDate(atime)); @@ -365,11 +365,6 @@ static void append_to_argv(Request& r, A } } -inline size_t strpos(const char *s1, const char *s2) { - const char *p = strstr(s1, s2); - return (p==0)?STRING_NOT_FOUND:p-s1; -} - /// @todo fix `` in perl - they produced flipping consoles and no output to perl static void _exec_cgi(Request& r, MethodParams& params, bool cgi) {