summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-08-07 23:04:08 +0200
committerChristian Pointner <equinox@spreadspace.org>2016-08-07 23:04:08 +0200
commitd2b68f50511036743c3b9aafa2dbf1d8f2ac5999 (patch)
tree4b255426cc8fe59371e8da3d35069737c3b6a328
parent230902a9dfa1e2478a5b172c6741035cd3e2e6aa (diff)
nginx does not support nested ifs...
-rw-r--r--bssid.shtml9
-rw-r--r--bssid2.shtml8
2 files changed, 9 insertions, 8 deletions
diff --git a/bssid.shtml b/bssid.shtml
index cb17e36..05c65da 100644
--- a/bssid.shtml
+++ b/bssid.shtml
@@ -4,14 +4,7 @@
<!--#elif expr="$POL = r"--><!--#set var="POLCODED" value="2"-->
<!--#endif-->
<!--#if expr="$CHAN = /^([1-9]|1[0-3])$/"-->
- <!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#if expr="$CHAN = 3"-->2<!--#else--><!--#echo var="CHAN"--><!--#endif-->:CA:FF:EE:BA:BE<br/>
- <em>oder / ali / or</em> <br/>
- C<!--#echo var="POLCODED"-->:00:24:00:C0:<!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#echo var="CHAN"-->
-<!--#elif expr="$CHAN = /^(36|40|44|48|52|56|60|64)$/"-->
- C<!--#echo var="POLCODED"-->:00:50:00:C0:<!--#echo var="CHAN"-->
-<!--#elif expr="$CHAN = /^1(00|04|08|12|16|20|24|28|32|36|40)$/"-->
- <!--#set var="CHANLOW" value="$1"-->
- C<!--#echo var="POLCODED"-->:00:50:00:C1:<!--#echo var="CHANLOW"-->
+<!--#include file="bssid.shtml"-->
<!--#else-->??:??:??:C?:??
<!--#endif-->
diff --git a/bssid2.shtml b/bssid2.shtml
new file mode 100644
index 0000000..2d877f2
--- /dev/null
+++ b/bssid2.shtml
@@ -0,0 +1,8 @@
+<!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#if expr="$CHAN = 3"-->2<!--#else--><!--#echo var="CHAN"--><!--#endif-->:CA:FF:EE:BA:BE<br/>
+<em>oder / ali / or</em> <br/>
+C<!--#echo var="POLCODED"-->:00:24:00:C0:<!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#echo var="CHAN"-->
+<!--#elif expr="$CHAN = /^(36|40|44|48|52|56|60|64)$/"-->
+C<!--#echo var="POLCODED"-->:00:50:00:C0:<!--#echo var="CHAN"-->
+<!--#elif expr="$CHAN = /^1(00|04|08|12|16|20|24|28|32|36|40)$/"-->
+<!--#set var="CHANLOW" value="$1"-->
+C<!--#echo var="POLCODED"-->:00:50:00:C1:<!--#echo var="CHANLOW"-->