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 - 2009, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.719 2011/06/19 14:49:07 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.720 2011/12/21 00:46:45 jonasw 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)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:3752:    }       array old_error_log = (array) old_module->error_log;       RoxenModule nm;       // Load up a new instance.    nm = mi->instance( this_object(), 0, mod_copy);    // If this is a faked module, let's call it a failure.    if (nm->module_is_disabled) -  report_notice (LOC_C(0, "Module is disabled") + "\n"); +  report_notice (LOC_C(1047, "Module is disabled") + "\n");    else if( nm->not_a_module )    {    old_module->report_error(LOC_C(385,"Reload failed")+"\n");    RXML.set_context (old_ctx);    return old_module;    }       disable_module( modname, nm );    destruct( old_module );   
Roxen.git/server/base_server/configuration.pike:3994: Inside #if defined(MODULE_LEVEL_SECURITY)
   me->defvar("_seclvl", 0, DLOCALE(18, "Security: Security level"),    TYPE_INT,    DLOCALE(305, "The modules security level is used to determine if a "    " request should be handled by the module."    "\n<p><h2>Security level vs Trust level</h2>"    " Each module has a configurable <i>security level</i>."    " Each request has an assigned trust level. Higher"    " <i>trust levels</i> grants access to modules with higher"    " <i>security levels</i>."    "\n<p><h2>Definitions</h2><ul>" -  " <li>A requests initial Trust level is infinitely high.</li>" +  " <li>A requests initial trust level is infinitely high.</li>"    " <li> A request will only be handled by a module if its"    " <i>trust level</i> is higher or equal to the"    " <i>security level</i> of the module.</li>"    " <li> Each time the request is handled by a module the" -  " <i>trust level</i> of the module will be set to the" +  " <i>trust level</i> of the request will be set to the"    " lower of its <i>trust level</i> and the modules"    " <i>security level</i>, <i>unless</i> the security "    " level of the module is 0, which is a special "    " case and means that no change should be made.</li>"    " </ul></p>"    "\n<p><h2>Example</h2>"    " Modules:<ul>"    " <li> User filesystem, <i>security level</i> 1</li>"    " <li> Filesystem module, <i>security level</i> 3</li>"    " <li> CGI module, <i>security level</i> 2</li>"    " </ul></p>"    "\n<p>A request handled by \"User filesystem\" is assigned"    " a <i>trust level</i> of one after the <i>security"    " level</i> of that module. That request can then not be"    " handled by the \"CGI module\" since that module has a"    " higher <i>security level</i> than the requests trust"    " level.</p>"    "\n<p>On the other hand, a request handled by the the" -  " \"Filsystem module\" could later be handled by the" +  " \"Filesystem module\" could later be handled by the"    " \"CGI module\".</p>"));       } else {    me->definvisvar("_seclvl", -10, TYPE_INT); /* A very low one */    }    }   #endif    } else {    me->defvar("_priority", 0, "", TYPE_INT, "", 0, 1);    }
Roxen.git/server/base_server/configuration.pike:5068:   </dl>"), 0, lambda(){ return !query("Log");});       // Make the widget above a bit larger.    getvar ("LogFormat")->rows = 20;    getvar ("LogFormat")->cols = 80;       // FIXME: Mention it is relative to getcwd(). Can not be localized in pike 7.0.    defvar("LogFile", "$LOGDIR/"+Roxen.short_name(name)+"/Log",    DLOCALE(30, "Logging: Log file"), TYPE_FILE,    DLOCALE(31, "The log file. " -  "" +     "A file name. Some substitutions will be done:"    "<pre>"    "%y Year (e.g. '1997')\n"    "%m Month (e.g. '08')\n"    "%d Date (e.g. '10' for the tenth)\n"    "%h Hour (e.g. '00')\n"    "%H Hostname\n"    "</pre>")    ,0, lambda(){ return !query("Log");});   
Roxen.git/server/base_server/configuration.pike:5656:    </td>    </tr>    </table>    </td>    <td></td>    </tr>   </table>      </body>   </html>", -  DLOCALE(0, "Server too busy message"), +  DLOCALE(1048, "Server too busy message"),    TYPE_TEXT_FIELD|VAR_PUBLIC, -  DLOCALE(0, "What to return if the server is too busy. See also " +  DLOCALE(1049, "What to return if the server is too busy. See also "    "\"Handler queue timeout\"."));       defvar("handler_queue_timeout", 30, -  DLOCALE(0, "Handler queue timeout"), +  DLOCALE(1050, "Handler queue timeout"),    TYPE_INT, -  DLOCALE(0, #"Requests that have been waiting this many seconds on +  DLOCALE(1051, #"Requests that have been waiting this many seconds on   the handler queue will not be processed. Instead, a 503 error code and the   \"Server too busy message\" will be returned to the client. This may help the   server to cut down the queue length after spikes of heavy load."))    ->add_changed_callback(lambda(object v)    { handler_queue_timeout = v->query(); });    handler_queue_timeout = query("handler_queue_timeout");    }      #ifdef SNMP_AGENT    // SNMP stuffs