#!/bin/sh . /www/cgi-bin/functions.sh lock_cgiwait auto_basic_type=$($nvram get auto_check_for_upgrade) thank_for=$($nvram get thank_login) print_cgi_header print_http_header "/funcs.js" "/upgrade.js" print_nocommit_header "_auto_upgrade" "CheckNewFW.html" "auto_upgrade_detwan" cat < function loadvalue() { if('$thank_for' == '0') { if(isIE()) window.open('thank_login.html',"thankspage",'width=460,height=400,top=240,left=300,status=yes') else window.open('thank_login.html',"thankspage",'width=380,height=350,screenY=250,screenX=300,status=yes') } } loadvalue(); document.forms[0].submit(); EOF print_http_footer