Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 237A869B0 for ; Sat, 28 May 2011 11:51:43 +0000 (UTC) Received: (qmail 49316 invoked by uid 500); 28 May 2011 11:51:43 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 49268 invoked by uid 500); 28 May 2011 11:51:42 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 49261 invoked by uid 99); 28 May 2011 11:51:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 May 2011 11:51:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 May 2011 11:51:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 48144238890D; Sat, 28 May 2011 11:51:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1128616 [1/4] - in /httpd/httpd/trunk/docs/manual: ./ howto/ mod/ Date: Sat, 28 May 2011 11:51:18 -0000 To: cvs@httpd.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110528115119.48144238890D@eris.apache.org> Author: sf Date: Sat May 28 11:51:17 2011 New Revision: 1128616 URL: http://svn.apache.org/viewvc?rev=1128616&view=rev Log: update xforms Modified: httpd/httpd/trunk/docs/manual/expr.html.en httpd/httpd/trunk/docs/manual/howto/ssi.html.en httpd/httpd/trunk/docs/manual/howto/ssi.xml.ja httpd/httpd/trunk/docs/manual/howto/ssi.xml.ko httpd/httpd/trunk/docs/manual/mod/directives.html.de httpd/httpd/trunk/docs/manual/mod/directives.html.en httpd/httpd/trunk/docs/manual/mod/directives.html.es httpd/httpd/trunk/docs/manual/mod/directives.html.ja.utf8 httpd/httpd/trunk/docs/manual/mod/directives.html.ko.euc-kr httpd/httpd/trunk/docs/manual/mod/directives.html.tr.utf8 httpd/httpd/trunk/docs/manual/mod/directives.html.zh-cn httpd/httpd/trunk/docs/manual/mod/mod_include.html.en httpd/httpd/trunk/docs/manual/mod/mod_include.html.ja.utf8 httpd/httpd/trunk/docs/manual/mod/mod_include.xml.ja httpd/httpd/trunk/docs/manual/mod/quickreference.html.de httpd/httpd/trunk/docs/manual/mod/quickreference.html.en httpd/httpd/trunk/docs/manual/mod/quickreference.html.es httpd/httpd/trunk/docs/manual/mod/quickreference.html.ja.utf8 httpd/httpd/trunk/docs/manual/mod/quickreference.html.ko.euc-kr httpd/httpd/trunk/docs/manual/mod/quickreference.html.tr.utf8 httpd/httpd/trunk/docs/manual/mod/quickreference.html.zh-cn httpd/httpd/trunk/docs/manual/upgrading.html.en httpd/httpd/trunk/docs/manual/upgrading.html.fr httpd/httpd/trunk/docs/manual/upgrading.xml.fr httpd/httpd/trunk/docs/manual/upgrading.xml.meta Modified: httpd/httpd/trunk/docs/manual/expr.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/expr.html.en?rev=1128616&r1=1128615&r2=1128616&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/expr.html.en (original) +++ httpd/httpd/trunk/docs/manual/expr.html.en Sat May 28 11:51:17 2011 @@ -148,14 +148,21 @@ listfunction ::= listfuncname "( The scheme part of the request's URI REQUEST_URI The URI of the request -REQUEST_FILENAME +DOCUMENT_URI + Same as REQUEST_URI +REQUEST_FILENAME The full local filesystem path to the file or script matching the request, if this has already been determined by the server at the time REQUEST_FILENAME is referenced. Otherwise, such as when used in virtual host context, the same value as REQUEST_URI -SCRIPT_FILENAME +SCRIPT_FILENAME Same as REQUEST_FILENAME +LAST_MODIFIED + The date and time of last modification of the file in the format + 20101231235959, if this has already been determined by + the server at the time LAST_MODIFIED is referenced. + SCRIPT_USER The user name of the owner of the script. SCRIPT_GROUP @@ -324,46 +331,50 @@ listfunction ::= listfuncname "( The name is case sensitive. Modules may register additional unary operators.

- +
NameDescription
+ True if the file exists and is a directory + True if the file (or dir or special) exists + True if the file exists and is regular file + True if the file exists and is symlink + (same as -L) + impact your server's performance! - - - - - + impact your server's performance! + + + + + + + - + True otherwise. + +
NameDescriptionRestricted
-d The argument is treated as a filename. - True if the file exists and is a directory
yes
-e The argument is treated as a filename. - True if the file (or dir or special) exists
yes
-f The argument is treated as a filename. - True if the file exists and is regular file
yes
-L The argument is treated as a filename. - True if the file exists and is symlink
yes
-h The argument is treated as a filename. True if the file exists and is symlink - (same as -L)
yes
-F True if string is a valid file, accessible via all the server's currently-configured access controls for that path. This uses an internal subrequest to do the check, so use it with care - it can - impact your server's performance!
-U True if string is a valid URL, accessible via all the server's currently-configured access controls for that path. This uses an internal subrequest to do the check, so use it with care - it can - impact your server's performance!
-nTrue if string is not empty
-zTrue if string is empty
-T
-AAlias for -U
-nTrue if string is not empty
-zTrue if string is empty
-T False if string is empty, "0", "off", "false", or "no" (case insensitive). - True otherwise.
-R
-R Same as "%{REMOTE_ADDR} -ipmatch ...", but more efficient -
+

The operators marked as "restricted" are not available in some modules + like mod_include.

top

Functions

@@ -373,34 +384,39 @@ listfunction ::= listfuncname "( a string. Functions names are not case sensitive. Modules may register additional functions.

- +
NameDescription
- + - + - + - + - + + osenv - + - + - + - + - + - +
NameDescriptionRestricted
req, httpGet HTTP request header
Get HTTP request header
respGet HTTP response header
Get HTTP response header
reqenvLookup request environment variable
Lookup request environment variable
osenvLookup operating system environment variable
Lookup operating system environment variable
noteLookup request note
Lookup request note
env Return first match of note, reqenv, - osenv
tolowerConvert string to lower case
Convert string to lower case
toupperConvert string to uppser case
Convert string to uppser case
escapeEscape special characters in %hex encoding
Escape special characters in %hex encoding
unescapeUnescape %hex encoded string, leaving URL-special characters encoded (XXX: describe better)
Unescape %hex encoded string, leaving URL-special characters + encoded (XXX: describe better)
fileRead contents from a file
Read contents from a fileyes
filesizeReturn size of a file (or 0 if file does not exist or is not regular file)
Return size of a file (or 0 if file does not exist or is not + regular file)yes
+

The functions marked as "restricted" are not available in some modules + like mod_include.

+

In addition to string-valued functions, there are also list-valued functions which take one string as argument and return a wordlist, i.e. a list of strings. The wordlist can be used with the special -in operator. Modified: httpd/httpd/trunk/docs/manual/howto/ssi.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/ssi.html.en?rev=1128616&r1=1128615&r2=1128616&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/howto/ssi.html.en (original) +++ httpd/httpd/trunk/docs/manual/howto/ssi.html.en Sat May 28 11:51:17 2011 @@ -440,7 +440,8 @@ modified?

Then, in your SSI-enabled document, you might do the following:

- <!--#if expr="${Mac} && ${InternetExplorer}" -->
+ <!--#if expr="-T reqenv('Mac') && + -T reqenv('InternetExplorer')" -->
Apologetic text goes here
<!--#else -->
Cool JavaScript code goes here
Modified: httpd/httpd/trunk/docs/manual/howto/ssi.xml.ja URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/ssi.xml.ja?rev=1128616&r1=1128615&r2=1128616&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/howto/ssi.xml.ja [utf-8] (original) +++ httpd/httpd/trunk/docs/manual/howto/ssi.xml.ja [utf-8] Sat May 28 11:51:17 2011 @@ -1,7 +1,7 @@ - + + +