#!/bin/sh . /www/cgi-bin/functions.sh if [ "`$nvram get lock_web`" != "" -a "$($nvram get lock_show_refreshpage)" != "" ];then lock_cgiwait_show return fi thank_for=$($nvram get thank_login) print_cgi_header print_http_header "/funcs.js" print_nobody_header "thank_login.html" "thank_login" cat < function enableFwCheck() { var cf = document.forms[0]; if (cf.enable.checked) cf.firstTime.value="1"; else cf.firstTime.value="0"; cf.submit(); } function loadvalue() { var cf = document.forms[0]; if('$thank_for'=='0') cf.enable.checked=false; else cf.enable.checked=true; }

EOF print_http_footer_show