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 - 2004, Roxen IS. - // $Id: global_variables.pike,v 1.108 2008/02/07 10:05:29 noring Exp $ + // $Id: global_variables.pike,v 1.109 2008/05/07 11:02:41 mast 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:220:    "relative to %s. "    "You do not have to specify a key "    "file, leave this field empty to use the "    "certificate file only.")));   }         // 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.       t = Stdio.read_bytes("/etc/resolv.conf");    if(t)    {    if(!sscanf(t, "domain %s\n", s))    if(!sscanf(t, "search %s%*[ \t\n]", s))    s="nowhere";
Roxen.git/server/base_server/global_variables.pike:281:    string f = dirname( master()->make_ofilename( "tmp" ) );    foreach( glob("*.o",get_dir( f )), string ofile )    catch(rm( ofile ));    };    old_module_dirs = v->query();    }   }      void define_global_variables( )   { -  int p; -  +     defvar("myisamchk",    Variable.Language("Fast check and repair",    ({ "Disable check",    "Fast check and repair",    "Normal check and repair",    "Medium check and repair",    "Extended check and repair" }),    0, LOCALE(0, "MySQL table check"),    LOCALE(0, "Check MySQL tables on server start, "    "and automatically repair if necessary. "