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.603 2006/01/25 10:22:30 anders Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.604 2006/02/06 13:51:56 jonasw Exp $";   #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)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:4219:    defvar("404-files", ({ "404.inc" }),    DLOCALE(307, "No such file message override files"),    TYPE_STRING_LIST|VAR_PUBLIC,    DLOCALE(308,    "If no file match a given resource all directories above the"    " wanted file is searched for one of the files in this list."    "<p>\n"    "As an example, if the file /foo/bar/not_there.html is "    "wanted, and this list contains the default value of 404.inc,"    " these files will be searched for, in this order:</p><br /> " -  " /foo/bar/404.inc, /foo/404.inc and /404.inc." ) ); +  " /foo/bar/404.inc, /foo/404.inc and /404.inc." +  "<p>\n" +  "The inclusion file can access the form variables " +  "form.orig-file and form.orig-url to identify the original " +  "page that was requested.") );       defvar("401-files", ({ "401.inc" }),    DLOCALE(411, "Authentication failed message override files"),    TYPE_STRING_LIST|VAR_PUBLIC,    DLOCALE(412,    "With each authentication required response this file is "    "sent and displayed if the authentication fails or the user "    "choose not to authenticate at all.<p>\n"    "The file is searched for in parent directories in the same "    "manner as the no such file message override files.") );
Roxen.git/server/base_server/configuration.pike:4271:   #"<nooutput><emit source=values scope=ef variable='modvar.site.404-files'>    <set variable='var.base' value=''/>    <emit source='path'>    <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>   </emit> - </nooutput><if variable='var.errfile'><eval><insert file='&var.errfile;'/></eval></if><else><eval>&modvar.site.404-message:none;</eval></else>", 0, 0, 0 ); + </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>    <title>404 - Page Not Found</title>    <style>    .msg { font-family: verdana, helvetica, arial, sans-serif;
Roxen.git/server/base_server/configuration.pike:4391:   #"<nooutput><emit source=values scope=ef variable='modvar.site.401-files'>    <set variable='var.base' value=''/>    <emit source='path'>    <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>   </emit> - </nooutput><if variable='var.errfile'><eval><insert file='&var.errfile;'/></eval></if><else><eval>&modvar.site.401-message:none;</eval></else>", 0, 0, 0 ); + </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>    <title>401 - Authentication Failed</title>    <style>    .msg { font-family: verdana, helvetica, arial, sans-serif;