summaryrefslogtreecommitdiff
path: root/test/examples/www/staff.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/examples/www/staff.lua')
-rw-r--r--test/examples/www/staff.lua33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/examples/www/staff.lua b/test/examples/www/staff.lua
deleted file mode 100644
index f36df4ad..00000000
--- a/test/examples/www/staff.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-readfrom("template.html")
-TEMPLATE=read("*a")
-readfrom()
-
-PAT="|(%a%a*)|"
-
-GLOBAL={
- DATE=date("%d/%m/%Y %T"),
-}
-
-function get(i)
- if LOCAL[i] then return LOCAL[i]
- elseif GLOBAL[i] then return GLOBAL[i]
- else return "<BLINK>?"..i.."?</BLINK>" end
-end
-
-function global(t)
- for i,v in t do
- GLOBAL[i]=v
- end
-end
-
-function staff(t)
- LOCAL=t
- if t.AREAS then t.AREAS=gsub(t.AREAS,"[;,] *","\n<LI>") end
- local p,n=TEMPLATE
- if t.WWW=="" then p=gsub(p,'<A HREF="|WWW|">|NAME|</A>',"|NAME|") end
- repeat p,n=gsub(p,PAT,get) until n==0
- write(t.LOGIN,"\n")
- writeto(t.LOGIN..".html")
- write(p)
- writeto()
-end