You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fu...@apache.org on 2013/06/30 22:53:32 UTC
svn commit: r1498180 - in /httpd/httpd/trunk/docs/manual/mod:
mod_lua.html.en mod_lua.xml.fr mod_lua.xml.meta
Author: fuankg
Date: Sun Jun 30 20:53:31 2013
New Revision: 1498180
URL: http://svn.apache.org/r1498180
Log:
Update.
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en?rev=1498180&r1=1498179&r2=1498180&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en Sun Jun 30 20:53:31 2013
@@ -782,7 +782,7 @@ local url = r:construct_url(r.uri)
<pre class="prettyprint lang-lua">
-r:mpm_query(number) -- Queries the server for MPM information using ap_mpm_query:
+r.mpm_query(number) -- Queries the server for MPM information using ap_mpm_query:
local mpm = r.mpm_query(14)
if mpm == 1 then
@@ -1033,19 +1033,14 @@ r:touch(file [,mtime]) -- Sets the file
<pre class="prettyprint lang-lua">
r:get_direntries(dir) -- Returns a table with all directory entries.
--- Return path splitted into components dir, file, ext
-function split_path(path)
- return path:match("(.-)([^\\/]-%.?([^%.\\/]*))$")
-end
-
function handle(r)
- local cwd, _, _ = split_path(r.filename)
- for _, f in ipairs(r:get_direntries(cwd)) do
- local info = r:stat(cwd .. f)
+ local dir = r.context_document_root
+ for _, f in ipairs(r:get_direntries(dir)) do
+ local info = r:stat(dir .. "/" .. f)
if info then
local mtime = os.date(fmt, info.mtime / 1000000)
local ftype = (info.filetype == 2) and "[dir] " or "[file]"
- r:puts( ("%s %s %10i %s\n"):format(ftype, mtime, info.size, f) )
+ r:puts( ("%s %s %10i %s\n"):format(ftype, mtime, info.size, f) )
end
end
end
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr?rev=1498180&r1=1498179&r2=1498180&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr Sun Jun 30 20:53:31 2013
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision : 1495666 -->
+<!-- English Revision: 1495666:1498179 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta?rev=1498180&r1=1498179&r2=1498180&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta Sun Jun 30 20:53:31 2013
@@ -8,6 +8,6 @@
<variants>
<variant>en</variant>
- <variant>fr</variant>
+ <variant outdated="yes">fr</variant>
</variants>
</metafile>