Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.886 2004/11/16 18:59:59 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.887 2004/12/15 18:47:15 mast Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:5107:    return ({sprintf("(< %{%O, %}>)", x/"," )});    },    " if ((user || (user = authmethod->authenticate(id, userdb_module)))\n"    " && ((%[0]s->any) || sizeof(mkmultiset(user->groups())&%[0]s)))",    (<" User user" >),    // No need to NOCACHE () here, since it's up to the    // auth-modules to do that.    }), "group", }),    ({ "dns=%s",1,({    " if(!dns && \n" -  " ((dns=roxen.quick_ip_to_host(id->remoteaddr))!=id->remoteaddr))\n" +  " ((dns=roxen.quick_ip_to_host(id->remoteaddr))==id->remoteaddr))\n"    " if( (id->misc->delayed+=0.1) < 1.0 )\n"    " return Roxen.http_try_again( 0.1 );\n"    " if (sizeof(filter(%[0]O/\",\",\n"    " lambda(string q){return glob(q,dns);})))",    (< " string dns" >),    (<" NO_PROTO_CACHE()" >),    }), "ip", }),    ({ "time=%d:%d-%d:%d",4,({    (< " mapping l = localtime(time(1))" >),    (< " int th = l->hour, tm = l->min" >),