Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.   //   // German translation by Kai Voigt    - constant cvs_version = "$Id: configuration.pike,v 1.325 2000/07/21 04:55:01 lange Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.326 2000/07/23 15:16:28 nilsson Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/configuration.pike:506:    !parent) {    /* Our parent (aka the configuration) has been destructed.    * Time to die.    */    remove_call_out(do_open);    remove_call_out(do_close);    destruct();    return;    }    string ff = fname; -  mapping m = localtime(time()); +  mapping m = localtime(time(1));    m->year += 1900; /* Adjust for years being counted since 1900 */    m->mon++; /* Adjust for months being counted 0-11 */    if(m->mon < 10) m->mon = "0"+m->mon;    if(m->mday < 10) m->mday = "0"+m->mday;    if(m->hour < 10) m->hour = "0"+m->hour;    ff = replace(fname,({"%d","%m","%y","%h", "%H" }),    ({ (string)m->mday, (string)(m->mon),    (string)(m->year),(string)m->hour,    cached_hostname,    }));