/usr/share/doc/lua-cgi/examples/index.lp is in lua-cgi 5.2~alpha2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | #!/usr/bin/env cgilua.cgi
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Welcome to Kepler!</title>
<link rel="stylesheet" href="css/doc.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<div id="container">
<div id="product">
<div id="product_logo"><a href="http://www.keplerproject.org">
<img src="img/keplerproject.gif" alt="Kepler Project logo" /></a>
</div>
<div id="product_name"><big><strong></strong></big></div>
<div id="product_description">Welcome page</div>
</div> <!-- id="product" -->
<div id="main">
<div id="navigation">
<%
local mods = {}
for file in lfs.dir("doc") do
local attr = lfs.attributes ("doc/"..file)
if attr.mode == "directory" and file ~= "." and file ~= ".." then
table.insert(mods, file)
end
end
table.sort(mods)
%>
<h1>Kepler</h1>
<ul>
<li><strong>Documentation</strong>
<ul>
<%
for _,file in ipairs(mods) do
%>
<li><strong><a href="doc/<%= file %>/index.html"><%= file %></a></strong></li>
<%
end
if not next(mods) then
%>
<li><strong>(None)</strong></li>
<%
end
%>
</ul>
</li>
<li><a href="test.lp">Tests</a></li>
</ul>
</div> <!-- id="navigation" -->
<div id="content">
<h2>Congratulations!</h2>
<p>
If you are reading this page,
<strong><%= cgilua.servervariable("SERVER_SOFTWARE") %></strong>
has been successfully configured for CGILua on your system using
<strong><%= SAPI.Info._VERSION %></strong> and <strong><%= _VERSION %></strong>.
</p>
<p>
This is a page generated by CGILua that points to the installed modules documentation.
It serves both as a documentation index and as a simple example of a dynamic Lua Page.
</p>
<h2>What now?</h2>
<p>
From here you can also run some <a href="test.lp">tests</a>.
</p>
<h2>Contact us</h2>
<p>
For more information on Kepler modules please
<a href="mailto:info-NO-SPAM-THANKS@keplerproject.org">contact us</a>.
Comments are welcome!
</p>
<p>
You can also reach other Kepler developers and users on the Kepler
Project <a href="http://luaforge.net/mail/?group_id=104">mailing list</a>.
</p>
<p>
Copyright 2004-2007 - <a href="http://www.keplerproject.org">Kepler Project</a>
</p>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a></p>
<p><small>$Id: index.lp,v 1.1 2008/06/30 14:29:59 carregal Exp $</small></p>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
|