From: Siebrand Mazeland Date: Sun, 19 Jul 2009 15:13:01 +0000 (+0000) Subject: * Update messages for QuestyCaptcha X-Git-Url: https://git.toastfreeware.priv.at/toast/cookiecaptcha.git/commitdiff_plain/4a6c4e2bcffbc8e9f3e6b82d5107bbd63417630a * Update messages for QuestyCaptcha * stylize.php and trailing whitespace removed for ConfirmEdit * add support for QuestyCaptcha to Translate * svn execute bits removed --- diff --git a/ConfirmEdit.i18n.php b/ConfirmEdit.i18n.php index ab9c70e..5290d7b 100644 --- a/ConfirmEdit.i18n.php +++ b/ConfirmEdit.i18n.php @@ -209,7 +209,7 @@ $messages['as'] = array( 'captcha-create' => 'এই পৃষ্ঠাটো তৈয়াৰ কৰিবলৈ, তলৰ সহজ অংকটো কৰি উত্তৰতো বাকছৰ ভিতৰত লিখক ([[Special:Captcha/help|অধিক তথ্য]]):', 'captchahelp-cookies-needed' => 'এই কামতো সম্পন্ন কৰিবলৈ, আপোনাৰ ব্রাউজাৰত কুকী সক্রীয় থাকিব লাগিব', - 'captchahelp-text' => "যিবোৰ ৱেবচাইটত জনতাই পাঠ্য ভৰাব পাৰে, যেনে এই ৱিকি, সেইবোৰক প্রায়ে দুস্ক্রিতিকাৰি স্পেমাৰবোৰে স্বয়ংক্রীয় আহিলাৰ দ্বাৰা তেওলোকৰ চাইটলৈ সংযোগ ভৰাই আক্রমন কৰে। + 'captchahelp-text' => "যিবোৰ ৱেবচাইটত জনতাই পাঠ্য ভৰাব পাৰে, যেনে এই ৱিকি, সেইবোৰক প্রায়ে দুস্ক্রিতিকাৰি স্পেমাৰবোৰে স্বয়ংক্রীয় আহিলাৰ দ্বাৰা তেওলোকৰ চাইটলৈ সংযোগ ভৰাই আক্রমন কৰে। যদিও তেনে স্পাম সংযোগ গুচাব পাৰি, পিছে এয়া এক ডাঙৰ উপদ্রৱ। কেতিয়াবা, সাধাৰণতে যেতিয়া কোনো পৃষ্ঠালৈ নতুন সংযোগ সৃষ্টি কৰা হয়, তেতিয়া ৱিকিয়ে এটা ৰঙীন বা বিকৃত চবি দেখুৱাই তাত থকা শব্দখিনি আপোনাক টাইপ কৰিব কব পাৰে। @@ -410,7 +410,7 @@ $messages['br'] = array( 'captcha-addurl-whitelist' => " #
 # Setu penaos emañ an ereadur :
 #  * Kement tra war-lerc'h an arouezenn \"#\" zo un urzhiad, betek penn all al linenn
-#  * Kement linenn n'eo ket goullo zo ur c'hod regex a vo implijet e diabarzh al liammoù gourdskrid hepken 
+#  * Kement linenn n'eo ket goullo zo ur c'hod regex a vo implijet e diabarzh al liammoù gourdskrid hepken
   #
", 'right-skipcaptcha' => 'Lañsañ a ra an oberoù captcha hep bezañ rediet da dremen drezañ', ); @@ -542,20 +542,20 @@ $messages['cy'] = array( 'captcha-create' => "Er mwyn gallu creu'r dudalen, gwnewch y swm isod a gosodwch y canlyniad yn y blwch ([[Special:Captcha/help|rhagor o wybodaeth]]):", 'captchahelp-title' => 'Cymorth "captcha"', 'captchahelp-cookies-needed' => "Er mwyn i hyn weithio mae'n rhaid bod cookies wedi eu galluogi ar eich gwe-lywiwr.", - 'captchahelp-text' => "Yn anffodus, mae safleoedd gwe fel y wici hon, sy'n caniatau i'r cyhoedd ysgrifennu iddi, yn darged beunyddiol i sbamwyr sy'n defnyddio rhaglenni arbennig i bostio eu cysylltiadau ar wefannau lu. Gellir dileu'r dolenni o'r tudalennau, ond byddai hynny'n waith trafferthus. + 'captchahelp-text' => "Yn anffodus, mae safleoedd gwe fel y wici hon, sy'n caniatau i'r cyhoedd ysgrifennu iddi, yn darged beunyddiol i sbamwyr sy'n defnyddio rhaglenni arbennig i bostio eu cysylltiadau ar wefannau lu. Gellir dileu'r dolenni o'r tudalennau, ond byddai hynny'n waith trafferthus. -O dro i dro, yn enwedig wrth ychwanegu dolenni at safleoedd gwe eraill, fe fydd y safle hon yn dangos delwedd o destun, ac fe fydd yn rhaid i chi deipio'r geiriau a ddangosir. Mae hyn yn dasg anodd iawn i raglenni cyfrifiadurol, felly dylai'r rhan fwyaf o olygwyr go iawn gyflawni'r dasg yn ddi-drafferth, yn wahanol i'r rhaglenni sbam. +O dro i dro, yn enwedig wrth ychwanegu dolenni at safleoedd gwe eraill, fe fydd y safle hon yn dangos delwedd o destun, ac fe fydd yn rhaid i chi deipio'r geiriau a ddangosir. Mae hyn yn dasg anodd iawn i raglenni cyfrifiadurol, felly dylai'r rhan fwyaf o olygwyr go iawn gyflawni'r dasg yn ddi-drafferth, yn wahanol i'r rhaglenni sbam. -Yn anffodus, mae hyn yn creu trafferthion i'r rhai sydd yn defnyddio porwyr testun neu borwyr sain, neu sydd yn colli eu golwg. -Ar hyn o bryd nid oes fersiwn sain ar gael. -Cysylltwch â [[{{MediaWiki:Grouppage-sysop}}|gweinyddwyr y safle]] os ydi'r nodwedd hon yn eich rhwystro rhag ychwanegu golygiadau dilys. +Yn anffodus, mae hyn yn creu trafferthion i'r rhai sydd yn defnyddio porwyr testun neu borwyr sain, neu sydd yn colli eu golwg. +Ar hyn o bryd nid oes fersiwn sain ar gael. +Cysylltwch â [[{{MediaWiki:Grouppage-sysop}}|gweinyddwyr y safle]] os ydi'r nodwedd hon yn eich rhwystro rhag ychwanegu golygiadau dilys. Gwasgwch botwm 'nôl' eich porwr er mwyn dychwelyd at y dudalen golygu.", 'captcha-addurl-whitelist' => '#
 #
 # Dyma\'r gystrawen:
 #   * Mae popeth o nod "#" hyd at ddiwedd y llinell yn sylwad
-#   * Mae pob llinell nad yw\'n wag yn ddarn regex sydd ddim ond yn cydweddu 
+#   * Mae pob llinell nad yw\'n wag yn ddarn regex sydd ddim ond yn cydweddu
 #   * gwesteiwyr tu mewn i gyfeiriadau URL
 
  #
', @@ -626,8 +626,8 @@ Der „Zurück“-Knopf des Browsers führt zurück zum Bearbeitungsfenster.', */ $messages['de-formal'] = array( 'captcha-edit' => 'Zur Bearbeitung der Seite lösen Sie die nachfolgende Rechenaufgabe und tragen Sie das Ergebnis in das Feld unten ein [[Special:Captcha/help|(Fragen oder Probleme?)]].', - 'captcha-addurl' => 'Ihre Bearbeitung enthält neue externe Links. -Zum Schutz vor automatisiertem Spamming lösen Sie die nachfolgende Rechenaufgabe und tragen Sie das Ergebnis in das Feld unten ein. + 'captcha-addurl' => 'Ihre Bearbeitung enthält neue externe Links. +Zum Schutz vor automatisiertem Spamming lösen Sie die nachfolgende Rechenaufgabe und tragen Sie das Ergebnis in das Feld unten ein. Klicken Sie dann erneut auf „Seite speichern“ [[Special:Captcha/help|(Fragen oder Probleme?)]].', 'captcha-badlogin' => 'Zum Schutz vor einer Kompromittierung Ihres Benutzerkontos lösen Sie die nachfolgende Rechenaufgabe und tragen Sie das Ergebnis in das Feld unten ein [[Special:Captcha/help|(Fragen oder Probleme?)]]:', 'captcha-createaccount' => 'Zum Schutz vor automatisierter Anlage von Benutzerkonten lösen Sie die nachfolgende Rechenaufgabe und tragen Sie das Ergebnis in das Feld unten ein [[Special:Captcha/help|(Fragen oder Probleme?)]].', @@ -702,8 +702,8 @@ $messages['el'] = array( Πατήστε το κουμπί 'πίσω' στη μηχανή αναζήτησης σας για να επιστρέψετε στο συντάκτη σελίδων.", 'captcha-addurl-whitelist' => ' #
 # Η σύνταξη είναι όπως παρακάτω:
-#  * Οτιδήποτε από ένα χαρακτήρα "#" ως το τέλος της γραμμής είναι ένα σχόλιο 
-#  * Κάθε μη κενή γραμμή είναι μια έκφραση regex που θα ταιριάζει μόνο hosts μέσα σε URL 
+#  * Οτιδήποτε από ένα χαρακτήρα "#" ως το τέλος της γραμμής είναι ένα σχόλιο
+#  * Κάθε μη κενή γραμμή είναι μια έκφραση regex που θα ταιριάζει μόνο hosts μέσα σε URL
   #
', 'right-skipcaptcha' => 'Πραγματοποίηση ενεργειών που ενεργοποιούν captcha χωρίς να χρειάζεται πέρασμα από το captcha', ); @@ -792,11 +792,11 @@ $messages['et'] = array( 'captcha-create' => 'Teie muudatuses on uusi linke; kaitseks spämmi vastu peate sisestama järgneval pildil olevad sõnad:
([[Special:Captcha/help|Mis see on?]])', 'captchahelp-title' => 'Mis on Captcha?', 'captchahelp-cookies-needed' => 'Selle toimimiseks peab veebibrauser lubama küpsiseid.', - 'captchahelp-text' => 'Internetisaite, mis lubavad külastajatel sisu muuta (nagu ka see Viki), kasutavad sageli spämmerid ära, postitades reklaamlinke — spämmi. Kuigi neid linke saab alati ära võtta, on nad ikkagi üpris tülikad. + 'captchahelp-text' => 'Internetisaite, mis lubavad külastajatel sisu muuta (nagu ka see Viki), kasutavad sageli spämmerid ära, postitades reklaamlinke — spämmi. Kuigi neid linke saab alati ära võtta, on nad ikkagi üpris tülikad. -Omale kasutajakontot registreerides või mõnele lehele uusi internetiaadresse postitades näidatakse teile moonutatud tekstiga pilti ning palutakse teil sisestada seal näidatud sõnad. Kuna selliselt pildilt on arvutil raske teksti välja lugeda, on see efektiivseks kaitseks spämmirobotite vastu, samas lubades tavainimestel oma muudatusi rahus teha. +Omale kasutajakontot registreerides või mõnele lehele uusi internetiaadresse postitades näidatakse teile moonutatud tekstiga pilti ning palutakse teil sisestada seal näidatud sõnad. Kuna selliselt pildilt on arvutil raske teksti välja lugeda, on see efektiivseks kaitseks spämmirobotite vastu, samas lubades tavainimestel oma muudatusi rahus teha. -Kahjuks võib see tekitada ebamugavusi nägemisraskustega inimestele või neile, kes kasutavad kõnesüntesaatorit või tekstipõhist brauserit. Hetkel pole meil helipõhist alternatiivi. Kui teil tekib ootamatult raskusi oma muudatuste tegemisel, siis võtke ühendust selle saidi administraatoritega. +Kahjuks võib see tekitada ebamugavusi nägemisraskustega inimestele või neile, kes kasutavad kõnesüntesaatorit või tekstipõhist brauserit. Hetkel pole meil helipõhist alternatiivi. Kui teil tekib ootamatult raskusi oma muudatuste tegemisel, siis võtke ühendust selle saidi administraatoritega. Konto registreerimise lehele või lehe redigeerimisele tagasi jõudmiseks vajutage oma brauseri tagasi-nuppu.', ); @@ -816,12 +816,12 @@ $messages['eu'] = array( 'captcha-create' => 'Orrialde hau sortzeko, mesedez, beheko batuketa erraz hau ebatzi eta erantzuna kutxan idatzi ([[Special:Captcha/help|argibide gehiago]]):', 'captchahelp-title' => 'Captcha laguntza', 'captchahelp-cookies-needed' => 'Beharrezkoa da nabigatzailean cookieak gaituta izatea honek funtzionatzeko.', - 'captchahelp-text' => "Publikoki aldaketak egiteko aukerak dituzten webguneetan, wiki honetan bezalaxe, spam testuak gehitzen dira sarritan tresna automatikoak erabiliz. + 'captchahelp-text' => "Publikoki aldaketak egiteko aukerak dituzten webguneetan, wiki honetan bezalaxe, spam testuak gehitzen dira sarritan tresna automatikoak erabiliz. Lotura horiek ezabatu egin daitezkeen arren, traba dira. -Batzuetan, eta bereziki webgune berri bateko loturak gehitzen dituzunean, hitz batzuk dituen irudi bat agertuko zaizu, eta bertan ageri den testua idazteko eskatuko zaizu. Lan hori automatizatzeko zaila da, eta pertsonei ezer kostatzen ez zaigunez, spam testuak saihesteko lagungarria da. +Batzuetan, eta bereziki webgune berri bateko loturak gehitzen dituzunean, hitz batzuk dituen irudi bat agertuko zaizu, eta bertan ageri den testua idazteko eskatuko zaizu. Lan hori automatizatzeko zaila da, eta pertsonei ezer kostatzen ez zaigunez, spam testuak saihesteko lagungarria da. -Zoritxarrez, ikusmen mugatua edo testu bidezko nabigatzaileak erabiltzen dituzten erabiltzeek arazoak izan ditzakete. Horrelako zerbait gertatzen bazaizu, mesedez, jarri [[{{MediaWiki:Grouppage-sysop}}|administratzaileekin]] harremanetan. +Zoritxarrez, ikusmen mugatua edo testu bidezko nabigatzaileak erabiltzen dituzten erabiltzeek arazoak izan ditzakete. Horrelako zerbait gertatzen bazaizu, mesedez, jarri [[{{MediaWiki:Grouppage-sysop}}|administratzaileekin]] harremanetan. Zure nabigatzaileko 'atzera' lotura erabili aldaketen orrialdera itzultzeko.", ); @@ -983,11 +983,11 @@ $messages['fy'] = array( 'captcha-createaccount-fail' => 'It antwurd op de som kloppet net.', 'captcha-create' => 'Om de side oan te meitsjen wurdt jo frege it antwurd op de ûndersteande som te jaan ([[Special:Captcha/help|meer ynformaasje]]).', 'captchahelp-title' => 'Lettertoets-help', - 'captchahelp-text' => "Websteeën dêr't it publyk op skriuwe kin, lykas dizze {{SITENAME}}-wiki, kinne lêst hawwe fan lju dy't automatysk keppelings oan de websiden tafoegje. Op dizze wiki kinne sokke feroarings maklik weromset wurde, mar dat nimt al tiid dy't ek oars brûkt wurde kin. + 'captchahelp-text' => "Websteeën dêr't it publyk op skriuwe kin, lykas dizze {{SITENAME}}-wiki, kinne lêst hawwe fan lju dy't automatysk keppelings oan de websiden tafoegje. Op dizze wiki kinne sokke feroarings maklik weromset wurde, mar dat nimt al tiid dy't ek oars brûkt wurde kin. -By it oanmelden as meidogger, en fierders benammen at jo keppelings om utens oan in side tafoegje, kinne jo fan de wiki in lettertoets krije. De wiki lit dan kleurde of ferwrongen letters sjen, en jo wurdt frege dy oer te tikken. Om't dit net maklik automatisearre wurde kin, hâldt dit it automatysk tafoegjen tsjin. It spitegernôch ek in lytse lêst foar de meidoggers. +By it oanmelden as meidogger, en fierders benammen at jo keppelings om utens oan in side tafoegje, kinne jo fan de wiki in lettertoets krije. De wiki lit dan kleurde of ferwrongen letters sjen, en jo wurdt frege dy oer te tikken. Om't dit net maklik automatisearre wurde kin, hâldt dit it automatysk tafoegjen tsjin. It spitegernôch ek in lytse lêst foar de meidoggers. -In probleem dêr't noch gjin oplossing foar is it dat it in tûkelteam is foar minsken dy't net goed sjen kinne of dy't in tekst-blêder of lûd-blêder brûke. Hjir soe in lûd-ferzje foar komme moatte, mar dy is der noch net. Oerlis mei in behearder at dit foar jo problemen jout. +In probleem dêr't noch gjin oplossing foar is it dat it in tûkelteam is foar minsken dy't net goed sjen kinne of dy't in tekst-blêder of lûd-blêder brûke. Hjir soe in lûd-ferzje foar komme moatte, mar dy is der noch net. Oerlis mei in behearder at dit foar jo problemen jout. Gean tebek mei de tebek-knop fan jo blêder.", ); @@ -1056,9 +1056,9 @@ Zum Schutz vor automatisiertem Spamming lees die Rächenufgab un trag s Ergebnis 'captcha-create' => 'Zum d Syten aalege lees die Rächenufgab un trag s Ergebnis in s Fäld unten yy. [[Special:Captcha/help|(Frogen oder Probläm?)]]', 'captchahelp-title' => 'Captcha-Hilf', 'captchahelp-cookies-needed' => "'''Wichtiger Hiiwyys:''' Im Browser mien Cookiers erlaubt syy.", - 'captchahelp-text' => 'Internetaagebot, wu uf sin fir Byytreg vu jedem, wie z. B. des Wiki, wäre vyylmol vu Spammer missbruucht, wu ihri Gleicher automatisch uf vyylene Netzsyte platziere. Die Spam-Gleicher cha mer wider useneh, si stere aber zimli un nämme Arbetszyt in Aaspruch. + 'captchahelp-text' => 'Internetaagebot, wu uf sin fir Byytreg vu jedem, wie z. B. des Wiki, wäre vyylmol vu Spammer missbruucht, wu ihri Gleicher automatisch uf vyylene Netzsyte platziere. Die Spam-Gleicher cha mer wider useneh, si stere aber zimli un nämme Arbetszyt in Aaspruch. -In e Teil Fäll, v. a. wänn neiji Netzgleicher in e Syte dryygfiegt wäre, cha s syy, ass des Wiki derno ne Bild mit eme farbige un verzerrte Täxt aazeigt un dezue ufforderet, di aazeigte Werte yyzgee. Wel sonigi Ufgabe nit automatische chenne usgfiert wäre, cha mer eso di meischte Spammer, wu mit automatische Wärchzyyg schaffe, ufhalte, aber normali Benutzer chenne ihri Byytreg einewäg yygee. +In e Teil Fäll, v. a. wänn neiji Netzgleicher in e Syte dryygfiegt wäre, cha s syy, ass des Wiki derno ne Bild mit eme farbige un verzerrte Täxt aazeigt un dezue ufforderet, di aazeigte Werte yyzgee. Wel sonigi Ufgabe nit automatische chenne usgfiert wäre, cha mer eso di meischte Spammer, wu mit automatische Wärchzyyg schaffe, ufhalte, aber normali Benutzer chenne ihri Byytreg einewäg yygee. Leider cha des derzue fiere, ass Lyt Probläm iberchemme, wu ne yygschränkti Sähfähigkeit oder e Browser bruche, wu täxt- oder sprochbasiert isch. Im Momänt hän mir kei Audioalternative z Verfiegig. @@ -1096,7 +1096,7 @@ $messages['gu'] = array( લેખમા ફેરફાર કરવાના પાના ઉપર પાછા ફરવા માટે આપના બ્રાઉઝરના 'બેક' બટન ઉપર ક્લિક કરો.", 'captcha-addurl-whitelist' => ' #
-# સીન્ટેક્સ (Syntax) આ પ્રમાણે છે :  
+# સીન્ટેક્સ (Syntax) આ પ્રમાણે છે :
 #  * "#" સંજ્ઞાથી શરૂ કરીને લીટીના અંત સુધીનું વર્ણન એક ટીપ્પણી છે
 #  * ખાલી ન હોય તેવી દરેક લીટી રેજેક્સનો ભાગ છે, જે ફક્ત URLsમાંના હોસ્ટ સાથે જ મેળ ખાશે
   #
', @@ -1190,7 +1190,7 @@ Iako se te poveznice najčešće uklanjaju, mogu predstavljati neugodnost pri ra Ponekad se dogodi da wiki prikaže sliku čudnog tekstualnog sadržaja uz koju morate unijeti prikazana slova. Budući da je takvu radnju teško automatizirati, većina se napadača obeshrabri, a pravi suradnici bez većih smetnji nastavljaju pridonositi. -Na žalost, ovo može biti nepristupačno za suradnike koji koriste tekstualne klijene ili one glasovno bazirane. Trenutačno nemamo glasovnu podršku za ovo. +Na žalost, ovo može biti nepristupačno za suradnike koji koriste tekstualne klijene ili one glasovno bazirane. Trenutačno nemamo glasovnu podršku za ovo. Molimo da se obratite administratorima, ukoliko vas ovo ometa pri dodavanju važećih sadržaja. Pritisnite u svom pregledniku 'nazad' kako bi se vratili na stranicu.", @@ -1693,7 +1693,7 @@ $messages['lb'] = array( Heiandsdo, besonnesch wann nei Internet-Linkën op eng Säit derbäigesat ginn, weist dës Wiki iech e Bild mat farwegëm oder verzerrtëm Text a freet iech fir déi gewise Wierder anzetipppen. Well dëst eng Aufgab ass déi schwéier ze automatiséieren ass, erlaabt dëst dat Mënschen hir Ännerunge kënnen agi wärend déi meescht Spammer an aner Roboter-Attacken kënnen ofgewiert ginn. -Leider kann dëst zu Schwierigkeete féiere fir Persounen déi net esou gutt gesinn oder déi text-baséiert oder sprooch-baséiert Browser benotzen. +Leider kann dëst zu Schwierigkeete féiere fir Persounen déi net esou gutt gesinn oder déi text-baséiert oder sprooch-baséiert Browser benotzen. Zu dësem Zäitpunkt hu mir leider keng audio-Alternativ zu eiser Verfügung. Kontaktéiert w.e.g. [[{{MediaWiki:Grouppage-sysop}}|een Administrateur]] fir Hëllef wann dëst iech onerwarter Wäis vu legitimen Editen ofhält. @@ -1808,7 +1808,7 @@ $messages['mr'] = array( हे काम संगणकाकरवी करून घेण्यास अवघड असल्याने, फक्त खरी माणसेच संपादने करू शकतील व स्पॅमर्सना आळा बसू शकेल. पण खेदाची गोष्ट अशी की ह्यामुळे अर्धांध व्यक्ती तसेच ज्या व्यक्ती फक्त मजकूर दाखविणारा न्याहाळक वापरतात, अशांना असुविधा होऊ शकते. -सध्या आमच्याकडे आवाज ऐकण्याची सुविधा नाही. +सध्या आमच्याकडे आवाज ऐकण्याची सुविधा नाही. कृपया विकिवरील प्रबंधकांशी या बाबतीत संपर्क करावा. पृष्ठ संपादनाकडे परत जाण्यासाठी आपल्या ब्राउझरची ’Back' ही कळ दाबा.", @@ -1913,11 +1913,11 @@ Voer ter de bescharming tegen ongewunste reclame de somme in dee hieronder steet 'captcha-badlogin' => "Los disse eenvoudige rekensomme op en voer 't antwoord in bie 't invoervienster in ter bescharming tegen 't autematisch kraken van wachwoorden ([[Special:Captcha/help|meer infermasie]]):", 'captcha-createaccount' => "Voer ter bescharming tegen autematische ongewunste reclame 't antwoord op disse eenvoudige rekensomme in bie invoervienster ([[Special:Captcha/help|meer informatie]]):", 'captcha-createaccount-fail' => 'Verkeerde of ontbrekende bevestigingscode.', - 'captcha-create' => "Je bin een nieje pagina an 't maken. + 'captcha-create' => "Je bin een nieje pagina an 't maken. Voer 't antwoord van disse eenvoudige rekensomme in bie 't invoervienster ([[Special:Captcha/help|meer infermasie]]).", - 'captcha-addurl-whitelist' => ' #
  
-# De syntaxis is as volg:  
+	'captcha-addurl-whitelist' => ' # 
+# De syntaxis is as volg:
 #  * Alle tekse vanof \'t kerakter "#" tot \'t einde van de regels wonnen ezien as opmarking
 #  * Alle regels dee neet leeg bin, wonnen ezien as een regeliere uutdrokking dee veur delen van de domein staon.
   #
', @@ -1951,8 +1951,8 @@ Op het moment is er geen alternatief met geluid beschikbaar. Vraag assistentie van de [[{{MediaWiki:Grouppage-sysop}}|sitebeheerders]] als dit proces u verhindert een nuttige bijdrage te leveren. Klik op de knop 'terug' in uw browser om terug te gaan naar het tekstbewerkingsscherm.", - 'captcha-addurl-whitelist' => ' #
 
-# De syntaxis is als volgt: 
+	'captcha-addurl-whitelist' => ' # 
+# De syntaxis is als volgt:
 #   * Alle tekst vanaf het karakter "#" tot het einde van de regels wordt gezien als opmerking
 #   * Iedere niet-lege regel is een fragment van een reguliere uitdrukking die alleen van toepassing is op hosts binnen URL\'s
  #
', @@ -2108,7 +2108,7 @@ Wciśnij przycisk „wstecz” w przeglądarce by powrócić do edycji strony.', * @author Bèrto 'd Sèra */ $messages['pms'] = array( - 'captcha-edit' => "Për fe-ie dle modìfiche ansima a st'artìcol-sì, për piasì ch'a fasa ël total ambelessì sota + 'captcha-edit' => "Për fe-ie dle modìfiche ansima a st'artìcol-sì, për piasì ch'a fasa ël total ambelessì sota e ch'a buta l'arzulta ant ël quadrèt ([[Special:Captcha/help|për savejne dë pì]]):", 'captcha-addurl' => "Soa modìfica a la gionta dj'anliure esterne. Për giutene a vardesse da la reclam aotomatisà, për piasì ch'a fasa ël total ambelessì sota e ch'a buta l'arzultà ant ël quadrèt ([[Special:Captcha/help|për savejne dë pì]]):", 'captcha-badlogin' => "Për giutene a vardesse da 'nt ij programa ch'a fan ciav fàosse n'aotomàtich, për piasì ch'a fasa ël total ambelessì sota e ch'a buta l'arzultà ant ël quadrèt ([[Special:Captcha/help|për savejne dë pì]]):", @@ -2189,13 +2189,13 @@ Para prevenção contra sistemas automatizados que inserem spam, será necessár 'captcha-create' => 'Para criar a página, por favor resolva a simples soma abaixo e entre com a resposta no respectivo campo ([[Special:Captcha/help|o que é isto?]])', 'captchahelp-title' => 'Ajuda com o Captcha', 'captchahelp-cookies-needed' => 'Você precisa ter cookies habilitados em seu navegador para que possa funcionar', - 'captchahelp-text' => "Sítios abertos a inserções públicas, como é o caso deste wiki, são vulneráveis a abusos por spammers que utilizam ferramentas automatizadas para inserir seus links em diversos locais. + 'captchahelp-text' => "Sítios abertos a inserções públicas, como é o caso deste wiki, são vulneráveis a abusos por spammers que utilizam ferramentas automatizadas para inserir seus links em diversos locais. Apesar de remover tais links posteriormente ser possível, eles são um significativo incômodo. -Algumas vezes, especialmente ao adicionar novos links externos em uma página, o sistema exibirá uma imagem com uma imagem de um texto colorido ou distorcido e pedirá que você digite as palavras exibidas. +Algumas vezes, especialmente ao adicionar novos links externos em uma página, o sistema exibirá uma imagem com uma imagem de um texto colorido ou distorcido e pedirá que você digite as palavras exibidas. Uma vez que essa é uma tarefa um tanto difícil de ser automatizada, ela possibilita que vários humanos façam as suas inserções ao mesmo tempo que inibe as que forem feitas por spammers e mecanismos automatizados. -Infelizmente, isso pode ser dificultoso a utilizadores com limitações visuais ou que naveguem através de mecanismos baseados em texto ou baseados em voz. No momento não há uma alternativa em áudio. +Infelizmente, isso pode ser dificultoso a utilizadores com limitações visuais ou que naveguem através de mecanismos baseados em texto ou baseados em voz. No momento não há uma alternativa em áudio. Por gentileza, contacte os administradores do sítio em casos que seja necessária a assistência de alguém para que você possa fazer as suas inserções legítimas. Pressione o botão 'voltar' de seu navegador para retornar à página de edição.", @@ -2234,7 +2234,7 @@ $messages['ro'] = array( Uneori, mai ales la adăugarea de legături web noi într-o pagină, situl wiki vă poate arăta o imagine cu un text colorat sau distorsionat şi veţi fi rugat să introduceţi cuvintele indicate. Deoarece aceasta este o sarcină greu de automatizat, ea permite majorităţii persoanelor reale să posteze şi va opri majoritatea atacatorilor. -Din nefericire, această metodă îi poate deranja pe utilizatorii cu probleme vizuale sau care folosesc browsere bazate pe text sau sunet. În acest moment nu avem o alternativă audio disponibilă. +Din nefericire, această metodă îi poate deranja pe utilizatorii cu probleme vizuale sau care folosesc browsere bazate pe text sau sunet. În acest moment nu avem o alternativă audio disponibilă. Vă rugăm, contactaţi [[{{MediaWiki:Grouppage-sysop}}|administratorii sitului]] pentru asistenţă dacă metoda vă opreşte de la a face postări legitime. Apasă butonul 'Înapoi' al browserului pentru a te reîntoarce la pagina de editare.", @@ -2259,14 +2259,14 @@ $messages['ru'] = array( 'captcha-create' => 'Чтобы создать страницу, решите простой пример и введите ответ в текстовое поле ([[Special:Captcha/help|что это?]]):', 'captchahelp-title' => 'Справка о CAPTCHA', 'captchahelp-cookies-needed' => 'Вам нужно включить куки в браузере, чтобы эта функция заработала.', - 'captchahelp-text' => 'Веб-сайты, позволяющие добавлять и изменять своё содержимое, в том числе эта вики, часто становятся целью спамеров, использующих программы для автоматического добавления ссылок на многие сайты. + 'captchahelp-text' => 'Веб-сайты, позволяющие добавлять и изменять своё содержимое, в том числе эта вики, часто становятся целью спамеров, использующих программы для автоматического добавления ссылок на многие сайты. Хотя такие ссылки могут быть впоследствии удалены, они являются существенной помехой. -При некоторых действиях — например, при добавлении на страницу новой веб-ссылки — вы можете увидеть специальную картинку с цветным или искажённым текстом, и вам будет предложено ввести этот искажённый текст. +При некоторых действиях — например, при добавлении на страницу новой веб-ссылки — вы можете увидеть специальную картинку с цветным или искажённым текстом, и вам будет предложено ввести этот искажённый текст. Так как распознавание искажённого текста является сложной задачей для программ, то большинство спамерских и вандальных программ не могут с ней справиться, в то время как люди справляются легко. -К сожалению, подобная защита может причинить неудобства людям с ограничениями по зрению или тем, кто использует текстовые или читающие браузеры. -В настоящее время у нас нет звуковой альтернативы данной проверке. +К сожалению, подобная защита может причинить неудобства людям с ограничениями по зрению или тем, кто использует текстовые или читающие браузеры. +В настоящее время у нас нет звуковой альтернативы данной проверке. Пожалуйста, обратитесь за помощью к [[{{MediaWiki:Grouppage-sysop}}|администраторам]], если подобная проверка мешает вам добросовестно работать с сайтом. Нажмите кнопку «Назад» в вашем браузере, чтобы вернуться к редактированию.', @@ -2591,7 +2591,7 @@ $messages['te'] = array( కొన్నిసార్లు, ముఖ్యంగా ఏదైనా పేజీ నుండి బయటకు లింకులు ఇచ్చేటపుడు, వంకర్లు తిరిగిపోయి ఉన్న పదాల బొమ్మను చూపించి ఆ పదాన్ని టైపు చెయ్యమని వికీ మిమ్మల్ని అడగవచ్చు. దీన్ని ఆటోమాటిక్ టూల్సుతో చెయ్యడం చాలా కష్టం కాబట్టి, స్పాము జిత్తులు చెల్లవు; మనుష్యులు మాత్రం మామూలుగానే చెయ్యగలరు. దురదృష్టవశాత్తూ, చూపు సరిగా లేనివారికి, టెక్స్టు బ్రౌజర్లు మాత్రమే వాడేవారికి ఇది అసౌకర్యం కలిగిస్తుంది. ప్రస్తుతానికి శబ్దం వినిపించే వెసులుబాటు మాకు లేదు. మీరు రచనలు చెయ్యకుండా ఇది అడ్డుపడుతుంటే, సహాయం కోసం సైటు నిర్వాహకుణ్ణి సంప్రదించండి. -మీరు చెసే విలువయిన, సమ్మతమయిన వ్యాస మార్పులు భద్రపరచటము కుదరకపొతె, దయచేసి [[{{MediaWiki:Grouppage-sysop}}|సైటు నిర్వహణాధికారి]]కి లేఖ రాయండి +మీరు చెసే విలువయిన, సమ్మతమయిన వ్యాస మార్పులు భద్రపరచటము కుదరకపొతె, దయచేసి [[{{MediaWiki:Grouppage-sysop}}|సైటు నిర్వహణాధికారి]]కి లేఖ రాయండి మీ బ్రౌజర్లోని బ్యాక్(back) మీటను నొక్కి ఇంతకు ముందరి పేజీకి వెళ్ళండి.', 'captcha-addurl-whitelist' => ' #
 # ఇక్కడ రాయాల్సిన విధానం ఇదీ:
@@ -2618,7 +2618,7 @@ $messages['tg-cyrl'] = array(
 
 Дар пораи аз маворид, ба вижа замоне, ки як пайванди интернетии ҷадид ба саҳифа изофа мешавад, вики метавонад, як тасвир аз ҳуруфи рангӣ ё матни бенурро ба шумо нишон бидиҳад ва аз шумо ворид кардани калимаи нишондодашударо пурсон мешавад. Ба хотири ин ки анҷоми ин кор ба шакли худкор душвор аст, ин амал ба аксари инсонҳое иҷозат медиҳад, ки ба ирсоли матолиб бипардозанд, дар ҳоле ки бештар роботҳои ҳамлакунанда ва ҳаразнигорҳоро мутавақиф мекунад.
 
-Мутассифона ин равиш мумкин аст, корбароне, ки қувваи босираашон суст ё аз мурургарҳои матнӣ ё овозӣ истифода мекунанд, дучори маҳдудиятҳое бикунад. Дар ҳоли ҳозир ҳеҷ чойгузини савтӣ барои ин равиш мавҷуд нест. Чунончи ин масъала шуморо дучори маҳдудияте дур аз интизор дар ирсоли навиштаҳои миҷоз мекунад, бо мудирони сомона оиди кӯмак тамос бигиред.  
+Мутассифона ин равиш мумкин аст, корбароне, ки қувваи босираашон суст ё аз мурургарҳои матнӣ ё овозӣ истифода мекунанд, дучори маҳдудиятҳое бикунад. Дар ҳоли ҳозир ҳеҷ чойгузини савтӣ барои ин равиш мавҷуд нест. Чунончи ин масъала шуморо дучори маҳдудияте дур аз интизор дар ирсоли навиштаҳои миҷоз мекунад, бо мудирони сомона оиди кӯмак тамос бигиред.
 
 Дар муругаратон тугмаи 'бозгашт'-ро бо пахш кардан ба саҳифаи вироишгар баргардед.",
 	'captcha-addurl-whitelist' => ' # 
@@ -2788,7 +2788,7 @@ câu trả lời vào ô ([[Special:Captcha/help|thông tin thêm]]):',
 	'captchahelp-text' => 'Những website cho phép bất kỳ ai cũng có thể gửi thông tin, như wiki này, thường bị các tay spam dùng công cụ tự động để gửi các liên kết của họ tới rất nhiều trang.
 Tuy chúng ta có thể xóa các liên kết này khỏi trang, chúng vẫn gây nhiều phiền toái.
 
-Đôi khi, nhất là khi bạn bổ sung liên kết mới vào trang, wiki có thể hiển thị một hình có chữ dạng màu mè và méo mó rồi yêu cầu bạn gõ lại các chữ trong hình này. 
+Đôi khi, nhất là khi bạn bổ sung liên kết mới vào trang, wiki có thể hiển thị một hình có chữ dạng màu mè và méo mó rồi yêu cầu bạn gõ lại các chữ trong hình này.
 Do các phần mềm tự động khó đọc những hình này, nên mọi người bình thường có thể tiếp tục gửi thông tin, mà vẫn chặn được các spam và robot phá hoại.
 
 Tuy vậy, tính năng này có thể bất tiện đối với những độc giả có thị giác yếu hay đang sử dụng trình duyệt bằng văn bản thuần hay trình duyệt bằng tiếng nói.
diff --git a/ConfirmEdit.php b/ConfirmEdit.php
index 7a4f78a..9de3da6 100644
--- a/ConfirmEdit.php
+++ b/ConfirmEdit.php
@@ -95,7 +95,7 @@ $wgCaptchaTriggers['badlogin']      = true;  // Special:Userlogin after failure
 
 /**
  * You may wish to apply special rules for captcha triggering on some namespaces.
- * $wgCaptchaTriggersOnNamespace[][] forces an always on / 
+ * $wgCaptchaTriggersOnNamespace[][] forces an always on /
  * always off configuration with that trigger for the given namespace.
  * Leave unset to use the global options ($wgCaptchaTriggers).
  *
@@ -103,9 +103,9 @@ $wgCaptchaTriggers['badlogin']      = true;  // Special:Userlogin after failure
  */
 $wgCaptchaTriggersOnNamespace = array();
 
-#Example:
-#$wgCaptchaTriggersOnNamespace[NS_TALK]['create'] = false; //Allow creation of talk pages without captchas.
-#$wgCaptchaTriggersOnNamespace[NS_PROJECT]['edit'] = true; //Show captcha whenever editing Project pages.
+# Example:
+# $wgCaptchaTriggersOnNamespace[NS_TALK]['create'] = false; //Allow creation of talk pages without captchas.
+# $wgCaptchaTriggersOnNamespace[NS_PROJECT]['edit'] = true; //Show captcha whenever editing Project pages.
 
 /**
  * Indicate how to store per-session data required to match up the
@@ -148,7 +148,7 @@ $wgCaptchaBadLoginExpiration = 5 * 60;
 global $ceAllowConfirmedEmail;
 $ceAllowConfirmedEmail = false;
 
-/** 
+/**
  * Number of bad login attempts before triggering the captcha.  0 means the
  * captcha is presented on the first login.
  */
@@ -194,8 +194,8 @@ $wgHooks['AbortLogin'][] = 'ConfirmEditHooks::confirmUserLogin';
 # Register API hook
 $wgHooks['APIEditBeforeSave'][] = 'ConfirmEditHooks::confirmEditAPI';
 
-$wgAutoloadClasses['ConfirmEditHooks'] 
-	= $wgAutoloadClasses['SimpleCaptcha'] 
+$wgAutoloadClasses['ConfirmEditHooks']
+	= $wgAutoloadClasses['SimpleCaptcha']
 	= $wgAutoloadClasses['CaptchaSessionStore']
 	= $wgAutoloadClasses['CaptchaCacheStore']
 	= $wgAutoloadClasses['CaptchaSpecialPage']
@@ -206,7 +206,7 @@ $wgAutoloadClasses['ConfirmEditHooks']
  */
 function confirmEditSetup() {
 	global $wgGroupPermissions, $wgCaptchaTriggers;
-	if( !$wgGroupPermissions['*']['read'] && $wgCaptchaTriggers['badlogin'] ) {
+	if ( !$wgGroupPermissions['*']['read'] && $wgCaptchaTriggers['badlogin'] ) {
 		// We need to ensure that the captcha interface is accessible
 		// so that unauthenticated users can actually get in after a
 		// mistaken password typing.
@@ -217,5 +217,3 @@ function confirmEditSetup() {
 		$wgWhitelistRead[] = $help->getPrefixedText();
 	}
 }
-
-
diff --git a/ConfirmEdit_body.php b/ConfirmEdit_body.php
index 991bd63..faedc2f 100644
--- a/ConfirmEdit_body.php
+++ b/ConfirmEdit_body.php
@@ -22,7 +22,7 @@ class ConfirmEditHooks {
 	static function confirmEditMerged( $editPage, $newtext ) {
 		return self::getInstance()->confirmEditMerged( $editPage, $newtext );
 	}
-	
+
 	static function confirmEditAPI( &$editPage, $newtext, &$resultArr ) {
 		return self::getInstance()->confirmEditAPI( $editPage, $newtext, $resultArr );
 	}
@@ -54,7 +54,7 @@ class CaptchaSpecialPage extends UnlistedSpecialPage {
 		$instance = ConfirmEditHooks::getInstance();
 		switch( $par ) {
 		case "image":
-			if( method_exists($instance,'showImage') )
+			if ( method_exists( $instance, 'showImage' ) )
 				return $instance->showImage();
 		case "help":
 		default:
@@ -63,24 +63,23 @@ class CaptchaSpecialPage extends UnlistedSpecialPage {
 	}
 }
 
-
 class SimpleCaptcha {
 	function SimpleCaptcha() {
 		global $wgCaptchaStorageClass;
 		$this->storage = new $wgCaptchaStorageClass;
 	}
-	
+
 	function getCaptcha() {
-		$a = mt_rand(0, 100);
-		$b = mt_rand(0, 10);
-		$op = mt_rand(0, 1) ? '+' : '-';
+		$a = mt_rand( 0, 100 );
+		$b = mt_rand( 0, 10 );
+		$op = mt_rand( 0, 1 ) ? '+' : '-';
 
 		$test = "$a $op $b";
-		$answer = ($op == '+') ? ($a + $b) : ($a - $b);
-		return array('question' => $test, 'answer' => $answer);
+		$answer = ( $op == '+' ) ? ( $a + $b ) : ( $a - $b );
+		return array( 'question' => $test, 'answer' => $answer );
 	}
-	
-	function addCaptchaAPI(&$resultArr) {
+
+	function addCaptchaAPI( &$resultArr ) {
 		$captcha = $this->getCaptcha();
 		$index = $this->storeCaptcha( $captcha );
 		$resultArr['captcha']['type'] = 'simple';
@@ -88,7 +87,7 @@ class SimpleCaptcha {
 		$resultArr['captcha']['id'] = $index;
 		$resultArr['captcha']['question'] = $captcha['question'];
 	}
-	
+
 	/**
 	 * Insert a captcha prompt into the edit form.
 	 * This sample implementation generates a simple arithmetic operation;
@@ -147,8 +146,8 @@ class SimpleCaptcha {
 	 */
 	function injectUserCreate( &$template ) {
 		global $wgCaptchaTriggers, $wgOut, $wgUser;
-		if( $wgCaptchaTriggers['createaccount'] ) {
-			if( $wgUser->isAllowed( 'skipcaptcha' ) ) {
+		if ( $wgCaptchaTriggers['createaccount'] ) {
+			if ( $wgUser->isAllowed( 'skipcaptcha' ) ) {
 				wfDebug( "ConfirmEdit: user group allows skipping captcha on account creation\n" );
 				return true;
 			}
@@ -169,7 +168,7 @@ class SimpleCaptcha {
 	 * @return bool true to keep running callbacks
 	 */
 	function injectUserLogin( &$template ) {
-		if( $this->isBadLoginTriggered() ) {
+		if ( $this->isBadLoginTriggered() ) {
 			global $wgOut;
 			$template->set( 'header',
 				"
" . @@ -179,7 +178,7 @@ class SimpleCaptcha { } return true; } - + /** * When a bad login attempt is made, increment an expiring counter * in the memcache cloud. Later checks for this may trigger a @@ -191,17 +190,17 @@ class SimpleCaptcha { */ function triggerUserLogin( $user, $password, $retval ) { global $wgCaptchaTriggers, $wgCaptchaBadLoginExpiration, $wgMemc; - if( $retval == LoginForm::WRONG_PASS && $wgCaptchaTriggers['badlogin'] ) { + if ( $retval == LoginForm::WRONG_PASS && $wgCaptchaTriggers['badlogin'] ) { $key = $this->badLoginKey(); $count = $wgMemc->get( $key ); - if( !$count ) { + if ( !$count ) { $wgMemc->add( $key, 0, $wgCaptchaBadLoginExpiration ); } $count = $wgMemc->incr( $key ); } return true; } - + /** * Check if a bad login has already been registered for this * IP address. If so, require a captcha. @@ -212,13 +211,13 @@ class SimpleCaptcha { global $wgMemc, $wgCaptchaBadLoginAttempts; return intval( $wgMemc->get( $this->badLoginKey() ) ) >= $wgCaptchaBadLoginAttempts; } - + /** * Check if the IP is allowed to skip captchas */ function isIPWhitelisted() { global $wgCaptchaWhitelistIP; - if( $wgCaptchaWhitelistIP ) { + if ( $wgCaptchaWhitelistIP ) { $ip = wfGetIp(); foreach ( $wgCaptchaWhitelistIP as $range ) { if ( IP::isInRange( $ip, $range ) ) { @@ -228,7 +227,7 @@ class SimpleCaptcha { } return false; } - + /** * Internal cache key for badlogin checks. * @return string @@ -237,7 +236,7 @@ class SimpleCaptcha { function badLoginKey() { return wfMemcKey( 'captcha', 'badlogin', 'ip', wfGetIP() ); } - + /** * Check if the submitted form matches the captcha session data provided * by the plugin when the form was generated. @@ -259,16 +258,15 @@ class SimpleCaptcha { * @param string $action (edit/create/addurl...) * @return bool true if action triggers captcha on editPage's namespace */ - function captchaTriggers( &$editPage, $action) { - global $wgCaptchaTriggers, $wgCaptchaTriggersOnNamespace; - //Special config for this NS? - if (isset( $wgCaptchaTriggersOnNamespace[$editPage->mTitle->getNamespace()][$action] ) ) + function captchaTriggers( &$editPage, $action ) { + global $wgCaptchaTriggers, $wgCaptchaTriggersOnNamespace; + // Special config for this NS? + if ( isset( $wgCaptchaTriggersOnNamespace[$editPage->mTitle->getNamespace()][$action] ) ) return $wgCaptchaTriggersOnNamespace[$editPage->mTitle->getNamespace()][$action]; - return ( !empty( $wgCaptchaTriggers[$action] ) ); //Default + return ( !empty( $wgCaptchaTriggers[$action] ) ); // Default } - /** * @param EditPage $editPage * @param string $newtext @@ -280,22 +278,22 @@ class SimpleCaptcha { $title = $editPage->mArticle->getTitle(); global $wgUser; - if( $wgUser->isAllowed( 'skipcaptcha' ) ) { + if ( $wgUser->isAllowed( 'skipcaptcha' ) ) { wfDebug( "ConfirmEdit: user group allows skipping captcha\n" ); return false; } - if( $this->isIPWhitelisted() ) + if ( $this->isIPWhitelisted() ) return false; global $wgEmailAuthentication, $ceAllowConfirmedEmail; - if( $wgEmailAuthentication && $ceAllowConfirmedEmail && + if ( $wgEmailAuthentication && $ceAllowConfirmedEmail && $wgUser->isEmailConfirmed() ) { wfDebug( "ConfirmEdit: user has confirmed mail, skipping captcha\n" ); return false; } - if( $this->captchaTriggers( $editPage, 'edit' ) ) { + if ( $this->captchaTriggers( $editPage, 'edit' ) ) { // Check on all edits global $wgUser; $this->trigger = sprintf( "edit trigger by '%s' at [[%s]]", @@ -306,8 +304,8 @@ class SimpleCaptcha { return true; } - if( $this->captchaTriggers( $editPage, 'create' ) && !$editPage->mTitle->exists() ) { - //Check if creating a page + if ( $this->captchaTriggers( $editPage, 'create' ) && !$editPage->mTitle->exists() ) { + // Check if creating a page global $wgUser; $this->trigger = sprintf( "Create trigger by '%s' at [[%s]]", $wgUser->getName(), @@ -317,7 +315,7 @@ class SimpleCaptcha { return true; } - if( $this->captchaTriggers( $editPage, 'addurl' ) ) { + if ( $this->captchaTriggers( $editPage, 'addurl' ) ) { // Only check edits that add URLs if ( $merged ) { // Get links from the database @@ -336,7 +334,7 @@ class SimpleCaptcha { $addedLinks = array_diff( $unknownLinks, $oldLinks ); $numLinks = count( $addedLinks ); - if( $numLinks > 0 ) { + if ( $numLinks > 0 ) { global $wgUser; $this->trigger = sprintf( "%dx url trigger by '%s' at [[%s]]: %s", $numLinks, @@ -349,20 +347,20 @@ class SimpleCaptcha { } global $wgCaptchaRegexes; - if( $wgCaptchaRegexes ) { + if ( $wgCaptchaRegexes ) { // Custom regex checks $oldtext = $this->loadText( $editPage, $section ); - foreach( $wgCaptchaRegexes as $regex ) { + foreach ( $wgCaptchaRegexes as $regex ) { $newMatches = array(); - if( preg_match_all( $regex, $newtext, $newMatches ) ) { + if ( preg_match_all( $regex, $newtext, $newMatches ) ) { $oldMatches = array(); preg_match_all( $regex, $oldtext, $oldMatches ); $addedMatches = array_diff( $newMatches[0], $oldMatches[0] ); $numHits = count( $addedMatches ); - if( $numHits > 0 ) { + if ( $numHits > 0 ) { global $wgUser; $this->trigger = sprintf( "%dx %s at [[%s]]: %s", $numHits, @@ -390,7 +388,7 @@ class SimpleCaptcha { global $wgCaptchaWhitelist; $source = wfMsgForContent( 'captcha-addurl-whitelist' ); - $whitelist = wfEmptyMsg( 'captcha-addurl-whitelist', $source ) + $whitelist = wfEmptyMsg( 'captcha-addurl-whitelist', $source ) ? false : $this->buildRegexes( explode( "\n", $source ) ); @@ -419,29 +417,29 @@ class SimpleCaptcha { } else { # Make regex # It's faster using the S modifier even though it will usually only be run once - //$regex = 'http://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')'; - //return '/' . str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $regex) ) . '/Si'; + // $regex = 'http://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')'; + // return '/' . str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $regex) ) . '/Si'; $regexes = ''; $regexStart = '/^https?:\/\/+[a-z0-9_\-.]*('; $regexEnd = ')/Si'; $regexMax = 4096; $build = false; - foreach( $lines as $line ) { + foreach ( $lines as $line ) { // FIXME: not very robust size check, but should work. :) - if( $build === false ) { + if ( $build === false ) { $build = $line; - } elseif( strlen( $build ) + strlen( $line ) > $regexMax ) { + } elseif ( strlen( $build ) + strlen( $line ) > $regexMax ) { $regexes .= $regexStart . - str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $build) ) . + str_replace( '/', '\/', preg_replace( '|\\\*/|', '/', $build ) ) . $regexEnd; $build = $line; } else { $build .= '|' . $line; } } - if( $build !== false ) { + if ( $build !== false ) { $regexes .= $regexStart . - str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $build) ) . + str_replace( '/', '\/', preg_replace( '|\\\*/|', '/', $build ) ) . $regexEnd; } return $regexes; @@ -454,7 +452,7 @@ class SimpleCaptcha { function getLinksFromTracker( $title ) { $dbr =& wfGetDB( DB_SLAVE ); $id = $title->getArticleId(); // should be zero queries - $res = $dbr->select( 'externallinks', array( 'el_to' ), + $res = $dbr->select( 'externallinks', array( 'el_to' ), array( 'el_from' => $id ), __METHOD__ ); $links = array(); while ( $row = $dbr->fetchObject( $res ) ) { @@ -462,14 +460,14 @@ class SimpleCaptcha { } return $links; } - + /** * Backend function for confirmEdit() and confirmEditAPI() * @return bool false if the CAPTCHA is rejected, true otherwise */ private function doConfirmEdit( $editPage, $newtext, $section, $merged = false ) { - if( $this->shouldCheck( $editPage, $newtext, $section, $merged ) ) { - if( $this->passCaptcha() ) { + if ( $this->shouldCheck( $editPage, $newtext, $section, $merged ) ) { + if ( $this->passCaptcha() ) { return true; } else { return false; @@ -489,12 +487,12 @@ class SimpleCaptcha { * @return bool true to continue saving, false to abort and show a captcha form */ function confirmEdit( $editPage, $newtext, $section, $merged = false ) { - if( defined('MW_API') ) { + if ( defined( 'MW_API' ) ) { # API mode - # The CAPTCHA was already checked and approved + # The CAPTCHA was already checked and approved return true; } - if( !$this->doConfirmEdit( $editPage, $newtext, $section, $merged ) ) { + if ( !$this->doConfirmEdit( $editPage, $newtext, $section, $merged ) ) { $editPage->showEditForm( array( &$this, 'editCallback' ) ); return false; } @@ -509,11 +507,11 @@ class SimpleCaptcha { function confirmEditMerged( $editPage, $newtext ) { return $this->confirmEdit( $editPage, $newtext, false, true ); } - - - function confirmEditAPI( &$editPage, $newtext, &$resultArr) { - if( !$this->doConfirmEdit( $editPage, $newtext, false, false ) ) { - $this->addCaptchaAPI($resultArr); + + + function confirmEditAPI( &$editPage, $newtext, &$resultArr ) { + if ( !$this->doConfirmEdit( $editPage, $newtext, false, false ) ) { + $this->addCaptchaAPI( $resultArr ); return false; } return true; @@ -527,23 +525,23 @@ class SimpleCaptcha { */ function confirmUserCreate( $u, &$message ) { global $wgCaptchaTriggers, $wgUser; - if( $wgCaptchaTriggers['createaccount'] ) { - if( $wgUser->isAllowed( 'skipcaptcha' ) ) { + if ( $wgCaptchaTriggers['createaccount'] ) { + if ( $wgUser->isAllowed( 'skipcaptcha' ) ) { wfDebug( "ConfirmEdit: user group allows skipping captcha on account creation\n" ); return true; } - if( $this->isIPWhitelisted() ) + if ( $this->isIPWhitelisted() ) return true; - + $this->trigger = "new account '" . $u->getName() . "'"; - if( !$this->passCaptcha() ) { + if ( !$this->passCaptcha() ) { $message = wfMsg( 'captcha-createaccount-fail' ); return false; } } return true; } - + /** * Hook for user login form submissions. * @param User $u @@ -551,12 +549,12 @@ class SimpleCaptcha { * @return bool true to continue, false to abort user creation */ function confirmUserLogin( $u, $pass, &$retval ) { - if( $this->isBadLoginTriggered() ) { - if( $this->isIPWhitelisted() ) + if ( $this->isBadLoginTriggered() ) { + if ( $this->isIPWhitelisted() ) return true; - + $this->trigger = "post-badlogin login '" . $u->getName() . "'"; - if( !$this->passCaptcha() ) { + if ( !$this->passCaptcha() ) { $message = wfMsg( 'captcha-badlogin-fail' ); // Emulate a bad-password return to confuse the shit out of attackers $retval = LoginForm::WRONG_PASS; @@ -573,9 +571,9 @@ class SimpleCaptcha { */ function passCaptcha() { $info = $this->retrieveCaptcha(); - if( $info ) { + if ( $info ) { global $wgRequest; - if( $this->keyMatch( $wgRequest->getVal('wpCaptchaWord'), $info ) ) { + if ( $this->keyMatch( $wgRequest->getVal( 'wpCaptchaWord' ), $info ) ) { $this->log( "passed" ); $this->clearCaptcha( $info ); return true; @@ -610,7 +608,7 @@ class SimpleCaptcha { * @return string captcha ID key */ function storeCaptcha( $info ) { - if( !isset( $info['index'] ) ) { + if ( !isset( $info['index'] ) ) { // Assign random index if we're not udpating $info['index'] = strval( mt_rand() ); } @@ -645,11 +643,11 @@ class SimpleCaptcha { */ function loadText( $editPage, $section ) { $rev = Revision::newFromTitle( $editPage->mTitle ); - if( is_null( $rev ) ) { + if ( is_null( $rev ) ) { return ""; } else { $text = $rev->getText(); - if( $section != '' ) { + if ( $section != '' ) { return Article::getSection( $text, $section ); } else { return $text; @@ -683,22 +681,21 @@ class SimpleCaptcha { $wgOut->addWikiText( wfMsg( 'captchahelp-cookies-needed' ) ); } } - } class CaptchaSessionStore { function store( $index, $info ) { $_SESSION['captcha' . $info['index']] = $info; } - + function retrieve( $index ) { - if( isset( $_SESSION['captcha' . $index] ) ) { + if ( isset( $_SESSION['captcha' . $index] ) ) { return $_SESSION['captcha' . $index]; } else { return false; } } - + function clear( $index ) { unset( $_SESSION['captcha' . $index] ); } @@ -718,13 +715,13 @@ class CaptchaCacheStore { function retrieve( $index ) { global $wgMemc; $info = $wgMemc->get( wfMemcKey( 'captcha', $index ) ); - if( $info ) { + if ( $info ) { return $info; } else { return false; } } - + function clear( $index ) { global $wgMemc; $wgMemc->delete( wfMemcKey( 'captcha', $index ) ); @@ -734,4 +731,3 @@ class CaptchaCacheStore { return false; } } - diff --git a/FancyCaptcha.class.php b/FancyCaptcha.class.php index 0128417..1d7aa2e 100644 --- a/FancyCaptcha.class.php +++ b/FancyCaptcha.class.php @@ -15,7 +15,7 @@ class FancyCaptcha extends SimpleCaptcha { $digest = $wgCaptchaSecret . $info['salt'] . $answer . $wgCaptchaSecret . $info['salt']; $answerHash = substr( md5( $digest ), 0, 16 ); - if( $answerHash == $info['hash'] ) { + if ( $answerHash == $info['hash'] ) { wfDebug( "FancyCaptcha: answer hash matches expected {$info['hash']}\n" ); return true; } else { @@ -24,9 +24,9 @@ class FancyCaptcha extends SimpleCaptcha { } } - function addCaptchaAPI(&$resultArr) { + function addCaptchaAPI( &$resultArr ) { $info = $this->pickImage(); - if( !$info ) { + if ( !$info ) { $resultArr['captcha']['error'] = 'Out of images'; return; } @@ -35,7 +35,7 @@ class FancyCaptcha extends SimpleCaptcha { $resultArr['captcha']['type'] = 'image'; $resultArr['captcha']['mime'] = 'image/png'; $resultArr['captcha']['id'] = $index; - $resultArr['captcha']['url'] = $title->getLocalUrl( 'wpCaptchaId=' . urlencode( $index ) ); + $resultArr['captcha']['url'] = $title->getLocalUrl( 'wpCaptchaId=' . urlencode( $index ) ); } /** @@ -43,7 +43,7 @@ class FancyCaptcha extends SimpleCaptcha { */ function getForm() { $info = $this->pickImage(); - if( !$info ) { + if ( !$info ) { die( "out of captcha images; this shouldn't happen" ); } @@ -87,27 +87,27 @@ class FancyCaptcha extends SimpleCaptcha { $wgCaptchaDirectory, $wgCaptchaDirectoryLevels ); } - + function pickImageDir( $directory, $levels ) { - if( $levels ) { + if ( $levels ) { $dirs = array(); - + // Check which subdirs are actually present... $dir = opendir( $directory ); - while( false !== ($entry = readdir( $dir ) ) ) { - if( ctype_xdigit( $entry ) && strlen( $entry ) == 1 ) { + while ( false !== ( $entry = readdir( $dir ) ) ) { + if ( ctype_xdigit( $entry ) && strlen( $entry ) == 1 ) { $dirs[] = $entry; } } closedir( $dir ); - + $place = mt_rand( 0, count( $dirs ) - 1 ); // In case all dirs are not filled, // cycle through next digits... - for( $j = 0; $j < count( $dirs ); $j++ ) { - $char = $dirs[($place + $j) % count( $dirs )]; + for ( $j = 0; $j < count( $dirs ); $j++ ) { + $char = $dirs[( $place + $j ) % count( $dirs )]; $return = $this->pickImageDir( "$directory/$char", $levels - 1 ); - if( $return ) { + if ( $return ) { return $return; } } @@ -117,9 +117,9 @@ class FancyCaptcha extends SimpleCaptcha { return $this->pickImageFromDir( $directory ); } } - + function pickImageFromDir( $directory ) { - if( !is_dir( $directory ) ) { + if ( !is_dir( $directory ) ) { return false; } $n = mt_rand( 0, $this->countFiles( $directory ) - 1 ); @@ -129,9 +129,9 @@ class FancyCaptcha extends SimpleCaptcha { $entry = readdir( $dir ); $pick = false; - while( false !== $entry ) { + while ( false !== $entry ) { $entry = readdir( $dir ); - if( preg_match( '/^image_([0-9a-f]+)_([0-9a-f]+)\\.png$/', $entry, $matches ) ) { + if ( preg_match( '/^image_([0-9a-f]+)_([0-9a-f]+)\\.png$/', $entry, $matches ) ) { $size = getimagesize( "$directory/$entry" ); $pick = array( 'salt' => $matches[1], @@ -140,7 +140,7 @@ class FancyCaptcha extends SimpleCaptcha { 'height' => $size[1], 'viewed' => false, ); - if( $count++ == $n ) { + if ( $count++ == $n ) { break; } } @@ -156,8 +156,8 @@ class FancyCaptcha extends SimpleCaptcha { function countFiles( $dirname ) { $dir = opendir( $dirname ); $count = 0; - while( false !== ($entry = readdir( $dir ) ) ) { - if( $entry != '.' && $entry != '..' ) { + while ( false !== ( $entry = readdir( $dir ) ) ) { + if ( $entry != '.' && $entry != '..' ) { $count++; } } @@ -171,7 +171,7 @@ class FancyCaptcha extends SimpleCaptcha { $wgOut->disable(); $info = $this->retrieveCaptcha(); - if( $info ) { + if ( $info ) { /* // Be a little less restrictive for now; in at least some circumstances, // Konqueror tries to reload the image even if you haven't navigated @@ -189,7 +189,7 @@ class FancyCaptcha extends SimpleCaptcha { $hash = $info['hash']; $file = $this->imagePath( $salt, $hash ); - if( file_exists( $file ) ) { + if ( file_exists( $file ) ) { global $IP; require_once "$IP/includes/StreamFile.php"; header( "Cache-Control: private, s-maxage=0, max-age=3600" ); @@ -200,13 +200,13 @@ class FancyCaptcha extends SimpleCaptcha { wfHttpError( 500, 'Internal Error', 'Requested bogus captcha image' ); return false; } - + function imagePath( $salt, $hash ) { global $wgCaptchaDirectory, $wgCaptchaDirectoryLevels; $file = $wgCaptchaDirectory; $file .= DIRECTORY_SEPARATOR; - for( $i = 0; $i < $wgCaptchaDirectoryLevels; $i++ ) { - $file .= $hash{$i}; + for ( $i = 0; $i < $wgCaptchaDirectoryLevels; $i++ ) { + $file .= $hash { $i } ; $file .= DIRECTORY_SEPARATOR; } $file .= "image_{$salt}_{$hash}.png"; @@ -227,5 +227,4 @@ class FancyCaptcha extends SimpleCaptcha { # the default for edits return wfEmptyMsg( $name, $text ) ? wfMsg( 'fancycaptcha-edit' ) : $text; } - } diff --git a/FancyCaptcha.i18n.php b/FancyCaptcha.i18n.php index 9814021..6b3f423 100644 --- a/FancyCaptcha.i18n.php +++ b/FancyCaptcha.i18n.php @@ -536,7 +536,7 @@ $messages['jv'] = array( * @author Atabek */ $messages['kaa'] = array( - 'fancycaptcha-createaccount' => "Jan'a akkauntlardın' avtomatik jaratılıwının' aldın alıw ushın, to'mendegi + 'fancycaptcha-createaccount' => "Jan'a akkauntlardın' avtomatik jaratılıwının' aldın alıw ushın, to'mendegi ko'rsetilgen so'zlerdi kiritin'([[{{ns:special}}:Captcha/help|ko'birek mag'lıwmat]]):", ); diff --git a/FancyCaptcha.php b/FancyCaptcha.php index 3d300fc..c2a6cc3 100644 --- a/FancyCaptcha.php +++ b/FancyCaptcha.php @@ -37,6 +37,5 @@ $wgCaptchaDirectoryLevels = 0; // To break into subdirectories global $wgCaptchaSecret; $wgCaptchaSecret = "CHANGE_THIS_SECRET!"; -$wgExtensionMessagesFiles['FancyCaptcha'] = dirname(__FILE__).'/FancyCaptcha.i18n.php'; +$wgExtensionMessagesFiles['FancyCaptcha'] = dirname( __FILE__ ) . '/FancyCaptcha.i18n.php'; $wgAutoloadClasses['FancyCaptcha'] = dirname( __FILE__ ) . '/FancyCaptcha.class.php'; - diff --git a/MathCaptcha b/MathCaptcha index 54239fe..49ea648 100644 --- a/MathCaptcha +++ b/MathCaptcha @@ -39,7 +39,7 @@ file, above the closing ?> tag: require_once( 'extensions/ConfirmEdit.php' ); require_once( 'extensions/MathCaptcha.php' ); $wgCaptchaClass = 'MathCaptcha'; - + This installs ConfirmEdit and instructs it to use the MathCaptcha plugin. The default settings for ConfirmEdit are used. At this point, no further action is required to have the plugin work for user registration or edits @@ -73,4 +73,4 @@ with the ConfirmEdit extension, please use http://bugzilla.wikimedia.org. i. http://en.wikipedia.org/wiki/Captcha ii. http://meta.wikimedia.org/wiki/ConfirmEdit iii. http://meta.wikimedia.org/wiki/Enable_TeX -iv. http://www.mediawiki.org/wiki/Subversion \ No newline at end of file +iv. http://www.mediawiki.org/wiki/Subversion diff --git a/MathCaptcha.class.php b/MathCaptcha.class.php index 9348d87..9b9cde2 100644 --- a/MathCaptcha.class.php +++ b/MathCaptcha.class.php @@ -7,26 +7,26 @@ class MathCaptcha extends SimpleCaptcha { return (int)$answer == (int)$info['answer']; } - function addCaptchaAPI(&$resultArr) { + function addCaptchaAPI( &$resultArr ) { list( $sum, $answer ) = $this->pickSum(); - $index = $this->storeCaptcha( array('answer' => $answer ) ); + $index = $this->storeCaptcha( array( 'answer' => $answer ) ); $resultArr['captcha']['type'] = 'math'; $resultArr['captcha']['mime'] = 'text/tex'; $resultArr['captcha']['id'] = $index; $resultArr['captcha']['question'] = $sum; } - + /** Produce a nice little form */ function getForm() { list( $sum, $answer ) = $this->pickSum(); $index = $this->storeCaptcha( array( 'answer' => $answer ) ); - + $form = ''; $form .= '
' . $this->fetchMath( $sum ) . '' . Xml::input( 'wpCaptchaWord', false, false, array( 'tabindex' => '1' ) ) . '
'; $form .= Xml::hidden( 'wpCaptchaId', $index ); return $form; } - + /** Pick a random sum */ function pickSum() { $a = mt_rand( 0, 100 ); @@ -36,7 +36,7 @@ class MathCaptcha extends SimpleCaptcha { $ans = $op == '+' ? ( $a + $b ) : ( $a - $b ); return array( $sum, $ans ); } - + /** Fetch the math */ function fetchMath( $sum ) { $math = new MathRenderer( $sum ); @@ -44,6 +44,4 @@ class MathCaptcha extends SimpleCaptcha { $html = $math->render(); return preg_replace( '/alt=".*?"/', '', $html ); } - } -?> diff --git a/MathCaptcha.php b/MathCaptcha.php index 772687a..b3a7a43 100644 --- a/MathCaptcha.php +++ b/MathCaptcha.php @@ -10,9 +10,9 @@ * @licence GNU General Public Licence 2.0 */ -if( !defined( 'MEDIAWIKI' ) ) { +if ( !defined( 'MEDIAWIKI' ) ) { echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" ); die( 1 ); } -$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php'; +$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php'; diff --git a/QuestyCaptcha.class.php b/QuestyCaptcha.class.php old mode 100755 new mode 100644 index 385edab..cd9c71d --- a/QuestyCaptcha.class.php +++ b/QuestyCaptcha.class.php @@ -14,7 +14,7 @@ class QuestyCaptcha extends SimpleCaptcha { return strtolower( $answer ) == strtolower( $info['answer'] ); } - function addCaptchaAPI(&$resultArr) { + function addCaptchaAPI( &$resultArr ) { $captcha = $this->getCaptcha(); $index = $this->storeCaptcha( $captcha ); $resultArr['captcha']['type'] = 'question'; @@ -22,15 +22,15 @@ class QuestyCaptcha extends SimpleCaptcha { $resultArr['captcha']['id'] = $index; $resultArr['captcha']['question'] = $captcha['question']; } - + function getCaptcha() { global $wgCaptchaQuestions; - return $wgCaptchaQuestions[mt_rand( 0, count( $wgCaptchaQuestions )-1 )]; //pick a question, any question + return $wgCaptchaQuestions[mt_rand( 0, count( $wgCaptchaQuestions ) - 1 )]; // pick a question, any question } - + function getForm() { $captcha = $this->getCaptcha(); - if(!$captcha) { + if ( !$captcha ) { die( "No questions found; set some in LocalSettings.php using the format from QuestyCaptcha.php." ); } $index = $this->storeCaptcha( $captcha ); @@ -46,7 +46,7 @@ class QuestyCaptcha extends SimpleCaptcha { 'id' => 'wpCaptchaId', 'value' => $index ) ); } - + function getMessage( $action ) { $name = 'questycaptcha-' . $action; $text = wfMsg( $name ); @@ -54,7 +54,7 @@ class QuestyCaptcha extends SimpleCaptcha { # the default for edits return wfEmptyMsg( $name, $text ) ? wfMsg( 'questycaptcha-edit' ) : $text; } - + function showHelp() { global $wgOut, $ceAllowConfirmedEmail; $wgOut->setPageTitle( wfMsg( 'captchahelp-title' ) ); @@ -63,5 +63,4 @@ class QuestyCaptcha extends SimpleCaptcha { $wgOut->addWikiText( wfMsg( 'captchahelp-cookies-needed' ) ); } } - -} \ No newline at end of file +} diff --git a/QuestyCaptcha.i18n.php b/QuestyCaptcha.i18n.php old mode 100755 new mode 100644 index 5b22c52..24fe4c3 --- a/QuestyCaptcha.i18n.php +++ b/QuestyCaptcha.i18n.php @@ -9,20 +9,20 @@ $messages = array(); /** English */ $messages['en'] = array( - 'questycaptcha-desc' => 'Questy captcha generator for Confirm Edit', - 'questycaptcha-addurl' => 'Your edit includes new external links. + 'questycaptcha-desc' => 'Questy captcha generator for Confirm Edit', + 'questycaptcha-addurl' => 'Your edit includes new external links. To help protect against automated spam, please answer the question that appears below ([[Special:Captcha/help|more info]]):', - 'questycaptcha-badlogin' => 'To help protect against automated password cracking, please answer the question that appears below ([[Special:Captcha/help|more info]]):', + 'questycaptcha-badlogin' => 'To help protect against automated password cracking, please answer the question that appears below ([[Special:Captcha/help|more info]]):', 'questycaptcha-createaccount' => 'To help protect against automated account creation, please answer the question that appears below ([[Special:Captcha/help|more info]]):', - 'questycaptcha-create' => 'To create the page, please answer the question that appears below ([[Special:Captcha/help|more info]]):', - 'questycaptcha-edit' => 'To edit this page, please answer the question that appears below ([[Special:Captcha/help|more info]]):', - 'questycaptchahelp-text' => "Web sites that accept postings from the public, like this wiki, are often abused by spammers who use automated tools to post their links to many sites. + 'questycaptcha-create' => 'To create the page, please answer the question that appears below ([[Special:Captcha/help|more info]]):', + 'questycaptcha-edit' => 'To edit this page, please answer the question that appears below ([[Special:Captcha/help|more info]]):', + 'questycaptchahelp-text' => "Web sites that accept contributions from the public, like this wiki, are often abused by spammers who use automated tools to add their links to many sites. While these spam links can be removed, they are a significant nuisance. Sometimes, especially when adding new web links to a page, the wiki may ask you to answer a question. -Since this is a task that's hard to automate, it will allow most real humans to make their posts while stopping most spammers and other robotic attackers. +Since this is a task that is hard to automate, it will allow most real humans to make their contributions while stopping most spammers and other robotic attackers. -Please contact the [[{{MediaWiki:Grouppage-sysop}}|site administrators]] for assistance if this is unexpectedly preventing you from making legitimate posts. +Please contact the [[{{MediaWiki:Grouppage-sysop}}|site administrators]] for assistance if this is unexpectedly preventing you from making legitimate contributions. -Hit the 'back' button in your browser to return to the page editor.", -); \ No newline at end of file +Click the 'back' button in your browser to return to the page editor.", +); diff --git a/QuestyCaptcha.php b/QuestyCaptcha.php old mode 100755 new mode 100644 index a984698..bafe48e --- a/QuestyCaptcha.php +++ b/QuestyCaptcha.php @@ -29,11 +29,10 @@ if ( !defined( 'MEDIAWIKI' ) ) { global $wgCaptchaQuestions; $wgCaptchaQuestions = array(); -//$wgCaptchaQuestions[] = array( 'question' => "A question?", 'answer' => "An answer!" ); -//$wgCaptchaQuestions[] = array( 'question' => 'How much wood would a woodchuck chuck if a woodchuck could chuck wood?', 'answer' => 'as much wood as...' ); -//$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" ); -//add your questions in LocalSettings.php using this format +// $wgCaptchaQuestions[] = array( 'question' => "A question?", 'answer' => "An answer!" ); +// $wgCaptchaQuestions[] = array( 'question' => 'How much wood would a woodchuck chuck if a woodchuck could chuck wood?', 'answer' => 'as much wood as...' ); +// $wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" ); +// add your questions in LocalSettings.php using this format -$wgExtensionMessagesFiles['QuestyCaptcha'] = dirname(__FILE__).'/QuestyCaptcha.i18n.php'; +$wgExtensionMessagesFiles['QuestyCaptcha'] = dirname( __FILE__ ) . '/QuestyCaptcha.i18n.php'; $wgAutoloadClasses['QuestyCaptcha'] = dirname( __FILE__ ) . '/QuestyCaptcha.class.php'; -