summaryrefslogtreecommitdiff
path: root/htc/system.htc
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-10-08 20:30:28 +0200
committerHenrik Rydberg <rydberg@euromail.se>2011-10-08 20:30:28 +0200
commit5df79c53745fde5d6c3340a2979b1429cd5892c1 (patch)
tree1a81af141708b826e9c61e8a04019994fcca8298 /htc/system.htc
Initial import of htcd system 1.0
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'htc/system.htc')
-rw-r--r--htc/system.htc35
1 files changed, 35 insertions, 0 deletions
diff --git a/htc/system.htc b/htc/system.htc
new file mode 100644
index 0000000..ecae08e
--- /dev/null
+++ b/htc/system.htc
@@ -0,0 +1,35 @@
1%
2% User stuff
3%
4\def{mail.root}{xx}{
5 \log{mail root: \1}
6 \mail{\ROOT}{}{\ROOT}{server root}{\now}{\1}{text/plain}{\2}
7}
8\def{mail.admin}{xx}{
9 \log{mail admin: \1}
10 \mail{\ADMIN}{}{\ADMIN}{server admin}{\now}{\1}{text/plain}{\2}
11}
12\def{mail.user}{xx}{
13 \if{\user.id}{
14 \log{mail user: \1}
15 \mail{\ADMIN}{}{\user.email}{\HOST}{\now}{\1}{text/plain}{\2}
16 }
17}
18%
19% Modification time handling
20%
21\def{statmod}{x}{
22 [mtime:=\dirmtime{\1}];
23 \if(mtime>stat.LASTMOD)(stat.LASTMOD=mtime);
24 \1
25}
26\def{statinclude}{x}{
27 \include{\statmod{\1}}
28}
29\def{statopen}{xx?}{
30 \open{\1}{\statmod{\2}}{\3}
31}
32\def{statdb}{x}{
33 [mtime:=\dbmod{\1}];
34 \if(mtime>stat.LASTMOD)(stat.LASTMOD=mtime);
35}