Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: module.pike,v 1.100 2000/11/02 08:48:45 per Exp $ + // $Id: module.pike,v 1.101 2000/11/20 13:36:33 per Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      inherit "basic_defvar";   mapping(string:array(int)) error_log=([]);      constant is_module = 1;   constant module_type = MODULE_ZERO;
Roxen.git/server/base_server/module.pike:39:      string module_identifier()   {    if (!_module_identifier) {    string|mapping name = register_module()[1];    if (mappingp (name)) name = name->standard;    string cname = sprintf ("%O", my_configuration());    if (sscanf (cname, "Configuration(%s", cname) == 1 &&    sizeof (cname) && cname[-1] == ')')    cname = cname[..sizeof (cname) - 2]; -  _module_identifier = sprintf ("%s,%s", name || module_name, cname); +  _module_identifier = sprintf ("%s,%s", +  name +  || this_object()->module_name_locale +  || module_name, cname);    }    return _module_identifier;   }      string _sprintf()   {    return "RoxenModule(" +    (Roxen.get_modname (this_object()) || module_identifier()) + ")";   }      array register_module()   {    return ({    module_type, -  module_name, -  module_doc, +  this_object()->module_name_locale || module_name, +  this_object()->module_doc_locale || module_doc,    0,    module_unique,    });   }      string fix_cvs(string from)   {    from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""}));    sscanf(from, "%*s,v %s", from);    return replace(from,"/","-");