|
|
|
|
@@ -341,7 +341,7 @@ jQuery.validator.addMethod("ipCheck",function(value, element) {
|
|
|
|
|
if((startPart0<128&&startPart1<128)||(startPart0>127&&startPart1>127&&startPart0<192&&startPart1<192)
|
|
|
|
|
||(startPart0>191&&startPart1>191&&startPart0<224&&startPart1<224)
|
|
|
|
|
||(startPart0>223&&startPart1>223&&startPart0<240&&startPart1<240)
|
|
|
|
|
||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许C段IP
|
|
|
|
|
||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许同段IP
|
|
|
|
|
if(ipToNumber(startIp)<=ipToNumber(endIp)){//比较IP大小
|
|
|
|
|
if((startIp.split(".")[0]!=endIp.split(".")[0])||
|
|
|
|
|
(startIp.split(".")[1]!=endIp.split(".")[1])||
|
|
|
|
|
@@ -465,7 +465,7 @@ jQuery.validator.addMethod("ipCheck",function(value, element) {
|
|
|
|
|
if((startPart0<128&&startPart1<128)||(startPart0>127&&startPart1>127&&startPart0<192&&startPart1<192)
|
|
|
|
|
||(startPart0>191&&startPart1>191&&startPart0<224&&startPart1<224)
|
|
|
|
|
||(startPart0>223&&startPart1>223&&startPart0<240&&startPart1<240)
|
|
|
|
|
||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许C段IP
|
|
|
|
|
||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许同段IP
|
|
|
|
|
if(ipToNumber(startIp)<=ipToNumber(endIp)){//比较IP大小
|
|
|
|
|
if((startIp.split(".")[0]!=endIp.split(".")[0])||
|
|
|
|
|
(startIp.split(".")[1]!=endIp.split(".")[1])||
|
|
|
|
|
@@ -636,7 +636,7 @@ jQuery.validator.addMethod("ipCheck",function(value, element) {
|
|
|
|
|
if((startPart0<128&&startPart1<128)||(startPart0>127&&startPart1>127&&startPart0<192&&startPart1<192)
|
|
|
|
|
||(startPart0>191&&startPart1>191&&startPart0<224&&startPart1<224)
|
|
|
|
|
||(startPart0>223&&startPart1>223&&startPart0<240&&startPart1<240)
|
|
|
|
|
||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许C段IP
|
|
|
|
|
||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许同段IP
|
|
|
|
|
if(ipToNumber(startIp)<=ipToNumber(endIp)){//比较IP大小
|
|
|
|
|
if((startIp.split(".")[0]!=endIp.split(".")[0])||
|
|
|
|
|
(startIp.split(".")[1]!=endIp.split(".")[1])||
|
|
|
|
|
@@ -692,7 +692,7 @@ jQuery.validator.addMethod("ipCheck",function(value, element) {
|
|
|
|
|
if((startPart0<128&&startPart1<128)||(startPart0>127&&startPart1>127&&startPart0<192&&startPart1<192)
|
|
|
|
|
||(startPart0>191&&startPart1>191&&startPart0<224&&startPart1<224)
|
|
|
|
|
||(startPart0>223&&startPart1>223&&startPart0<240&&startPart1<240)
|
|
|
|
|
||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许C段IP
|
|
|
|
|
||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许同段IP
|
|
|
|
|
if(ipToNumber(startIp)<=ipToNumber(endIp)){//比较IP大小
|
|
|
|
|
if((startIp.split(".")[0]!=endIp.split(".")[0])||
|
|
|
|
|
(startIp.split(".")[1]!=endIp.split(".")[1])||
|
|
|
|
|
|