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.99 2000/10/06 15:13:24 mast Exp $ + // $Id: module.pike,v 1.100 2000/11/02 08:48: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:152:      void start(void|int num, void|Configuration conf) {}      string status() {}      string info(Configuration conf)   {    return (this_object()->register_module()[2]);   }    + ModuleInfo my_moduleinfo( ) + //! Returns the associated @ref{ModuleInfo} object + { +  string f = my_configuration()->otomod[ this_object() ]; +  if( f ) return roxen.find_module( (f/"#")[0] ); + } +    void save_me() -  + // callback from the configinterface   {    my_configuration()->save_one( this_object() ); -  +  my_configuration()->module_changed( my_moduleinfo(), this_object() );   }      void save() -  + //! Save all module variables associated with this module.   {    save_me();   }      string comment()   {    return "";   }      string query_internal_location()