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 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.537 2005/02/08 13:20:26 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.538 2006/02/06 13:59:17 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:3651:    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("license",    License.    LicenseVariable("../license/", VAR_NO_DEFAULT,    DLOCALE(39, "License file"),    DLOCALE(336, "The license file for this configuration."),    this_object()));         
Roxen.git/server/base_server/configuration.pike:3693:   #"<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>   </head>   <body alink=\"#000000\" bgcolor=\"#ffffff\" bottommargin=\"0\" leftmargin=\"0\" link=\"#ce5c00\" marginheight=\"2\" marginwidth=\"0\" rightmargin=\"0\" text=\"#333333\" topmargin=\"2\" vlink=\"#ce5c00\">