#!/bin/sh . /www/cgi-bin/functions.sh lock_cgiwait skeyword=$($nvram get block_skeyword) endis_Trusted_IP=$($nvram get block_endis_Trusted_IP) KeyWord_DomainList=$($nvram get block_KeyWord_DomainList) bs_trustedip=$($nvram get block_trustedip) lan_get_ip=$($nvram get lan_ipaddr) lan_get_netmask=$($nvram get lan_netmask) print_cgi_header print_http_header "/funcs.js" "/block_sites.js" print_body_header "_BKS_keyword" "block_sites.html" "block_sites" print_table_header "" cat < var lan_ip="$lan_get_ip" var lan_subnet="$lan_get_netmask" function loadvalue() { passForm=document.forms[0]; var selectnum='$skeyword'; var bs_trustedip='$bs_trustedip' if (parseInt(selectnum)=="") selectnum=0; show_trustedip(); passForm.skeyword[selectnum].checked = true; if('$endis_Trusted_IP'=='0') { passForm.trustipenble.checked = false; passForm.cfTrusted_IPAddress4.disabled=true; passForm.cfTrusted_IPAddress4.value=""; } else { passForm.trustipenble.checked = true; passForm.cfTrusted_IPAddress4.disabled=false; var trusted_array=new Array(); trusted_array=bs_trustedip.split('.'); passForm.cfTrusted_IPAddress4.value=trusted_array[3]; } tbox=passForm.cfKeyWord_DomainList; EOF KeyWord_DomainList=$($nvram get block_KeyWord_DomainList | sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' -e 's/ . . . EOF print_http_footer