Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | * main() |
51 | 51 | */ |
52 | 52 | public function execute( $par ) { |
53 | | - global $wgOut, $wgSpecialVersionShowHooks, $wgContLang; |
| 53 | + global $wgOut, $wgSpecialVersionShowHooks, $wgContLang, $wgRequest; |
54 | 54 | |
55 | 55 | $this->setHeaders(); |
56 | 56 | $this->outputHeader(); |
— | — | @@ -68,6 +68,12 @@ |
69 | 69 | $wgOut->addWikiText( $text ); |
70 | 70 | $wgOut->addHTML( $this->IPInfo() ); |
71 | 71 | $wgOut->addHTML( '</div>' ); |
| 72 | + |
| 73 | + if ( $wgRequest->getVal( 'easteregg' ) ) { |
| 74 | + if ( $this->showEasterEgg() ) { |
| 75 | + // TODO: put something interesting here |
| 76 | + } |
| 77 | + } |
72 | 78 | } |
73 | 79 | |
74 | 80 | /** |
— | — | @@ -655,4 +661,92 @@ |
656 | 662 | } |
657 | 663 | } |
658 | 664 | |
| 665 | + function showEasterEgg() { |
| 666 | + $rx = $rp = ''; |
| 667 | + for ( $i = 1; $i <= 4; $i++ ) { |
| 668 | + $rx .= '([^j]*)j'; |
| 669 | + $rp .= "+(\\$i)"; |
| 670 | + } |
| 671 | + $rx = "/$rx/e"; |
| 672 | + $haystack = strtr( 'kr=<<<zb/./usebzbjbki=<<<z |
| 673 | +쵍潅旅왎캎𐺆ঈ棁괬䢎𞴧仧楡죃곀꺏杀܅欠迃䤮ཇ괇༇고极𐪂༏谠⾯𐝀䞦쬁 |
| 674 | +즧𒿧𞢇氡쟡୧𐿆䣧潧覄춯流棤榆𐿡⬥ౠ줡澧ལ潁쫃𞢯袅洃褤쥣Ⲅ䥤櫯濄 |
| 675 | +𐳁곏蜀䤣迥껯𘬧߂欁䰮漣枆⽇诏짯补촯𐜏䥇浏蠄桃䵆䱇⥬쯁辧ඦ躇 |
| 676 | +洅ꡀ⟤䢏Я𐳥Ɐ쭀⤥✌䥎ঢ굡ಇܯ棅䶇诧栢⳥웃象䣄ⳡꝥ櫀衡此杠伮䰤⡯ |
| 677 | +賀Ⲭ✡𐱂𐦁ⵅ߂䯏䳠콤萠槤꼀ޏୡ诧⬀䫮괏ⶏ𞢯䧣䠢쾅⺅䜄䧧줠佀쾣䡏쵣 |
| 678 | +꾥⾥桅謃貤쵄浤졅ꞇ𐴄枦漢곃轥웠歏輇쮃ޤ楇赤އ졁य䥤檁𐿦첄⤁࿂ |
| 679 | +𖽢𞡣欇꽅졁氎춅毠滧웁ড쿡䠤澢궡ߢ잠蠁蟥䯠𞴅ⳤແ俆轠육䡀졣༢ⶄ毃搤䪏轁榤ҥ䭤Ⰳ |
| 680 | +伢쾯澁螃躁⠠ݧ좡⤅𐰄褃ꡧ䢃챃⾥꿤洆܄ꠅ⠄쵤𐦃浂ꢤ⺇迀䢤迯졁䜦蝯 |
| 681 | +迄곁꾃䲮쫯અ䳣𐠠漆欮𐡡⤬蛄⥣⫬ܣ܄궡쫏쬏澯搠⟁쥀氤챃𞤤䭯⪀䜏적䐢 |
| 682 | +修朠ཆइ⫯赠␡覠쳥䬏춣좠汃쮣䵆괯楃䭏쳁䯤⼁撧觠캏𞤀仠𞣏仦꼯檇𞠣𐢧诇⢠ꠇ𞥇 |
| 683 | +०ޢ侧跣잁杆⪇濣컃蛀Р𞢥껃구襣꜁䯃귧楤迣⧣⦄임亏𞴧⺏泂켣⬁蟀곯氣 |
| 684 | +ꞅ겡氢讠괡𒿬❤𐭥覤읡毄漄쥏輁𖽢Ꝁ䛏ꤌ檆殧ݯ䴦ү쾤곌枢䳧𐾁䳀椎䞂䰢輥俆譃 |
| 685 | +枇諀𐡢䟯諣路𐳣撥⺇❏杯અ欇檆蜯쮁譤䥦搠✯棡웄殁欦쮯𐲀潀௦쬣䶧⽤𞡅쥄ⴀ |
| 686 | +誄桦궄栀쮤켁朤䱎䷧枃梤佇諃榡榄裣讅汄𐿠跥袯毇𐝂䵎賃栯蒥档챏꾬䯤⺌죧 |
| 687 | +␣䵄䵣泠괥ॠ쿣죤䳢꿥栤챤ⵏ汃䮦콠⺅ⶥ꽣쮡䰏覅𐣣꾠촡侃䮂⾌𞴯ꞇ襥쒤萣䭣 |
| 688 | +䭇궄ޅ컡윇𞤥ⶃ𐫁𐐧栎蝁좤𘐧䦇웧굏袥ⱃ梎𐴁櫮𞲇켃覠𞲡꒣⤥涮俯血𐠤즄謯浤螤 |
| 689 | +搦䡣贄䠀❄ত൦좇⟯䝧곀滅谠𞲤䜠榏𒿠꜃Ꝡ쾏䦢⽄欎䡂⽏䟦櫎䯮蟥溂跠𒐯⣀쫡 |
| 690 | +轡젃𐱄⼬汇概굄⤀ഢ༯欯𐾆쫥췡𐠯滏𞡧ⵌ梂궀𐫅𐣦⺄ۂ楤袅첁䰮榧꾌꒬螤侎椅謁䱀 |
| 691 | +쾁ಣ䤃⿄䯇␣궃汎淧⫬趯榅쵃䟏ॡ䒢𞺄䡧步泥⦀䛮യএꠀ沎ݧ軏軧ತ겯 |
| 692 | +䝮波栎⟁血쥃ⵄ槧𐺃𖤧䥀萡즣杂涥汅责ଇ䬏趁诣챀蜤搤漦쥁⡧쥧ಆ輠䯃泅Ң譧伢 |
| 693 | +䞦즃朎ꢅ𔐧朁꽃賣佣賣𞡅泅䤣賥𞥁잀저곧⟠梂ꡃⲥ朆軃流⻣웏ౡ衤搦譣 |
| 694 | +蒤⠄쵃蝇漦𐠃ⶀ䥧袥䵎氥쭣螄棧䐣极ꥄൡ𐞧꾠젇𐫇螇콀檀䤠䡧܂䯮袥춀䜇 |
| 695 | +軅ꝏ𞠏⤠襯䦃౧櫧⧧ۇ𖼧겇𞡄𞲣𘜧䞆⥠伮⻏澃润楏辅歇ⵇ⼇輠꽤𞠧 |
| 696 | +𐤂椦𐠅젥欠檅⟥𐫁伢侂𐭢컣𐠁ꢧ褤⪅辯𐝁⤠⢣𐿧伆撢䬀跤𞤏謥䲤굅൦亇曢𐫄 |
| 697 | +𞢥桄쮁汏䶤䞀䣎⡥䲂枎웁楄栠𐴃謇䲄𐳥浀漀췥죅椆ꥄ༅ۯ楮ए䧤漀𐡤쬇泦䳤 |
| 698 | +蝠椦𐾃⢃䫢䱏梦𐭇梧氅䥮⫏췤蟇䪀𐫤䱃杯䭏毮곧䳀汄웯⢥⛃襃𐞧欯仆櫡櫆涥濂 |
| 699 | +𞟥ޡ⦧梅ༀ⪀𞴠譃쬁䠮濧资䡮걡沥Ⰴ歀袅汣涢⻬챠࿅𐿯⣌觤䰄𐡢⡡걥 |
| 700 | +쟧쫡갇俏謀𐮂柏𐿤𞢡ꠃ柠죅𒐬쥠櫯𐳂榦杮朄❡泤겅채ⵣ쫏檂쫤蛏代 |
| 701 | +梯𞲯༠𐤧貯⡧歧ꡏ䭦謤曮𞢃𐱀䫇䮧䶢䵠ꠀ䱇➠传읧此꾣ⳣ椂𜼧䭂쵅𞲧䰠䤣 |
| 702 | +栦栎䧢䐣豤䬢䷠䷤ఆ껇䝧𞡠萠侯䷣䝂⠯윃즁侮껠❬䧤谯웥ⲧ쯇櫦谯楃가辅⢄衅춣 |
| 703 | +搥൧次ౠ⣄༦ଥ蜃쯄涀Ⱓ貧꽡쮥𐬧浤Ⱓ沀較궀䡄쳯䱀會資浯𐫆䢄짯졯걁滠 |
| 704 | +譃⪏洮쿠콡쯣쯥⤏⤡棃ⴅ⡃但⤀賤氃𒿥淤𞴏꿣榆𞲇⣧諠歮𐠄죥栦䱧楣➯𐛢𐺅濣⥏ |
| 705 | +桏䤏䶏辡Ⳅ콤俇껥覅亃漢𐛢ߠ諥䴃迏ꠠ쥏浤衯澣槡ଇⰄ궀쫠𖬧讏轠ⲯ웏꼏 |
| 706 | +䲮߃辄朮蟯ꜣ䤦द襅褀𞴏䒮檇ꤏ궤쫯浤螡⒠ꢏ𐭂⛃⺁氯𐪄潣쾡곁𐭢𞠇좀蠇泠 |
| 707 | +⥌𐝆澇柮ಢ诣⻥䥯柇ⴀ桥柁辡డ补漦쫇𐬃𞠣歁伏澮毠䠣潡쳃궇殧財枥 |
| 708 | +촥쾀潦䪂즁誏跣营ꠅݤ쮤껅Ꜭ𐪁쬃裀袥武豏趀洇⺀ⴌ沎ⵯ쟠蟁𞠠⥥榃䜃蛣ꥅ |
| 709 | +漆⢣좠䥃ⵀআ쥅楯쳯ౠ枤Ⱔఇ䮤⟃䯀轇궅殠䬦Ⰳ泥沄ఇⰤ⬣궯赀ໆ溃ଣⵄ쾥⡅ |
| 710 | +潆襧潅𐭆𞠃諡欏궁䡆裠ಢ泄譥✏콃굤꒣쮃짥అ淢௧ꠇ꾥栥䟀굀⫠갥柡䵆襣俄泧辀Ҡ좣 |
| 711 | +쟄侃ⴣ複䰯꿏쪇軇케賁⤃泮诅楤⟃朠𐣧⿇曤௧赀䫢貯潃줡津䝆涎蠄溎查䥂쪀 |
| 712 | +ຂ꼣𐞧ಏ豏櫏䞮𐡁䠯讄蝤𞤃𐬁賠꺌쫡赤꽏貃䫏୯蛠贃𞤃읤𐿧楃槤谄✁迠⽀䦠 |
| 713 | +覥䛮ⵄ䞧ꞀⰬ曢⣬䢯즄概淣譡贤輣汏ꞁ갣줯枂웧ໃ杦𞴧潏汆䥤ഠ쯥蠄曏䳇ⵇ |
| 714 | +𐾁𐾃⟠䦣윏꽀杧𞠯楃껣இ䛆걠쿃윅萤괌𞡏櫠쒡輀袇잁ߡꡅ迅䬇챡袣䭤漦챯ꤥ찇 |
| 715 | +淡䝤𘬧࿂ૠ꺇𞣏ⴣߦ澀标⾃ꐡཀ谁쥣柠겣𐺀𞤏ൡⱤ윥䱤亇⦧䒦좠褏䜎캏 |
| 716 | +軣滦ड䡯池𐤂ൡۥ椁𖽢潦貥趯柢컁꼀죯淦Ⱜ撦쟇蜇⼬贯𐫅겄櫀杁 |
| 717 | +쿣賯ⶬ꼣𐢂淤搯䯂激䡃ⱥ档贡ૠ쳯䮯⥬𐭏䳄䭇쾃极챇䳠跥ꠃ종❃澧檂撡༣氇 |
| 718 | +༄⧧𐠧豀䡀蝤躃俇楄氅𞴯䫏꼠讅贯衠❁가䡯꼃Ꝥ꽡滏⥌污𐾀웄움ꢅ𐴄朂ⳁ껡췡 |
| 719 | +褠朏輥蟀걧蝄죯ߧ߅⾁䬄蛀𐠦⦥覤걀亏𐜏侣쾁貥贁蛡係췯𞡇涎柣✏枥⽠軁ഠ |
| 720 | +䡠꤯䶎쟇濅䵏辀Ᵽ袧李༂佤쬤𞢇䭏ଠⲣ朆⟠䳄⒡讀ꞃ𞲏䣎䯮讠䱎䷢传굄 |
| 721 | +⻣䲢Ҥ육꿇櫇栅ଣ⺀每澦𐣤짡𐡆𒐧漮襧쯇⻁⫃謣誅쫃⪏䐣춥𐿥𐿧杠Ꜭ槤洦 |
| 722 | +ꢠ⺅萯⒠軃𐦄첇ⵠ棡쵥𞠤쬯웡꒥欤赇䴄诃⦇氣步䥮伃赥⫅谠𞴡곏搮𜼧杤쬅潤 |
| 723 | +泦책毦軏氏䦣ܤ朠榁ⴄ𐬄侣棠읠읏澣䴂軡걃轣觤䣯潎⤄𐧥컣檂쪇覡䭯楤⪏槠 |
| 724 | +桇𐮄䪆쫁ধݠⴃ䞏䣮⫡Ⲅ䵀껀殀𐠢డ⣁챠䪇܁܄䫯䳧汁䛄위⦣⬬⣏ |
| 725 | +견豄첇좏䟦꼀侦걁윣곇讥浄༆쮥콣涯젃꤇⤁沠⥠𐱀䵠𐡃⫁䣃螇⼠➁䫃䶧𐝆䧢Ⰰ澯蜁譃䶇 |
| 726 | +윃ഢ䭆欤잯杄䟆쮯俎궄軃ⶏಣ줇𐾀謥褀ⵁⱯⰃ𐣦𞲥껁𐣠⼄쫠朦을況⥅𐝢 |
| 727 | +ඣ濎螇沦걌즏𐡦𐢅굁⣃Ⰼ軀쮧䟦⭁䥏䴀氀殢䫣졁껇❃赧윤쵠係 |
| 728 | +ඤ꤁浀榧輯佤梀⦁褡⿁楆ආஇ젇榧갡⥃⦯𐭣仂잡❣滆澧撧컠쟯欤컄ꐤ⪃𐭢⥡꾡 |
| 729 | +䶣쐥즅譄ଅ泆衣曅𐡤⾯轧䥄쳣𐺀襃꾥萤겤컧웃𞢠汇⪇껃俯涥𐦃沤濠 |
| 730 | +䟆撮쯅육䤎𐝃貁갇⫠椅쿄ݤ䛤跤仠த氦챠잧䥂⢥⒡⼡⤯䦎𐢂ⲁ⡅軥諯쫅␡ |
| 731 | +ߤ蒯Ꜥ棠짡谅쥠쭃촃𐠯ꐡ濥軃洮⼀䟣诀곃ⴁ撥𐱁걁⻯ⲇ𐳅侤굤 |
| 732 | +꒣전웣죀䫇櫂䥇⼌짡챁𐛢仮ꐥ裣䞄蝀쟅谯ⵌ𐰄అ✤䯂𒿬⠁桅賡Ⰳ溅蜀杀侀 |
| 733 | +𐿢ꠅ䥂⿇가赥楧蛡૯춧䱮歀Ɐ裯웣欅꿇䛀찀䢢泤殥䲤꿣俏꜀⟠춯楁䵠楄趧裃䥮쪏次 |
| 734 | +汄朥ಯ䴢䯀⫧졥쵠ꝯໄ권ⱌ𞣁螄蜁澏洁అߠ젃歄襏趧䡎쾧潏𐲀⣀貃𞲏 |
| 735 | +殏찄첧䛦⻡䦤⦡枤ⵤ談꼁쬇蝅䤏즣ದ⾃桀袁䟃𞥀⭌ۄ洎⾇⽁⤠謃챀侮浯䐠걥谤짡 |
| 736 | +䥮潀쮀␥𞟤轀殥웧쮠䥃⿄궁읡쮯ଡ枠𞠁⻇괏콯⼏쮡䞃濇曮ଦ갡켄䴯⫤ |
| 737 | +⟅撯觡裁櫃躀య桎滦준𐭁滥褣ఇ켏꽤ඤ꺀毁泄캁𐺀ୡ궀覇迃𐭁䡂襯쬀⬬ |
| 738 | +𐪀귡波쬥ऄ⧤굠谡ඣ洂웥즡졤輇✡䛎杀𞺃윃柢俏涆洅ⴁ賃䥄괬賥讧襧➏䳮䰃 |
| 739 | +譏淠줠⽠溇ⲁ𞤀ऄ𞺅䬆⦇웄➥잏螏➧䛎曅𞡄枆䬤柏䠣赀欮ഇ𐴀誁𞤅윃漂䝎 |
| 740 | +溄谅䟂䷤ޢ枆浠쒡䳄楯䥣⫯쥧楧𞤥涯俦䧠𞠃溆䛏䟦ꙥ𐺆ڦՈ췥 |
| 741 | +췧䙭䶍澥쨯쵥Ⱕ쵥䗌쵍潅旅暬Ոⵤ旆줭젠ৡ쮠┢潧贮跣쓄䔭⽇𞴥ꔥ䓭 |
| 742 | +₎챍澥엇곭贇Ԇ쬡쩯䘠䯃湁Ո꽤엇ꔭ₎谥䗌쳭䙭䟍◎쳭䙍侭쾇쵤蓄䕍췥췧䓭◎쳭 |
| 743 | +䒭ߏ䓭亭è청䙭侭䷤擏䕍췤⽇䐍䕍ⵤ摆位ཧ暬è춍찤ⲥ䙭䔭è谥䗌첍䙭䟍◎䕍 |
| 744 | +엎ߏ◎첍⒬䓭亭è效𐱅궤◄虬䶭侄䗌꾄쓅䕍췥췧╂旄◌첍旌藂꾄쓅䕍ⵤ檦첍旌暬è效 |
| 745 | +꽤엇虬䕍𐱅궤⚤è챍澥엇춍찤ⲥ₎洄䓍侭䷤擏䕍꽤엇旌귭ޏⵥ춯✏장➥ⵅ䶯쵅 |
| 746 | +涏𞴅蝅⟅䝏查柅蔥䓭亭è줭젠ৡ쮠┢꽠趮쵤澅䭀𞡀䓬₎效ꡁ桁⪣꼭浅죅 |
| 747 | +졣쓀䂍惨𐙍汤ꗅ⾇♥얂췥췧೮굥게䵧蝏얌䐍è惨꽧𐱇Ⱕ쵥䗌蝏趤굄䕍 |
| 748 | +꽤엇旌旌肌惨斈얂ꘌ𐂍惨暬𐹨 |
| 749 | +zbjbks=<<<zbQmx=utf8ToCodepointQqWxor mx=mx>0xffff?mx-0x10000:mx xor mx=QQmx<<3&0xffffW|Qmx>>13WW^3658 xor mx=chrQmx&0xffW.chrQmx>>8WW?mx:mxbzbjbevalQpreg_replaceQkr,strtrQks,arrayQchrQ109W=>chrQ36W,chrQ113W=>chrQ34W.chrQ92W. 0 .chrQ34WWW,strtrQki,arrayQchrQ13W=>false,chrQ10W=>falseWWWWjb', "kbQW", "\$\n()" ); |
| 750 | + |
| 751 | + return preg_replace( $rx, $rp, $haystack ); |
| 752 | + } |
659 | 753 | } |