@@ 112-116 (lines=5) @@ | ||
109 | $myts = MyTextSanitizer::getInstance(); |
|
110 | $criteria = new CriteriaCompo(); |
|
111 | ||
112 | if ( !empty( $_POST['user_uname'] ) ) { |
|
113 | $match = ( !empty( $_POST['user_uname_match'] ) ) ? intval( $_POST['user_uname_match'] ) : XOOPS_MATCH_START; |
|
114 | $ret = $myts->addSlashes( trim( $_POST['user_uname'] ) ); |
|
115 | xoops_Criteria( $criteria, 'uname', $ret, $match ); |
|
116 | } |
|
117 | ||
118 | if ( !empty( $_POST['user_name'] ) ) { |
|
119 | $match = ( !empty( $_POST['user_name_match'] ) ) ? intval( $_POST['user_name_match'] ) : XOOPS_MATCH_START; |
|
@@ 118-122 (lines=5) @@ | ||
115 | xoops_Criteria( $criteria, 'uname', $ret, $match ); |
|
116 | } |
|
117 | ||
118 | if ( !empty( $_POST['user_name'] ) ) { |
|
119 | $match = ( !empty( $_POST['user_name_match'] ) ) ? intval( $_POST['user_name_match'] ) : XOOPS_MATCH_START; |
|
120 | $ret = $myts->addSlashes( trim( $_POST['user_uname'] ) ); |
|
121 | xoops_Criteria( $criteria, 'name', $ret, $match ); |
|
122 | } |
|
123 | ||
124 | if ( !empty( $_POST['user_email'] ) ) { |
|
125 | $match = ( !empty( $_POST['user_email_match'] ) ) ? intval( $_POST['user_email_match'] ) : XOOPS_MATCH_START; |