Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.51 1999/11/05 07:17:05 per Exp $ */ + /* $Id: module.pike,v 1.52 1999/11/10 04:54:04 per Exp $ */   #include <module.h>   #include <request_trace.h>      mapping (string:mixed *) variables=([]);   object this = this_object();      constant module_type = MODULE_PARSER;   constant module_name = "Unnamed module";   constant module_doc = "Undocumented";   constant module_unique = 1;
Roxen.git/server/base_server/module.pike:303:    string name, string doc, mapping|void translate )   {    if(!locs[locale] )    locs[locale] = Locale.Roxen[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() + void save_me()   {    my_configuration()->save_one( this_object() );   }    -  + void save() + { +  save_me(); + } +    // Convenience function, define an invisible variable, this variable   // will be saved, but it won't be visible in the configuration interface.   void definvisvar(string name, int value, int type, array|void misc)   {    defvar(name, value, "", type, "", misc, 1);   }      string check_variable( string s, mixed value )   {    // Check if `value' is O.K. to store in the variable `s'. If so,