Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.649 2008/04/28 15:14:30 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.650 2008/05/08 14:34:29 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:3363:    report_error("Error calling start in module.\n%s",    describe_backtrace (err));    }    }    invalidate_cache();   }      int save_one( RoxenModule o )   //! Save all variables in a given module.   { -  mapping mod; +     if(!o)    {    store("spider#0", variables, 0, this_object());    start(2);    return 1;    }    string q = otomod[ o ];    if( !q )    error("Invalid module");   
Roxen.git/server/base_server/configuration.pike:3487:      static int enable_module_batch_msgs;      RoxenModule enable_module( string modname, RoxenModule|void me,    ModuleInfo|void moduleinfo,    int|void nostart, int|void nosave )   {    MODULE_LOCK (2);    int id;    ModuleCopies module; -  int pr; +     mixed err;    int module_type;       if( forcibly_added[modname] == 2 )    return search(otomod, modname);       if( datacache ) datacache->flush();       if( sscanf(modname, "%s#%d", modname, id ) != 2 )    while( modules[ modname ] && modules[ modname ][ id ] )
Roxen.git/server/base_server/configuration.pike:4034:       SNMP.remove_owned(prot->mib, this_object(), me);    }    }   }      int disable_module( string modname, int|void nodest )   {    MODULE_LOCK (2);    RoxenModule me; -  int id, pr; +  int id;    sscanf(modname, "%s#%d", modname, id );       if( datacache ) datacache->flush();       ModuleInfo moduleinfo = roxen.find_module( modname );    mapping module = modules[ modname ];    string descr = moduleinfo->get_name() + (id ? " copy " + (id + 1) : "");       if(!module)    {