File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 6969 'formtype ' => 'TEXT ' ,
7070 'default ' => '192.168.0.105 ' ,
7171 'validators ' => array ( 0 => array ( 'type ' => 'ISIPV4 ' ,
72- 'errmsg ' => 'ip_address_error_empty ' ),
72+ 'errmsg ' => 'ip_address_error_wrong ' ),
7373 ),
7474 'value ' => '' ,
7575 'width ' => '15 ' ,
7979 'datatype ' => 'VARCHAR ' ,
8080 'formtype ' => 'TEXT ' ,
8181 'default ' => '255.255.255.0 ' ,
82- 'validators ' => array ( 0 => array ( 'type ' => 'NOTEMPTY ' ,
83- 'errmsg ' => 'netmask_error_empty ' ),
82+ 'validators ' => array ( 0 => array ( 'type ' => 'ISIPV4 ' ,
83+ 'errmsg ' => 'netmask_error_wrong ' ),
8484 ),
8585 'value ' => '' ,
8686 'width ' => '15 ' ,
9090 'datatype ' => 'VARCHAR ' ,
9191 'formtype ' => 'TEXT ' ,
9292 'default ' => '192.168.0.1 ' ,
93- 'validators ' => array ( 0 => array ( 'type ' => 'NOTEMPTY ' ,
94- 'errmsg ' => 'gateway_error_empty ' ),
93+ 'validators ' => array ( 0 => array ( 'type ' => 'ISIPV4 ' ,
94+ 'errmsg ' => 'gateway_error_wrong ' ),
9595 ),
9696 'value ' => '' ,
9797 'width ' => '15 ' ,
Original file line number Diff line number Diff line change 9898 'ip_address ' => array (
9999 'datatype ' => 'VARCHAR ' ,
100100 'formtype ' => 'TEXT ' ,
101- 'validators ' => array ( 0 => array ( 'type ' => 'NOTEMPTY ' ,
102- 'errmsg ' => 'ip_error_empty ' ),
101+ 'validators ' => array ( 0 => array ( 'type ' => 'ISIPV4 ' ,
102+ 'errmsg ' => 'ip_error_wrong ' ),
103103 1 => array ( 'type ' => 'UNIQUE ' ,
104104 'errmsg ' => 'ip_error_unique ' ),
105- 2 => array ( 'type ' => 'REGEX ' ,
106- 'regex ' => '/^[0-9\.]{7,15}$/ ' ,
107- 'errmsg ' => 'ip_err ' ),
108105 ),
109106 'default ' => '' ,
110107 'value ' => '' ,
You can’t perform that action at this time.
0 commit comments