Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.78 2000/02/10 03:33:29 mast Exp $ */ + /* $Id: module.pike,v 1.79 2000/02/14 09:20:00 per Exp $ */   #include <module.h>   #include <request_trace.h>      mapping (string:mixed *) variables=([]);   RoxenModule this = this_object();   mapping(string:array(int)) error_log=([]);      constant is_module = 1;   constant module_type = MODULE_ZERO;   constant module_name = "Unnamed module";
Roxen.git/server/base_server/module.pike:114:   void start(void|int num, void|Configuration conf) {}   string status() {}         string info(Configuration conf)   {    return (this->register_module()[2]);   }      constant ConfigurableWrapper = roxen.ConfigurableWrapper; - constant reg_s_loc = Locale.Roxen.standard.register_module_doc; + constant reg_s_loc = RoxenLocale.standard.register_module_doc;      // Define a variable, with more than a little error checking...   void defvar(string var, mixed value, string name,    int type, string|void doc_str, mixed|void misc,    int|function|void not_in_config)   {   #ifdef MODULE_DEBUG    if(!strlen(var))    report_debug("No name for variable!\n");   // if(var[0]=='_' && previous_object() != roxen)
Roxen.git/server/base_server/module.pike:283:       variables[var][ VAR_MISC ]=misc;    variables[var][ VAR_SHORTNAME ]= var;   }      static mapping locs = ([]);   void deflocaledoc( string locale, string variable,    string name, string doc, mapping|void translate )   {    if(!locs[locale] ) -  locs[locale] = Locale.Roxen[locale]->register_module_doc; +  locs[locale] = RoxenLocale[locale]->register_module_doc;    if(!locs[locale])    report_debug("Invalid locale: "+locale+". Ignoring.\n");    else    locs[locale]( this_object(), variable, name, doc, translate );   }      void save_me()   {    my_configuration()->save_one( this_object() );   }