Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.670 2009/04/02 13:13:20 grubba Exp $"; + constant cvs_version = "$Id$";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:5009:    if( search(newval,"emit source=values") == -1 )    variables[ "404-message" ]->set( newval );    }       void create()    {    ::create(   #"<nooutput><emit source=values scope=ef variable='modvar.site.404-files'>    <if not='' variable='ef.value is '>    <set variable='var.base' value=''/> +  <catch>    <emit source='path'> -  +  <if not='' exists='/&_.name;'><throw/></if><!-- Break the loop. -->    <append variable='var.base' value='/&_.name;'/>    <set variable='var.404' value='&var.base;/&ef.value;'/>    <if exists='&var.404;'>    <set variable='var.errfile' from='var.404'/>    </if>    </emit> -  +  </catch>    </if>   </emit>   </nooutput><if variable='var.errfile'><eval><insert file='&var.errfile;?orig-url=&page.url:url;&amp;orig-file=&page.virtfile:url;'/></eval></if><else><eval>&modvar.site.404-message:none;</eval></else>", 0, 0, 0 );    }    };       defvar("ZNoSuchFile", NoSuchFileOverride() );       defvar("404-message", #"<html>   <head>
Roxen.git/server/base_server/configuration.pike:5131:    if( search(newval,"emit source=values") == -1 )    variables[ "401-message" ]->set( newval );    }       void create()    {    ::create(   #"<nooutput><emit source=values scope=ef variable='modvar.site.401-files'>    <if not='' variable='ef.value is '>    <set variable='var.base' value=''/> -  <emit source='path'> +  <catch> +  <emit source='path' existing-only='yes'> +  <if not='' exists='/&_.name;'><throw/></if><!-- Break the loop. -->    <append variable='var.base' value='/&_.name;'/>    <set variable='var.401' value='&var.base;/&ef.value;'/>    <if exists='&var.401;'>    <set variable='var.errfile' from='var.401'/>    </if>    </emit> -  +  </catch>    </if>   </emit>   </nooutput><if variable='var.errfile'><eval><insert file='&var.errfile;?orig-url=&page.url:url;&amp;orig-file=&page.virtfile:url;'/></eval></if><else><eval>&modvar.site.401-message:none;</eval></else>", 0, 0, 0 );    }    };       defvar("ZAuthFailed", AuthFailedOverride() );       defvar("401-message", #"<html>   <head>