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 - 2001, Roxen IS. - // $Id: global_variables.pike,v 1.90 2002/08/16 13:13:16 mattias Exp $ + // $Id: global_variables.pike,v 1.91 2003/01/15 16:38:17 grubba Exp $      // #pragma strict_types   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>
Roxen.git/server/base_server/global_variables.pike:120:    "14000 is not recommended if you have modem users."));       defvar("show_internals", 0, 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."));       defvar("set_cookie", 0, LOCALE(74, "Logging: Set unique browser id cookies"),    TYPE_FLAG, -  LOCALE(75, "If set to Yes, all clients that accepts cookies will get " +  LOCALE(75, "If set to Yes, all clients that accept cookies will get "    "a unique 'user-id-cookie', which 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 browser "    "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, do_set_cookie( o ));   }      void set_up_ssl_variables( Protocol o )   {    function(DEFVAR) defvar = o->defvar;    -  defvar( "ssl_cert_file", "demo_certificate.pem", +  defvar( "ssl_cert_file", ({ "demo_certificate.pem" }),    LOCALE(86, "SSL certificate file"), -  TYPE_STRING, -  sprintf(LOCALE(87, "The SSL certificate file to use. The path " -  "is relative to %s.")+"\n", getcwd() )); +  TYPE_FILE_LIST, +  sprintf(LOCALE(87, "The SSL certificate file(s) to use. " +  "If a path is relative, it will first be searched " +  "for relative to %s, " +  "and if not found there relative to %s. ")+ +  "\n", combine_path(getcwd(), "../local"), getcwd() ));          defvar( "ssl_key_file", "", LOCALE(88, "SSL key file"),    TYPE_STRING, -  sprintf(LOCALE(89, "The SSL key file to use. The path is " -  "relative to %s, you do not have to specify a key " +  sprintf(LOCALE(89, "The SSL key file to use. If the path is " +  "relative, it will first be searched for relative " +  "to %s, and if not found there relative to %s. " +  "You do not have to specify a key "    "file, leave this field empty to use the certificate " -  "file only.")+"\n", getcwd() )); +  "file only.")+ +  "\n", combine_path(getcwd(), "../local"), getcwd() ));   }         // Get the current domain. This is not as easy as one could think.   string get_domain(int|void l)   {    array f;    string t, s;       // FIXME: NT support.