4
|
1 local Luan = require "luan:Luan.luan"
|
|
2 local error = Luan.error
|
|
3 local Io = require "luan:Io.luan"
|
|
4 local Http = require "luan:http/Http.luan"
|
|
5 local Shared = require "site:/lib/Shared.luan"
|
|
6 local head = Shared.head or error()
|
|
7 local header = Shared.admin_header or error()
|
|
8
|
|
9
|
|
10 return function()
|
|
11 Io.stdout = Http.response.text_writer()
|
|
12 %>
|
|
13 <!doctype html>
|
|
14 <html>
|
|
15 <head>
|
|
16 <% head() %>
|
|
17 <title>Admin</title>
|
|
18 </head>
|
|
19 <body>
|
|
20 <% header() %>
|
|
21 <div content>
|
|
22 <h1>Admin</h1>
|
|
23 <p><a href="/">Home</a></p>
|
|
24 <p><a href="admin/config.html">Configure Forum</a></p>
|
|
25 <p><a href="admin/mail_config.html">Configure Mail</a></p>
|
|
26
|
|
27 <h2>Tools</h2>
|
|
28 <p><a href="tools/lucene.html">lucene</a></p>
|
5
|
29 <p><a href="tools/shell.html">luan shell</a></p>
|
|
30 <p><a href="tools/run">luan batch</a></p>
|
|
31 <p><a href="/tools/cookies.html">cookies</a></p>
|
|
32 <p><a href="/tools/dimensions.html">dimensions</a></p>
|
|
33 <p><a href="/tools/request.txt">request</a></p>
|
4
|
34 </div>
|
|
35 </body>
|
|
36 </html>
|
|
37 <%
|
|
38 end
|