Branch: Tag:

2000-05-01

2000-05-01 05:42:09 by Martin Nilsson <mani@lysator.liu.se>

Removed roxenlib

Rev: server/modules/filesystems/filesystem.pike:1.80

5:   // Also inherited by some of the other filesystems.      inherit "module"; - inherit "roxenlib"; +    inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.79 2000/04/06 01:49:40 wing Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.80 2000/05/01 05:42:09 nilsson Exp $";   constant thread_safe=1;      #include <module.h>
218:   int dir_filter_function(string f, RequestID id)   {    if(f[0]=='.' && !QUERY(.files)) return 0; -  if(!QUERY(tilde) && backup_extension(f)) return 0; +  if(!QUERY(tilde) && Roxen.backup_extension(f)) return 0;    return 1;   }   
475:    * /grubba 1999-01-14    */    string new_query = -  http_encode_string(id->not_query[..sizeof(id->not_query)-2]) + +  Roxen.http_encode_string(id->not_query[..sizeof(id->not_query)-2]) +    (id->query?("?" + id->query):"");    TRACE_LEAVE("Redirecting to \"" + new_query + "\""); -  return http_redirect(new_query, id); +  return Roxen.http_redirect(new_query, id);    }       if(!id->misc->internal_get) {
543:       if(QUERY(check_auth) && (!id->auth || !id->auth[0])) {    TRACE_LEAVE("MKDIR: Permission denied"); -  return http_auth_required("foo", +  return Roxen.http_auth_required("foo",    "<h1>Permission to 'MKDIR' denied</h1>");    }    mkdirs++;
572:    chmod(f, 0777 & ~(id->misc->umask || 022));    TRACE_LEAVE("MKDIR: Success");    TRACE_LEAVE("Success"); -  return http_string_answer("Ok"); +  return Roxen.http_string_answer("Ok");    } else {    TRACE_LEAVE("MKDIR: Failed");    TRACE_LEAVE("Failure");
597:       if(QUERY(check_auth) && (!id->auth || !id->auth[0])) {    TRACE_LEAVE("PUT: Permission denied"); -  return http_auth_required("foo", +  return Roxen.http_auth_required("foo",    "<h1>Permission to 'PUT' files denied</h1>");    }   
685:    if(!putting[id->my_fd]) {    TRACE_LEAVE("PUT: Just a string");    TRACE_LEAVE("Put: Success"); -  return http_string_answer("Ok"); +  return Roxen.http_string_answer("Ok");    }       if(id->clientprot == "HTTP/1.1") {
695:    id->my_fd->set_nonblocking(got_put_data, 0, done_with_put);    TRACE_LEAVE("PUT: Pipe in progress");    TRACE_LEAVE("PUT: Success so far"); -  return http_pipe_in_progress(); +  return Roxen.http_pipe_in_progress();    break;       case "CHMOD":
717:       if(QUERY(check_auth) && (!id->auth || !id->auth[0])) {    TRACE_LEAVE("CHMOD: Permission denied"); -  return http_auth_required("foo", +  return Roxen.http_auth_required("foo",    "<h1>Permission to 'CHMOD' files denied</h1>");    }   
755:    }    TRACE_LEAVE("CHMOD: Success");    TRACE_LEAVE("Success"); -  return http_string_answer("Ok"); +  return Roxen.http_string_answer("Ok");       case "MV":    // This little kluge is used by ftp2 to move files.
784:       if(QUERY(check_auth) && (!id->auth || !id->auth[0])) {    TRACE_LEAVE("MV: Permission denied"); -  return http_auth_required("foo", +  return Roxen.http_auth_required("foo",    "<h1>Permission to 'MV' files denied</h1>");    }    string movefrom;
841:    }    TRACE_LEAVE("MV: Success");    TRACE_LEAVE("Success"); -  return http_string_answer("Ok"); +  return Roxen.http_string_answer("Ok");       case "MOVE":    // This little kluge is used by NETSCAPE 4.5
863:       if(QUERY(check_auth) && (!id->auth || !id->auth[0])) {    TRACE_LEAVE("MOVE: Permission denied"); -  return http_auth_required("foo", +  return Roxen.http_auth_required("foo",    "<h1>Permission to 'MOVE' files denied</h1>");    }   
943:    }    TRACE_LEAVE("MOVE: Success");    TRACE_LEAVE("Success"); -  return http_string_answer("Ok"); +  return Roxen.http_string_answer("Ok");          case "DELETE":