r65644 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65643‎ | r65644 | r65645 >
Date:22:57, 28 April 2010
Author:siebrand
Status:deferred
Tags:
Comment:
stylize.php, trailing whitespace removed
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser.i18n.php (modified) (history)
  • /trunk/extensions/CheckUser/CheckUser.php (modified) (history)
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)
  • /trunk/extensions/CheckUser/archives/patch-cu_changes_indexes.sql (modified) (history)
  • /trunk/extensions/CheckUser/archives/patch-cu_changes_indexes2.sql (modified) (history)
  • /trunk/extensions/CheckUser/checkuser.js (modified) (history)
  • /trunk/extensions/CheckUser/cu_changes.sql (modified) (history)
  • /trunk/extensions/CheckUser/cu_log.sql (modified) (history)
  • /trunk/extensions/CheckUser/cu_log_import.inc (modified) (history)
  • /trunk/extensions/CheckUser/importLog.php (modified) (history)
  • /trunk/extensions/CheckUser/install.inc (modified) (history)
  • /trunk/extensions/CheckUser/install.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -6,7 +6,6 @@
77 }
88
99 class CheckUser extends SpecialPage {
10 -
1110 /**
1211 * Constructor -- set up the new special page
1312 */
@@ -34,7 +33,7 @@
3534 wfMsgForContent( 'checkuser-log-subpage' ),
3635 'Log'
3736 );
38 -
 37+
3938 foreach ( $logMatches as $log ) {
4039 if ( str_replace( '_', ' ', $wgContLang->lc( $subpage ) )
4140 == str_replace( '_ ', ' ', $wgContLang->lc( $log ) ) ) {
@@ -344,9 +343,9 @@
345344 # Ordering by the latest timestamp makes a small filesort on the IP list
346345 $cu_changes = $dbr->tableName( 'cu_changes' );
347346 $use_index = $dbr->useIndexClause( 'cuc_user_ip_time' );
348 - $sql = "SELECT cuc_ip,cuc_ip_hex, COUNT(*) AS count,
349 - MIN(cuc_timestamp) AS first, MAX(cuc_timestamp) AS last
350 - FROM $cu_changes $use_index WHERE cuc_user = $user_id AND $time_conds
 347+ $sql = "SELECT cuc_ip,cuc_ip_hex, COUNT(*) AS count,
 348+ MIN(cuc_timestamp) AS first, MAX(cuc_timestamp) AS last
 349+ FROM $cu_changes $use_index WHERE cuc_user = $user_id AND $time_conds
351350 GROUP BY cuc_ip,cuc_ip_hex ORDER BY last DESC LIMIT 5001";
352351
353352 $ret = $dbr->query( $sql, __METHOD__ );
@@ -499,9 +498,9 @@
500499 if ( isset( $rangecount ) && $rangecount > 5000 ) {
501500 $use_index = $dbr->useIndexClause( $index );
502501 $sql = "SELECT cuc_ip_hex, COUNT(*) AS count,
503 - MIN(cuc_timestamp) AS first, MAX(cuc_timestamp) AS last
 502+ MIN(cuc_timestamp) AS first, MAX(cuc_timestamp) AS last
504503 FROM $cu_changes $use_index
505 - WHERE $ip_conds AND $time_conds
 504+ WHERE $ip_conds AND $time_conds
506505 GROUP BY cuc_ip_hex ORDER BY cuc_ip_hex LIMIT 5001";
507506 $ret = $dbr->query( $sql, __METHOD__ );
508507 # List out each IP that has edits
@@ -545,7 +544,7 @@
546545 # OK, do the real query...
547546 $use_index = $dbr->useIndexClause( $index );
548547 $sql = "SELECT cuc_namespace,cuc_title,cuc_user,cuc_user_text,cuc_comment,cuc_actiontext,
549 - cuc_timestamp,cuc_minor,cuc_page_id,cuc_type,cuc_this_oldid,cuc_last_oldid,cuc_ip,cuc_xff,cuc_agent
 548+ cuc_timestamp,cuc_minor,cuc_page_id,cuc_type,cuc_this_oldid,cuc_last_oldid,cuc_ip,cuc_xff,cuc_agent
550549 FROM $cu_changes $use_index WHERE $ip_conds AND $time_conds ORDER BY cuc_timestamp DESC LIMIT 5001";
551550 $ret = $dbr->query( $sql, __METHOD__ );
552551
@@ -640,7 +639,7 @@
641640 $wgOut->addHTML( wfMsgExt( 'checkuser-limited', array( 'parse' ) ) );
642641 $use_index = $dbr->useIndexClause( 'cuc_user_ip_time' );
643642 $sql = "SELECT * FROM $cu_changes $use_index
644 - WHERE $user_cond AND $time_conds
 643+ WHERE $user_cond AND $time_conds
645644 ORDER BY cuc_ip ASC, cuc_timestamp DESC LIMIT 5000";
646645 $ret = $dbr->query( $sql, __METHOD__ );
647646 # Try to optimize this query
@@ -677,7 +676,7 @@
678677 wfRestoreWarnings();
679678 # OK, do the real query...
680679 $use_index = $dbr->useIndexClause( 'cuc_user_ip_time' );
681 - $sql = "SELECT * FROM $cu_changes $use_index
 680+ $sql = "SELECT * FROM $cu_changes $use_index
682681 WHERE $user_cond AND $time_conds ORDER BY cuc_timestamp DESC LIMIT 5000";
683682 $ret = $dbr->query( $sql, __METHOD__ );
684683
@@ -761,8 +760,8 @@
762761 if ( isset( $rangecount ) && $rangecount > 10000 ) {
763762 $use_index = $dbr->useIndexClause( $index );
764763 $sql = "SELECT cuc_ip_hex, COUNT(*) AS count,
765 - MIN(cuc_timestamp) AS first, MAX(cuc_timestamp) AS last
766 - FROM $cu_changes $use_index WHERE $ip_conds AND $time_conds
 764+ MIN(cuc_timestamp) AS first, MAX(cuc_timestamp) AS last
 765+ FROM $cu_changes $use_index WHERE $ip_conds AND $time_conds
767766 GROUP BY cuc_ip_hex ORDER BY cuc_ip_hex LIMIT 5001";
768767 $ret = $dbr->query( $sql, __METHOD__ );
769768 # List out each IP that has edits
@@ -795,7 +794,7 @@
796795 }
797796 $s .= '</ol>';
798797 $dbr->freeResult( $ret );
799 -
 798+
800799 $wgOut->addHTML( $s );
801800 return;
802801 } elseif ( isset( $rangecount ) && !$rangecount ) {
@@ -807,8 +806,8 @@
808807 global $wgMemc;
809808 # OK, do the real query...
810809 $use_index = $dbr->useIndexClause( $index );
811 - $sql = "SELECT cuc_user_text, cuc_timestamp, cuc_user, cuc_ip, cuc_agent, cuc_xff
812 - FROM $cu_changes $use_index WHERE $ip_conds AND $time_conds
 810+ $sql = "SELECT cuc_user_text, cuc_timestamp, cuc_user, cuc_ip, cuc_agent, cuc_xff
 811+ FROM $cu_changes $use_index WHERE $ip_conds AND $time_conds
813812 ORDER BY cuc_timestamp DESC LIMIT 10000";
814813 $ret = $dbr->query( $sql, __METHOD__ );
815814
@@ -1342,8 +1341,8 @@
13431342 function __construct( $specialPage, $searchConds, $y, $m ) {
13441343 parent::__construct();
13451344 /*
1346 - $this->messages = array_map( 'wfMsg',
1347 - array( 'comma-separator', 'checkuser-log-userips', 'checkuser-log-ipedits', 'checkuser-log-ipusers',
 1345+ $this->messages = array_map( 'wfMsg',
 1346+ array( 'comma-separator', 'checkuser-log-userips', 'checkuser-log-ipedits', 'checkuser-log-ipusers',
13481347 'checkuser-log-ipedits-xff', 'checkuser-log-ipusers-xff' ) );*/
13491348
13501349 $this->getDateCond( $y, $m );
Index: trunk/extensions/CheckUser/CheckUser.i18n.php
@@ -15,7 +15,7 @@
1616 $messages['en'] = array(
1717 'checkuser-summary' => 'This tool scans recent changes to retrieve the IP addresses used by a user or show the edit/user data for an IP address.
1818 Users and edits by a client IP address can be retrieved via XFF headers by appending the IP address with "/xff". IPv4 (CIDR 16-32) and IPv6 (CIDR 96-128) are supported.
19 -No more than 5000 edits will be returned for performance reasons.
 19+No more than 5,000 edits will be returned for performance reasons.
2020 Use this in accordance with policy.',
2121 'checkuser-desc' => 'Grants users with the appropriate permission the ability to check user\'s IP addresses and other information',
2222 'checkuser-logcase' => 'The log search is case sensitive.',
@@ -56,7 +56,7 @@
5757 'checkuser-wasblocked' => 'Previously blocked',
5858 'checkuser-localonly' => 'Not unified',
5959 'checkuser-massblock' => 'Block selected users',
60 - 'checkuser-massblock-text' => 'Selected accounts will be blocked indefinitely, with autoblocking enabled and account creation disabled.
 60+ 'checkuser-massblock-text' => 'Selected accounts will be blocked indefinitely, with autoblocking enabled and account creation disabled.
6161 IP addresses will be blocked for 1 week for IP users only and with account creation disabled.',
6262 'checkuser-blocktag' => 'Replace user pages with:',
6363 'checkuser-blocktag-talk' => 'Replace talk pages with:',
@@ -165,7 +165,7 @@
166166 See screenshot "[http://www.mediawiki.org/wiki/Extension:CheckUser#Basic_interface Example log]".
167167
168168 Initiator means the CheckUser who checks someone\'s information.',
169 - 'checkuser-ipeditcount' => "This information is shown on the result page of [[mw:Extension:CheckUser#Basic_interface|Special:CheckUser]] (when doing the ''{{int:Checkuser-users}}'' check), next to the individual listed IPs. See screenshot \"Example user name check\".
 169+ 'checkuser-ipeditcount' => "This information is shown on the result page of [[mw:Extension:CheckUser#Basic_interface|Special:CheckUser]] (when doing the ''{{int:Checkuser-users}}'' check), next to the individual listed IPs. See screenshot \"Example user name check\".
170170
171171 \$1 is an estimate of the total number of edits from the respective IP (i.e. the number of edits by all users, not only by the requested user). As the comment in the code says: ''If we get some results, it helps to know if the IP in general has a lot more edits, e.g. “tip of the iceberg”…''",
172172 'checkuser-log-return' => 'Link label on log of CheckUser searches. See screenshot "[http://www.mediawiki.org/wiki/Extension:CheckUser#Basic_interface Example log]".',
@@ -449,7 +449,7 @@
450450 */
451451 $messages['arz'] = array(
452452 'checkuser-summary' => 'الوسيلة دى بتدور فى احدث التغييرات علشان ترجع الايبيهات اللى استعملها يوزر او علشان تعرض بيانات التعديل/اليوزر لعنوان الاى بى.
453 -اليوزرز و التعديلات اللى اتعملت من أى بى عميل ممكن تترجع عن طريق عناوين XFF لو زودت على الاى بى "/xff".
 453+اليوزرز و التعديلات اللى اتعملت من أى بى عميل ممكن تترجع عن طريق عناوين XFF لو زودت على الاى بى "/xff".
454454 IPv4 (CIDR 16-32) و IPv6 (CIDR 96-128) مدعومين.
455455 مش اكتر من 5000 تعديل ممكن تتعرض بسبب الاداء.
456456 استخدم دا بطريقة موافقة للسياسة.',
@@ -919,7 +919,7 @@
920920 'checkuser-cidr-res' => 'Lijorenn CIDR boutin :',
921921 'checkuser-empty' => "N'eus pennad ebet er marilh",
922922 'checkuser-nomatch' => "N'eus bet kavet netra.",
923 - 'checkuser-nomatch-edits' => "Kenglot ebet kavet.
 923+ 'checkuser-nomatch-edits' => "Kenglot ebet kavet.
924924 D'an $1 da $2 eo bet graet ar c'hemm diwezhañ.",
925925 'checkuser-check' => 'Gwiriañ',
926926 'checkuser-log-fail' => "Dibosupl ouzhpennañ ar moned d'ar marilh",
@@ -1476,7 +1476,7 @@
14771477 */
14781478 $messages['diq'] = array(
14791479 'checkuser-summary' => 'Ena xacet vurnayişanê neweyî skan keno ke adresanê IPyan reyan biyaro ke bimucne datayê karberî ser yew adresê IPyî.
1480 -Karberan u vurnayîşan ke yew IPyê karberî kerd reyna yeno pê XFF u "/xff". IPv4 (CIDR 16-32) u IPv6 (CIDR 96-128) rê zi destek beno.
 1480+Karberan u vurnayîşan ke yew IPyê karberî kerd reyna yeno pê XFF u "/xff". IPv4 (CIDR 16-32) u IPv6 (CIDR 96-128) rê zi destek beno.
14811481 5000 zafyer vurnayîşan sero netice nidano, qe performans hedi beno.
14821482 Ena politika ma ser kar bike.',
14831483 'checkuser-desc' => 'Karberan rê destur bide ke adresanê IPyan u enformasyonê bînan kontrol bike',
@@ -1507,7 +1507,7 @@
15081508 'checkuser-cidr-res' => 'CIDRê muşterekî',
15091509 'checkuser-empty' => 'Ena log de çik çin o.',
15101510 'checkuser-nomatch' => 'Çik çin o.',
1511 - 'checkuser-nomatch-edits' => 'Çik çin o.
 1511+ 'checkuser-nomatch-edits' => 'Çik çin o.
15121512 Vurnayîşê tewr penî seet $1 u rocê $2 de biyo.',
15131513 'checkuser-check' => 'Kontrol bike',
15141514 'checkuser-log-fail' => 'Nieşkeno log debiker',
@@ -1648,7 +1648,7 @@
16491649 $messages['el'] = array(
16501650 'checkuser-summary' => 'Αυτό το εργαλείο σαρώνει τις πρόσφατες αλλαγές για να ανακτήσει τις IP διευθύνσεις που χρησιμοποιούνται από ένα χρήστη ή για να δείξει τα δεδομένα επεξεργασιών/χρηστών για μία IP.
16511651 Χρήστες και επεξεργασίες από μία σταθερή IP μπορούν να ανακτηθούν μέσω XFF επικεφαλίδων προσαρτώντας "/xff" στην IP. Το IPv4 (CIDR 16-32) και το IPv6 (CIDR 96-128) υποστηρίζονται.
1652 -Όχι περισσότερες από 5000 επεξεργασίες θα επιστραφούν για λόγους απόδοσης.
 1652+Όχι περισσότερες από 5000 επεξεργασίες θα επιστραφούν για λόγους απόδοσης.
16531653 Χρησιμοποιήστε αυτό σύμφωνα με την πολιτική.',
16541654 'checkuser-desc' => 'Παρέχει στους χρήστες με την κατάλληλη άδεια την ικανότητα να ελέγχουν τη διεύθυνση IP ενός χρήστη καθώς και άλλες πληροφορίες',
16551655 'checkuser-logcase' => 'Η αναζήτηση στο αρχείο καταγραφής διακρίνει πεζά από κεφαλαία.',
@@ -1689,7 +1689,7 @@
16901690 'checkuser-wasblocked' => 'Προηγουμένως φραγμένος',
16911691 'checkuser-localonly' => 'Μη ενοποιημένο',
16921692 'checkuser-massblock' => 'Επιβολή φραγής στους επιλεγμένους χρήστες',
1693 - 'checkuser-massblock-text' => "Οι επιλεγμένοι λογαριασμοί θα φραγούν επ' αόριστον, με την αυτόματη φραγή ενεργοποιημένη και με αδύνατη τη δημιουργία λογαριασμού.
 1693+ 'checkuser-massblock-text' => "Οι επιλεγμένοι λογαριασμοί θα φραγούν επ' αόριστον, με την αυτόματη φραγή ενεργοποιημένη και με αδύνατη τη δημιουργία λογαριασμού.
16941694 Οι διευθύνσεις IP θα φραγούν για 1 εβδομάδα μόνο για τους χρήστες από IP και με αδύνατη τη δημιουργία λογαριασμού.",
16951695 'checkuser-blocktag' => 'Αντικατάσταση των σελίδων των χρηστών με:',
16961696 'checkuser-blocktag-talk' => 'Αντικαταστήστε τις σελίδες συζήτησης με:',
@@ -1781,7 +1781,7 @@
17821782 'checkuser-block-noreason' => 'Vi devas doni kialon por la forbaroj.',
17831783 'checkuser-noreason' => 'Vi devas doni kialon por ĉi tiu informomendo.',
17841784 'checkuser-accounts' => '$1 {{PLURAL:$1|nova konto|novaj kontoj}}',
1785 - 'checkuser-too-many' => 'Tro da rezultoj, laŭ taskoj de serĉomendo. Bonvolu malvastigi la CIDR.
 1785+ 'checkuser-too-many' => 'Tro da rezultoj, laŭ taskoj de serĉomendo. Bonvolu malvastigi la CIDR.
17861786 Jen la IP-adresoj uzitaj (maksimume 5000, ordigita laŭ adresoj):',
17871787 'checkuser-user-nonexistent' => 'La donata uzanto ne ekzistas.',
17881788 'checkuser-search-form' => 'Trovi protokolerojn en kiu la $1 estas $2',
@@ -1864,7 +1864,7 @@
18651865 'checkuser-wasblocked' => 'Bloqueado anteriormente',
18661866 'checkuser-localonly' => 'No unificada',
18671867 'checkuser-massblock' => 'Bloquear usuarios seleccionados',
1868 - 'checkuser-massblock-text' => 'Las cuentas seleccionadas serán bloqueadas de forma indefinida, con el autobloqueo habilitado y la creación de cuentas deshabilitada.
 1868+ 'checkuser-massblock-text' => 'Las cuentas seleccionadas serán bloqueadas de forma indefinida, con el autobloqueo habilitado y la creación de cuentas deshabilitada.
18691869 Las direcciones IP serán bloqueadas durante una semana para usuarios anónimos sólamente con la creación de cuentas deshabilitada.',
18701870 'checkuser-blocktag' => 'Reemplazar páginas del usuario con:',
18711871 'checkuser-blocktag-talk' => 'Reemplazar las páginas de discusión con:',
@@ -2464,7 +2464,7 @@
24652465 'checkuser-wasblocked' => 'Bloqueados anteriormente',
24662466 'checkuser-localonly' => 'Sen unificar',
24672467 'checkuser-massblock' => 'Bloquear os usuarios seleccionados',
2468 - 'checkuser-massblock-text' => 'As contas seleccionadas serán bloqueadas indefinidamente, co bloqueo automático permitido e a creación de contas deshabilitada.
 2468+ 'checkuser-massblock-text' => 'As contas seleccionadas serán bloqueadas indefinidamente, co bloqueo automático permitido e a creación de contas deshabilitada.
24692469 Os enderezos IP serán bloqueados cun tempo de duración dunha semana só para os usuarios con IP e coa creación de contas deshabilitada.',
24702470 'checkuser-blocktag' => 'Substituír as páxinas de usuario por:',
24712471 'checkuser-blocktag-talk' => 'Substituír as conversas con:',
@@ -3289,7 +3289,7 @@
32903290 'checkuser-block-noreason' => 'È obbligatorio fornire una motivazione per i blocchi.',
32913291 'checkuser-noreason' => 'È necessario fornire una motivazione per questa query.',
32923292 'checkuser-accounts' => '$1 {{PLURAL:$1|nuovo|nuovi}} account',
3293 - 'checkuser-too-many' => 'Troppi risultati (per la query), usa un CIDR più ristretto.
 3293+ 'checkuser-too-many' => 'Troppi risultati (per la query), usa un CIDR più ristretto.
32943294 Di seguito sono indicati gli indirizzi IP utilizzati (fino a un massimo di 5000, ordinati per indirizzo):',
32953295 'checkuser-user-nonexistent' => "L'utente indicato non esiste.",
32963296 'checkuser-search-form' => 'Trova le voci del log per le quali $1 è $2',
@@ -3495,7 +3495,7 @@
34963496 'checkuser-block-limit' => 'Cacahing panganggo sing dipilih kakèhan.',
34973497 'checkuser-block-noreason' => 'Panjenengan kudu mènèhi alesan pamblokiran',
34983498 'checkuser-accounts' => '$1 {{PLURAL:$1|akun|akun-akun}} anyar',
3499 - 'checkuser-too-many' => 'Kakèhan pituwas (miturut estimasi piakonan), tulung CIDR diciyutaké.
 3499+ 'checkuser-too-many' => 'Kakèhan pituwas (miturut estimasi piakonan), tulung CIDR diciyutaké.
35003500 Ing ngisor iki kapacak alamat-alamat IP sing dianggo (maks. 5.000, diurutaké miturut alamat):',
35013501 'checkuser-user-nonexistent' => 'Panganggo iki ora ana.',
35023502 'checkuser-search-form' => 'Temokna cathetan log ing ngendi $1 iku $2',
@@ -3533,7 +3533,7 @@
35343534 'checkuser-gblocked' => 'გლობალურად ბლოკირებული',
35353535 'checkuser-locked' => 'დახურვა',
35363536 'checkuser-massblock' => 'დაბლოკეთ არჩეული მომხმარებლები',
3537 - 'checkuser-massblock-text' => 'არჩეული ანგარიშები დაიბლოკება ახალი ანგარიშების ნებართვის შექმნის გარეშე.
 3537+ 'checkuser-massblock-text' => 'არჩეული ანგარიშები დაიბლოკება ახალი ანგარიშების ნებართვის შექმნის გარეშე.
35383538 IP დაიბლოკება ერთი კვირით.',
35393539 'checkuser-blocktag' => 'ჩაანაცვლეთ მომხმარებლის გვერდები:',
35403540 'checkuser-blocktag-talk' => 'შეცვალეთ მომხმარებლის გვერდები:',
@@ -4244,7 +4244,7 @@
42454245 'checkuser-wasblocked' => 'Претходно блокиран',
42464246 'checkuser-localonly' => 'Необединета',
42474247 'checkuser-massblock' => 'Блокирај ги избраните корисници',
4248 - 'checkuser-massblock-text' => 'Избраните сметки ќе бидат трајно блокирани, со овозможено автоблокирање и оневозможено создавање на сметки.
 4248+ 'checkuser-massblock-text' => 'Избраните сметки ќе бидат трајно блокирани, со овозможено автоблокирање и оневозможено создавање на сметки.
42494249 IP адресите ќе бидат блокирани 1 недела за само за корисници со IP адреса, и со оневозможено создавање на сметка.',
42504250 'checkuser-blocktag' => 'Замени ги корисничките страници со:',
42514251 'checkuser-blocktag-talk' => 'Замени ги страниците за разговор со:',
@@ -4336,7 +4336,7 @@
43374337 'checkuser-block-noreason' => 'തടയലിനു ഒരു കാരണം താങ്കൾ നൽകുക.',
43384338 'checkuser-noreason' => 'ഈ ചോദ്യത്തിനു താങ്കൾ നിർബന്ധമായും കാരണം നൽകേണ്ടതാണ്.',
43394339 'checkuser-accounts' => 'പുതിയ {{PLURAL:$1|അംഗത്വം|$1അംഗത്വങ്ങൾ}}',
4340 - 'checkuser-too-many' => 'വളരെയധികം ഫലങ്ങൾ (ലഭിച്ച ക്വറി അനുസരിച്ച്). CIDR ചുരുക്കുക.
 4340+ 'checkuser-too-many' => 'വളരെയധികം ഫലങ്ങൾ (ലഭിച്ച ക്വറി അനുസരിച്ച്). CIDR ചുരുക്കുക.
43414341 ഉപയോഗിച്ച IPകൾ താഴെ പ്രദർശിപ്പിച്ചിരിക്കുന്നു (പരമാവധി 5000, വിലാസം അനുസരിച്ച് ക്രമീകരിച്ചത്):',
43424342 'checkuser-user-nonexistent' => 'ഇങ്ങനൊരു ഉപയോക്താവ് വിക്കിയിൽ നിലവിലില്ല.',
43434343 'checkuser-search-form' => '$1, $2 ആയ പ്രവർത്തനരേഖാ ഇനങ്ങൾ കണ്ടെത്തുന്നു',
@@ -4738,7 +4738,7 @@
47394739
47404740 Brukarar og endringar frå ein klient-IP kan verta henta gjennom XFF ved å leggja til «/xff» bak IP-en. IPv4 (CIDR 16-32) og IPv6 (CIDR 96-128) er støtta.
47414741
4742 -Av yteårsaker vert høgst 5000 endringar viste.
 4742+Av yteårsaker vert høgst 5000 endringar viste.
47434743 Nytt dette verktøyet i samsvar med retningsliner.',
47444744 'checkuser-desc' => 'Gjev brukarar med dei rette rettane moglegheita til å sjekka IP-adressene til og annan informasjon om brukarar.',
47454745 'checkuser-logcase' => 'Loggsøket tek omsyn til små og store bokstavar.',
@@ -5508,7 +5508,7 @@
55095509 'checkuser-wasblocked' => 'Blocări anterioare',
55105510 'checkuser-localonly' => 'Neunificat',
55115511 'checkuser-massblock' => 'Blochează utilizatorii aleşi',
5512 - 'checkuser-massblock-text' => 'Conturile alese vor fi blocate definitiv, cu blocarea automată activată şi crearea de conturi dezactivată.
 5512+ 'checkuser-massblock-text' => 'Conturile alese vor fi blocate definitiv, cu blocarea automată activată şi crearea de conturi dezactivată.
55135513 Adresele IP vor fi blocate timp de o săptămână şi crearea de conturi va fi dezactivată.',
55145514 'checkuser-blocktag' => 'Înlocuieşte paginile de utilizator cu:',
55155515 'checkuser-blocktag-talk' => 'Înlocuieşte paginile de discuţii cu:',
@@ -5622,7 +5622,7 @@
56235623 $messages['ru'] = array(
56245624 'checkuser-summary' => "Данный инструмент может быть использован, чтобы получить IP-адреса, использовавшиеся участником, либо чтобы показать правки/участников, работавших с IP-адреса.
56255625 Правки и пользователи, которые правили с определённого IP-адреса, указанного в X-Forwarded-For, можно получить, добавив постфикс <code>/xff</code> к IP-адресу. Поддерживаемые версии IP: 4 (CIDR 16—32) и 6 (CIDR 96—128).
5626 -Из соображений производительности будут показаны только первые 5000 правок.
 5626+Из соображений производительности будут показаны только первые 5000 правок.
56275627 Используйте эту страницу '''только в соответствии с правилами'''.",
56285628 'checkuser-desc' => 'Предоставляет возможность проверять IP-адреса и дополнительную информацию участников',
56295629 'checkuser-logcase' => 'Поиск по журналу чувствителен к регистру.',
@@ -5742,7 +5742,7 @@
57435743 'checkuser-wasblocked' => 'Урут бобуллубут',
57445744 'checkuser-localonly' => 'Биирдэһиллибит аан аат буолбатах',
57455745 'checkuser-massblock' => 'Талыллыбыт кыттааччылары боп',
5746 - 'checkuser-massblock-text' => 'Талыллыбыт ааттар болдьоҕо суох бобуллуохтара. Бу ааттар аптамаатынан бобуллуохтара, маннык ааты саҥаттан оҥоруу эмиэ бобуллуо.
 5746+ 'checkuser-massblock-text' => 'Талыллыбыт ааттар болдьоҕо суох бобуллуохтара. Бу ааттар аптамаатынан бобуллуохтара, маннык ааты саҥаттан оҥоруу эмиэ бобуллуо.
57475747 IP-аадырыстартан бэлиэтэммэккэ киирии уонна саҥа ааты оҥоруу 1 нэдиэлэҕэ бобуллуо.',
57485748 'checkuser-blocktag' => 'Кыттааччылар сирэйдэрин манныкка уларыт:',
57495749 'checkuser-blocktag-talk' => 'Ырытыы сирэйдэрин манныкка уларыт:',
Index: trunk/extensions/CheckUser/CheckUser.php
@@ -303,7 +303,7 @@
304304 }
305305 }
306306 }
307 - // We still have to test if the IP that sent
 307+ // We still have to test if the IP that sent
308308 // this header is trusted to confirm results
309309 if ( $client != $address && ( !$address || !wfIsTrustedProxy( $address ) ) ) {
310310 $trusted = false;
Index: trunk/extensions/CheckUser/importLog.php
@@ -9,7 +9,7 @@
1010 $matched = 0;
1111 $unmatched = 0;
1212 $badtime = 0;
13 -
 13+
1414 $file = fopen( $log, 'r' );
1515 while ( false !== ( $line = fgets( $file ) ) ) {
1616 $found = false;
Index: trunk/extensions/CheckUser/archives/patch-cu_changes_indexes.sql
@@ -1,8 +1,8 @@
22 -- Improves indexes for better peformance with large result sets
33 -- vim: autoindent syn=mysql sts=2 sw=2
44 -- Replace /*$wgDBprefix*/ with the proper prefix
5 -
6 -ALTER TABLE /*$wgDBprefix*/cu_changes
 5+
 6+ALTER TABLE /*$wgDBprefix*/cu_changes
77 ADD INDEX cuc_ip_hex_time (cuc_ip_hex,cuc_timestamp),
88 ADD INDEX cuc_user_ip_time (cuc_user,cuc_ip,cuc_timestamp),
99 ADD INDEX cuc_xff_hex_time (cuc_xff_hex,cuc_timestamp),
Index: trunk/extensions/CheckUser/archives/patch-cu_changes_indexes2.sql
@@ -1,7 +1,7 @@
22 -- Improves indexes for better peformance with large result sets
33 -- vim: autoindent syn=mysql sts=2 sw=2
44 -- Replace /*$wgDBprefix*/ with the proper prefix
5 -
6 -ALTER TABLE /*$wgDBprefix*/cu_changes
 5+
 6+ALTER TABLE /*$wgDBprefix*/cu_changes
77 ADD INDEX cuc_user_ip_time (cuc_user,cuc_ip,cuc_timestamp),
88 DROP INDEX cuc_user_time;
Index: trunk/extensions/CheckUser/cu_log.sql
@@ -4,7 +4,7 @@
55 CREATE TABLE /*$wgDBprefix*/cu_log (
66 -- Unique identifier
77 cul_id int unsigned not null auto_increment,
8 -
 8+
99 -- Timestamp of CheckUser action
1010 cul_timestamp binary(14) not null,
1111
@@ -37,6 +37,4 @@
3838 INDEX cul_type_target (cul_type,cul_target_id, cul_timestamp),
3939 INDEX cul_target_hex (cul_target_hex, cul_timestamp),
4040 INDEX cul_range_start (cul_range_start, cul_timestamp)
41 -
4241 ) /*$wgDBTableOptions*/;
43 -
Index: trunk/extensions/CheckUser/checkuser.js
@@ -4,7 +4,7 @@
55
66 /*
77 * This function calculates the common range of a list of
8 -* IPs. It should be set to update on keyUp.
 8+* IPs. It should be set to update on keyUp.
99 */
1010 function updateCIDRresult() {
1111 var form = document.getElementById( 'mw-checkuser-cidrform' );
Index: trunk/extensions/CheckUser/cu_log_import.inc
@@ -6,7 +6,7 @@
77 $rxTarget = '(?P<target>.*?)';
88 $rxWiki = '(?P<wiki>[^)]*?)';
99 $rxReason = '(?: \("(?P<reason>.*)"\))?';
10 -
 10+
1111 // Strip nulls due to NFS write collisions
1212 $line = str_replace( "\0", "", $line );
1313
@@ -16,7 +16,7 @@
1717 'ipusers-xff' => "!^<li>$rxTimestamp, $rxUser got users for XFF $rxTarget on $rxWiki$rxReason</li>!",
1818 'ipusers' => "!^<li>$rxTimestamp, $rxUser got users for" ." $rxTarget on $rxWiki$rxReason</li>!",
1919 'userips' => "!^<li>$rxTimestamp, $rxUser got IPs for". " $rxTarget on $rxWiki$rxReason</li>!" );
20 -
 20+
2121 foreach ( $regexes as $type => $regex ) {
2222 $m = false;
2323 if ( preg_match( $regex, $line, $m ) ) {
@@ -36,7 +36,7 @@
3737
3838 function import_cu_log( $db, $log ) {
3939 global $wgDBname;
40 -
 40+
4141 $file = fopen( $log, 'r' );
4242
4343 $matched = 0;
@@ -53,7 +53,7 @@
5454
5555 // Local wiki lookups...
5656 $user = User::newFromName( $data['user'] );
57 -
 57+
5858 list( $start, $end ) = IP::parseRange( $data['target'] );
5959 if ( $start === false ) {
6060 $targetUser = User::newFromName( $data['target'] );
@@ -66,7 +66,7 @@
6767 }
6868 $targetID = 0;
6969 }
70 -
 70+
7171 if( $db ) {
7272 $fields = array(
7373 'cul_id' => $db->nextSequenceValue( 'cu_log_cul_id_seq' ),
@@ -83,7 +83,7 @@
8484
8585 $db->insert( 'cu_log', $fields, __METHOD__ );
8686 }
87 -
 87+
8888 $matched++;
8989 }
9090 $unmatched ++;
Index: trunk/extensions/CheckUser/install.php
@@ -1,5 +1,4 @@
22 <?php
3 -
43 /*
54 * Makes the required database changes for the CheckUser extension
65 */
Index: trunk/extensions/CheckUser/cu_changes.sql
@@ -1,7 +1,7 @@
22 -- Tables for the CheckUser extension
33 -- vim: autoindent syn=mysql sts=2 sw=2
44 -- Replace /*$wgDBprefix*/ with the proper prefix
5 -
 5+
66 CREATE TABLE /*$wgDBprefix*/cu_changes (
77 -- Primary key
88 cuc_id INTEGER NOT NULL AUTO_INCREMENT,
@@ -9,11 +9,11 @@
1010 -- When pages are renamed, their RC entries do _not_ change.
1111 cuc_namespace int NOT NULL default '0',
1212 cuc_title varchar(255) binary NOT NULL default '',
13 -
 13+
1414 -- user.user_id
1515 cuc_user INTEGER NOT NULL DEFAULT 0,
1616 cuc_user_text VARCHAR(255) NOT NULL DEFAULT '',
17 -
 17+
1818 -- Edit summary
1919 cuc_actiontext varchar(255) binary NOT NULL default '',
2020 cuc_comment varchar(255) binary NOT NULL default '',
@@ -23,34 +23,34 @@
2424 -- This will keep links working after moves while
2525 -- retaining the at-the-time name in the changes list.
2626 cuc_page_id int(10) unsigned NOT NULL default '0',
27 -
 27+
2828 -- rev_id of the given revision
2929 cuc_this_oldid int(10) unsigned NOT NULL default '0',
30 -
 30+
3131 -- rev_id of the prior revision, for generating diff links.
3232 cuc_last_oldid int(10) unsigned NOT NULL default '0',
33 -
 33+
3434 -- Edit/new/log
3535 cuc_type tinyint(3) unsigned NOT NULL default '0',
36 -
 36+
3737 -- Event timestamp
3838 cuc_timestamp CHAR(14) NOT NULL default '',
39 -
 39+
4040 -- IP address, visible
4141 cuc_ip VARCHAR(255) NULL default '',
42 -
 42+
4343 -- IP address as hexidecimal
4444 cuc_ip_hex VARCHAR(255) default NULL,
45 -
 45+
4646 -- XFF header, visible, all data
4747 cuc_xff VARCHAR(255) BINARY NULL default '',
48 -
 48+
4949 -- XFF header, last IP, as hexidecimal
5050 cuc_xff_hex VARCHAR(255) default NULL,
51 -
 51+
5252 -- User agent
5353 cuc_agent VARCHAR(255) BINARY default NULL,
54 -
 54+
5555 PRIMARY KEY cuc_id (cuc_id),
5656 INDEX cuc_ip_hex_time (cuc_ip_hex,cuc_timestamp),
5757 INDEX cuc_user_ip_time (cuc_user,cuc_ip,cuc_timestamp),
Index: trunk/extensions/CheckUser/install.inc
@@ -10,7 +10,7 @@
1111 $sourcefile = $wgDBtype === 'postgres' ? '/cu_changes.pg.sql' : '/cu_changes.sql';
1212 $db->sourceFile( dirname( __FILE__ ) . $sourcefile );
1313 }
14 -
 14+
1515 echo "...cu_changes table added.\n";
1616 // Check if the table is empty
1717 $rcRows = $db->selectField( 'recentchanges', 'COUNT(*)', false, __FUNCTION__ );
@@ -18,7 +18,7 @@
1919 echo "recentchanges is empty; nothing to add.\n";
2020 return;
2121 }
22 -
 22+
2323 if( $cutoff ) {
2424 // Something leftover... clear old entries to minimize dupes
2525 $encCutoff = $db->addQuotes( $db->timestamp( $cutoff ) );
@@ -29,14 +29,14 @@
3030 } else {
3131 $cutoffCond = "";
3232 }
33 -
 33+
3434 $start = $db->selectField( 'recentchanges', 'MIN(rc_id)', false, __FUNCTION__ );
3535 $end = $db->selectField( 'recentchanges', 'MAX(rc_id)', false, __FUNCTION__ );
3636 # Do remaining chunk
3737 $end += BATCH_SIZE - 1;
3838 $blockStart = $start;
3939 $blockEnd = $start + BATCH_SIZE - 1;
40 -
 40+
4141 $db->begin();
4242 while ( $blockStart <= $end ) {
4343 echo "...doing rc_id from $blockStart to $blockEnd\n";
@@ -44,7 +44,7 @@
4545 $res = $db->select( 'recentchanges', '*', $cond, __FUNCTION__ );
4646 $batch = array();
4747 while ( $row = $db->fetchObject( $res ) ) {
48 - $batch[] = array(
 48+ $batch[] = array(
4949 'cuc_timestamp' => $row->rc_timestamp,
5050 'cuc_user' => $row->rc_user,
5151 'cuc_user_text' => $row->rc_user_text,
@@ -68,28 +68,27 @@
6969 wfWaitForSlaves( 5 );
7070 }
7171 $db->commit();
72 -
 72+
7373 echo "...cu_changes table added and populated.\n";
7474 }
7575
76 -
7776 function create_cu_log( $db ) {
7877 global $wgDBtype, $wgCheckUserLog, $wgDBname;
7978 if( $db->tableExists( 'cu_log' ) ) {
8079 echo "...cu_log already exists\n";
8180 return;
8281 }
83 -
 82+
8483 $sourcefile = $wgDBtype === 'postgres' ? '/cu_log.pg.sql' : '/cu_log.sql';
8584 $db->sourceFile( dirname( __FILE__ ) . $sourcefile );
8685
8786 echo "...cu_log added\n";
88 -
 87+
8988 if( empty( $wgCheckUserLog ) ) {
9089 echo "...logging disabled, skipping log import.\n";
9190 return;
9291 }
93 -
 92+
9493 if( !file_exists( $wgCheckUserLog ) ) {
9594 echo "...log file missing, skipping log import.\n";
9695 return;

Status & tagging log