From a81fd2a780e59ab918d172d0b4cc08be8780ec68 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 24 Jul 2009 11:28:37 +0000 Subject: Changed all names to something less magical. --- server/xml/macros/header-1.0.xml | 65 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 server/xml/macros/header-1.0.xml (limited to 'server/xml/macros/header-1.0.xml') diff --git a/server/xml/macros/header-1.0.xml b/server/xml/macros/header-1.0.xml new file mode 100644 index 0000000..cea390a --- /dev/null +++ b/server/xml/macros/header-1.0.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + value = 0 + timestamp = 0 + source = 'pentominos' + + if(cpr and cpr.cpr and cpr.cpr.value and cpr.cpr.timestamp and cpr.cpr.source) + then + value = string.sub(cpr.cpr.value,1,6) .. '-' .. string.sub(cpr.cpr.value,7,11) + timestamp = cpr.cpr.timestamp + source = cpr.cpr.source + end + + return value, timestamp, source + + + + + + + + + + + -- cgit v1.2.3