| @@ 37-41 (lines=5) @@ | ||
| 34 | $myts = MyTextSanitizer::getInstance(); |
|
| 35 | $criteria = new CriteriaCompo(); |
|
| 36 | ||
| 37 | if ( !empty( $_POST['user_uname'] ) ) { |
|
| 38 | $match = ( !empty( $_POST['user_uname_match'] ) ) ? intval( $_POST['user_uname_match'] ) : XOOPS_MATCH_START; |
|
| 39 | $ret = $myts->addSlashes( trim( $_POST['user_uname'] ) ); |
|
| 40 | xoops_Criteria( $criteria, 'uname', $ret, $match ); |
|
| 41 | } |
|
| 42 | ||
| 43 | if ( !empty( $_POST['user_name'] ) ) { |
|
| 44 | $match = ( !empty( $_POST['user_name_match'] ) ) ? intval( $_POST['user_name_match'] ) : XOOPS_MATCH_START; |
|
| @@ 43-47 (lines=5) @@ | ||
| 40 | xoops_Criteria( $criteria, 'uname', $ret, $match ); |
|
| 41 | } |
|
| 42 | ||
| 43 | if ( !empty( $_POST['user_name'] ) ) { |
|
| 44 | $match = ( !empty( $_POST['user_name_match'] ) ) ? intval( $_POST['user_name_match'] ) : XOOPS_MATCH_START; |
|
| 45 | $ret = $myts->addSlashes( trim( $_POST['user_uname'] ) ); |
|
| 46 | xoops_Criteria( $criteria, 'name', $ret, $match ); |
|
| 47 | } |
|
| 48 | ||
| 49 | if ( !empty( $_POST['user_email'] ) ) { |
|
| 50 | $match = ( !empty( $_POST['user_email_match'] ) ) ? intval( $_POST['user_email_match'] ) : XOOPS_MATCH_START; |
|
| @@ 94-98 (lines=5) @@ | ||
| 91 | $myts = MyTextSanitizer::getInstance(); |
|
| 92 | $criteria = new CriteriaCompo(); |
|
| 93 | ||
| 94 | if ( !empty( $_POST['user_uname'] ) ) { |
|
| 95 | $match = ( !empty( $_POST['user_uname_match'] ) ) ? intval( $_POST['user_uname_match'] ) : XOOPS_MATCH_START; |
|
| 96 | $ret = $myts->addSlashes( trim( $_POST['user_uname'] ) ); |
|
| 97 | xoops_Criteria( $criteria, 'uname', $ret, $match ); |
|
| 98 | } |
|
| 99 | ||
| 100 | if ( !empty( $_POST['user_name'] ) ) { |
|
| 101 | $match = ( !empty( $_POST['user_name_match'] ) ) ? intval( $_POST['user_name_match'] ) : XOOPS_MATCH_START; |
|
| @@ 100-104 (lines=5) @@ | ||
| 97 | xoops_Criteria( $criteria, 'uname', $ret, $match ); |
|
| 98 | } |
|
| 99 | ||
| 100 | if ( !empty( $_POST['user_name'] ) ) { |
|
| 101 | $match = ( !empty( $_POST['user_name_match'] ) ) ? intval( $_POST['user_name_match'] ) : XOOPS_MATCH_START; |
|
| 102 | $ret = $myts->addSlashes( trim( $_POST['user_uname'] ) ); |
|
| 103 | xoops_Criteria( $criteria, 'name', $ret, $match ); |
|
| 104 | } |
|
| 105 | ||
| 106 | if ( !empty( $_POST['user_email'] ) ) { |
|
| 107 | $match = ( !empty( $_POST['user_email_match'] ) ) ? intval( $_POST['user_email_match'] ) : XOOPS_MATCH_START; |
|