Index: trunk/extensions/CheckUser.php |
— | — | @@ -55,16 +55,23 @@ |
56 | 56 | $encUser = htmlspecialchars( $user ); |
57 | 57 | |
58 | 58 | $wgOut->addHTML( <<<EOT |
| 59 | +<table border=0 cellpadding=5> |
59 | 60 | <form name="checkuser" action="$action" method=post> |
60 | | -<table border=0 cellpadding=5><tr><td> |
| 61 | +<tr><td> |
61 | 62 | IP: |
62 | 63 | </td><td> |
63 | 64 | <input type="text" name="ip" value="$encIp" width=50 /> <input type="submit" name="subip" value="OK" /> |
64 | | -</td></tr><tr><td> |
| 65 | +</td></tr> |
| 66 | +</form> |
| 67 | + |
| 68 | +<form name="checkuser" action="$action" method=post> |
| 69 | +<tr><td> |
65 | 70 | User: |
66 | 71 | </td><td> |
67 | 72 | <input type="text" name="user" value="$encUser" width=50 /> <input type="submit" name="subuser" value="OK" /> |
68 | | -</td></tr></table> |
| 73 | +</td></tr> |
| 74 | +</form> |
| 75 | +</table> |
69 | 76 | EOT |
70 | 77 | ); |
71 | 78 | } |
— | — | @@ -110,7 +117,6 @@ |
111 | 118 | * @return array conditions |
112 | 119 | */ |
113 | 120 | function getIpConds( $db, $ip ) { |
114 | | - $split = explode( $ip, '/', 2 ); |
115 | 121 | // haaaack |
116 | 122 | if( preg_match( '#^(\d+)\.(\d+)\.(\d+)\.(\d+)/(\d+)$#', $ip, $matches ) ) { |
117 | 123 | list( $junk, $a, $b, $c, $d, $bits ) = $matches; |