| @@ 137-151 (lines=15) @@ | ||
| 134 | $db->addQuotes( $params['excludeuser'] ) ); |
|
| 135 | } |
|
| 136 | ||
| 137 | if ( !is_null( $params['user'] ) || !is_null( $params['excludeuser'] ) ) { |
|
| 138 | // Paranoia: avoid brute force searches (bug 17342) |
|
| 139 | // (shouldn't be able to get here without 'deletedhistory', but |
|
| 140 | // check it again just in case) |
|
| 141 | if ( !$user->isAllowed( 'deletedhistory' ) ) { |
|
| 142 | $bitmask = Revision::DELETED_USER; |
|
| 143 | } elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) { |
|
| 144 | $bitmask = Revision::DELETED_USER | Revision::DELETED_RESTRICTED; |
|
| 145 | } else { |
|
| 146 | $bitmask = 0; |
|
| 147 | } |
|
| 148 | if ( $bitmask ) { |
|
| 149 | $this->addWhere( $db->bitAnd( 'ar_deleted', $bitmask ) . " != $bitmask" ); |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||
| 153 | if ( !is_null( $params['continue'] ) ) { |
|
| 154 | $cont = explode( '|', $params['continue'] ); |
|
| @@ 222-236 (lines=15) @@ | ||
| 219 | $db->addQuotes( $params['excludeuser'] ) ); |
|
| 220 | } |
|
| 221 | ||
| 222 | if ( !is_null( $params['user'] ) || !is_null( $params['excludeuser'] ) ) { |
|
| 223 | // Paranoia: avoid brute force searches (bug 17342) |
|
| 224 | // (shouldn't be able to get here without 'deletedhistory', but |
|
| 225 | // check it again just in case) |
|
| 226 | if ( !$user->isAllowed( 'deletedhistory' ) ) { |
|
| 227 | $bitmask = Revision::DELETED_USER; |
|
| 228 | } elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) { |
|
| 229 | $bitmask = Revision::DELETED_USER | Revision::DELETED_RESTRICTED; |
|
| 230 | } else { |
|
| 231 | $bitmask = 0; |
|
| 232 | } |
|
| 233 | if ( $bitmask ) { |
|
| 234 | $this->addWhere( $db->bitAnd( 'ar_deleted', $bitmask ) . " != $bitmask" ); |
|
| 235 | } |
|
| 236 | } |
|
| 237 | ||
| 238 | if ( !is_null( $params['continue'] ) ) { |
|
| 239 | $cont = explode( '|', $params['continue'] ); |
|
| @@ 332-343 (lines=12) @@ | ||
| 329 | } |
|
| 330 | ||
| 331 | // Paranoia: avoid brute force searches (bug 17342) |
|
| 332 | if ( !is_null( $params['user'] ) || !is_null( $params['excludeuser'] ) ) { |
|
| 333 | if ( !$user->isAllowed( 'deletedhistory' ) ) { |
|
| 334 | $bitmask = Revision::DELETED_USER; |
|
| 335 | } elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) { |
|
| 336 | $bitmask = Revision::DELETED_USER | Revision::DELETED_RESTRICTED; |
|
| 337 | } else { |
|
| 338 | $bitmask = 0; |
|
| 339 | } |
|
| 340 | if ( $bitmask ) { |
|
| 341 | $this->addWhere( $this->getDB()->bitAnd( 'rc_deleted', $bitmask ) . " != $bitmask" ); |
|
| 342 | } |
|
| 343 | } |
|
| 344 | if ( $this->getRequest()->getCheck( 'namespace' ) ) { |
|
| 345 | // LogPage::DELETED_ACTION hides the affected page, too. |
|
| 346 | if ( !$user->isAllowed( 'deletedhistory' ) ) { |
|
| @@ 238-252 (lines=15) @@ | ||
| 235 | $db->addQuotes( $params['excludeuser'] ) ); |
|
| 236 | } |
|
| 237 | ||
| 238 | if ( !is_null( $params['user'] ) || !is_null( $params['excludeuser'] ) ) { |
|
| 239 | // Paranoia: avoid brute force searches (bug 17342) |
|
| 240 | // (shouldn't be able to get here without 'deletedhistory', but |
|
| 241 | // check it again just in case) |
|
| 242 | if ( !$user->isAllowed( 'deletedhistory' ) ) { |
|
| 243 | $bitmask = Revision::DELETED_USER; |
|
| 244 | } elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) { |
|
| 245 | $bitmask = Revision::DELETED_USER | Revision::DELETED_RESTRICTED; |
|
| 246 | } else { |
|
| 247 | $bitmask = 0; |
|
| 248 | } |
|
| 249 | if ( $bitmask ) { |
|
| 250 | $this->addWhere( $db->bitAnd( 'ar_deleted', $bitmask ) . " != $bitmask" ); |
|
| 251 | } |
|
| 252 | } |
|
| 253 | ||
| 254 | if ( !is_null( $params['continue'] ) ) { |
|
| 255 | $cont = explode( '|', $params['continue'] ); |
|