<%@ LANGUAGE = JScript %> <% //Ensure that this page is not cached. Response.Expires = 0; %> Laybudhist Web Site Visited Statistic Collection <% //If this is the first time any user has visited //the page, initialize Application Value. remote_ip = Request.ServerVariables("REMOTE_HOST") var ip_str = new String(remote_ip) var ip_network = new String(ip_str) // ip_str = remote_ip // ip_network = ip_str.charAt(1) //ip_network = ip_str ip_network = ip_str.substr(0,3) // Response.Write("
IP :" + remote_ip +"
") // Response.Write("
Network IP :" + ip_network +"
") // Response.Write("
IP Network Str:" + ip_network.substr(0,3) +"
") // if ( remote_ip>="192.168.21.66" && remote_ip <="192.168.21.255") { if(ip_network=="192"||ip_network=="192.168") { // Response.Write(remote_ip +" skipped count as in local network " + ip_network); } else { if (Session("SessionVisited") == null ||Session("SessionVisited")=="") { var currdate = new Date() if (Application("LAYBUDDHIST_ID_VISIT_CNT") == null) { Application("LAYBUDDHIST_ID_VISIT_CNT") = 0; Application("LAYBUDDHIST_ID_LAST_VISIT") = "" } else { Application("LAYBUDDHIST_ID_VISIT_CNT") = Application("LAYBUDDHIST_ID_VISIT_CNT") + 1; Application("LAYBUDDHIST_ID_LAST_VISIT") = "" Application("LAYBUDDHIST_ID_LAST_VISIT") = Application("LAYBUDDHIST_ID_LAST_VISIT") +currdate } Session("SessionVisited") = "VISITED"; } } // end of else if the remote IP is not 192.xxxx %>