Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: global_variables.pike,v 1.61 2001/01/21 17:45:05 nilsson Exp $ + // $Id: global_variables.pike,v 1.62 2001/01/29 07:50:20 per Exp $      /*   #pragma strict_types   */   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";
Roxen.git/server/base_server/global_variables.pike:85:    "it should point to a file containing a list of valid shells. "    "Users with shells that does not figure in this list will not "    "be allowed to log in.") );   }         void set_up_http_variables( Protocol o, int|void fhttp )   {    function(DEFVAR) defvar = o->defvar;    +  function do_set_cookie(Protocol o) +  { +  return lambda() { +  return o->query("set_cookie") == 0; +  }; +  }; +     defvar("show_internals", 1, LOCALE(72, "Show internal errors"),    TYPE_FLAG,    LOCALE(73, "Show 'Internal server error' messages to the user. "    "This is very useful if you are debugging your own modules "    "or writing Pike scripts."));       if(!fhttp)    {    defvar("set_cookie", 0, LOCALE(74, "Logging: Set unique user id cookies"),    TYPE_FLAG,
Roxen.git/server/base_server/global_variables.pike:107:    "can then be used in the log and in scripts to track "    "individual users."));       defvar("set_cookie_only_once", 1,    LOCALE(76, "Logging: Set ID cookies only once"),    TYPE_FLAG,    LOCALE(77, "If set to Yes, Roxen will attempt to set unique user "    "ID cookies only upon receiving the first request (and "    "again after some minutes). Thus, if the user doesn't allow "    "the cookie to be set, she won't be bothered with " -  "multiple requests."),0 , -  lambda() {return !query("set_cookie");}); +  "multiple requests."),0, do_set_cookie( o ));    }   }      void set_up_fhttp_variables( Protocol o )   {    function(BDEFVAR) defvar = o->defvar;       defvar( "log", "None", LOCALE(78, "Logging method"),    TYPE_STRING_LIST,    LOCALE(79, "None - No log<br />"