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.104 2001/01/19 16:37:43 per Exp $ + // $Id: module.pike,v 1.105 2001/01/29 05:45:50 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:40:   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 -  || this_object()->module_name_locale -  || this_object()->module_name, cname); +  name||this_object()->module_name, cname);    }    return _module_identifier;   }      string _sprintf()   {    return "RoxenModule(" +    (Roxen.get_modname (this_object()) || module_identifier()) + ")";   }      array register_module()   {    return ({    this_object()->module_type, -  this_object()->module_name_locale || this_object()->module_name, -  this_object()->module_doc_locale || this_object()->module_doc, +  this_object()->module_name, +  this_object()->module_doc,    0,    module_unique,    });   }      string fix_cvs(string from)   {    from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""}));    sscanf(from, "%*s,v %s", from);    return replace(from,"/","-");