File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / coova-chilli / www / chilliform.chi.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:48:25 2012 UTC (12 years, 3 months ago) by misho
Branches: coova-chilli, MAIN
CVS tags: v1_0_12, HEAD
coova-chilli

#!/bin/sh
. ./config.sh

cat <<EOF
HTTP/1.0 200 OK
Content-Type: text/javascript
Cache: none

var o = document.getElementById('logonForm');
if (o != null) {
EOF

chilliwww="http:\/\/$hs_uamlisten:$hs_uamport"
echo "o.innerHTML='"$(cat json_html.tmpl|tr '\n' ' '|sed -e "s/'/\\'/"|sed -e "s/CHILLIWWW/$chilliwww/g")"';" 
echo "}"

echo "setTimeout('chilliController.refresh()', 0);"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>