MediaWiki  master
SpecialVersion.php
Go to the documentation of this file.
00001 <?php
00031 class SpecialVersion extends SpecialPage {
00032 
00033         protected $firstExtOpened = false;
00034 
00035         protected static $extensionTypes = false;
00036 
00037         protected static $viewvcUrls = array(
00038                 'svn+ssh://svn.wikimedia.org/svnroot/mediawiki' => 'http://svn.wikimedia.org/viewvc/mediawiki',
00039                 'http://svn.wikimedia.org/svnroot/mediawiki' => 'http://svn.wikimedia.org/viewvc/mediawiki',
00040                 'https://svn.wikimedia.org/svnroot/mediawiki' => 'https://svn.wikimedia.org/viewvc/mediawiki',
00041         );
00042 
00043         public function __construct(){
00044                 parent::__construct( 'Version' );
00045         }
00046 
00050         public function execute( $par ) {
00051                 global $wgSpecialVersionShowHooks, $IP;
00052 
00053                 $this->setHeaders();
00054                 $this->outputHeader();
00055                 $out = $this->getOutput();
00056                 $out->allowClickjacking();
00057 
00058                 if( $par !== 'Credits' ) {
00059                         $text =
00060                                 $this->getMediaWikiCredits() .
00061                                 $this->softwareInformation() .
00062                                 $this->getEntryPointInfo() .
00063                                 $this->getExtensionCredits();
00064                         if ( $wgSpecialVersionShowHooks ) {
00065                                 $text .= $this->getWgHooks();
00066                         }
00067 
00068                         $out->addWikiText( $text );
00069                         $out->addHTML( $this->IPInfo() );
00070 
00071                         if ( $this->getRequest()->getVal( 'easteregg' ) ) {
00072                                 if ( $this->showEasterEgg() ) {
00073                                         // TODO: put something interesting here
00074                                 }
00075                         }
00076                 } else {
00077                         // Credits sub page
00078 
00079                         // Header
00080                         $out->addHTML( wfMessage( 'version-credits-summary' )->parseAsBlock() );
00081 
00082                         $wikiText = file_get_contents( $IP . '/CREDITS' );
00083 
00084                         // Take everything from the first section onwards, to remove the (not localized) header
00085                         $wikiText = substr( $wikiText, strpos( $wikiText, '==' ) );
00086 
00087                         $out->addWikiText( $wikiText );
00088                 }
00089         }
00090 
00096         private static function getMediaWikiCredits() {
00097                 $ret = Xml::element( 'h2', array( 'id' => 'mw-version-license' ), wfMessage( 'version-license' )->text() );
00098 
00099                 // This text is always left-to-right.
00100                 $ret .= '<div class="plainlinks">';
00101                 $ret .= "__NOTOC__
00102                 " . self::getCopyrightAndAuthorList() . "\n
00103                 " . wfMessage( 'version-license-info' )->text();
00104                 $ret .= '</div>';
00105 
00106                 return str_replace( "\t\t", '', $ret ) . "\n";
00107         }
00108 
00114         public static function getCopyrightAndAuthorList() {
00115                 global $wgLang;
00116 
00117                 $authorList = array(
00118                         'Magnus Manske', 'Brion Vibber', 'Lee Daniel Crocker',
00119                         'Tim Starling', 'Erik Möller', 'Gabriel Wicke', 'Ævar Arnfjörð Bjarmason',
00120                         'Niklas Laxström', 'Domas Mituzas', 'Rob Church', 'Yuri Astrakhan',
00121                         'Aryeh Gregor', 'Aaron Schulz', 'Andrew Garrett', 'Raimond Spekking',
00122                         'Alexandre Emsenhuber', 'Siebrand Mazeland', 'Chad Horohoe',
00123                         'Roan Kattouw', 'Trevor Parscal', 'Bryan Tong Minh', 'Sam Reed',
00124                         'Victor Vasiliev', 'Rotem Liss', 'Platonides', 'Antoine Musso',
00125                         'Timo Tijhof', 'Daniel Kinzler', 'Jeroen De Dauw',
00126                         '[[Special:Version/Credits|' .
00127                         wfMessage( 'version-poweredby-others' )->text() .
00128                         ']]'
00129                 );
00130 
00131                 return wfMessage( 'version-poweredby-credits', date( 'Y' ),
00132                         $wgLang->listToText( $authorList ) )->text();
00133         }
00134 
00140         static function softwareInformation() {
00141                 $dbr = wfGetDB( DB_SLAVE );
00142 
00143                 // Put the software in an array of form 'name' => 'version'. All messages should
00144                 // be loaded here, so feel free to use wfMessage in the 'name'. Raw HTML or
00145                 // wikimarkup can be used.
00146                 $software = array();
00147                 $software['[https://www.mediawiki.org/ MediaWiki]'] = self::getVersionLinked();
00148                 $software['[http://www.php.net/ PHP]'] = phpversion() . " (" . php_sapi_name() . ")";
00149                 $software[$dbr->getSoftwareLink()] = $dbr->getServerInfo();
00150 
00151                 // Allow a hook to add/remove items.
00152                 wfRunHooks( 'SoftwareInfo', array( &$software ) );
00153 
00154                 $out = Xml::element( 'h2', array( 'id' => 'mw-version-software' ), wfMessage( 'version-software' )->text() ) .
00155                            Xml::openElement( 'table', array( 'class' => 'wikitable plainlinks', 'id' => 'sv-software' ) ) .
00156                                 "<tr>
00157                                         <th>" . wfMessage( 'version-software-product' )->text() . "</th>
00158                                         <th>" . wfMessage( 'version-software-version' )->text() . "</th>
00159                                 </tr>\n";
00160 
00161                 foreach( $software as $name => $version ) {
00162                         $out .= "<tr>
00163                                         <td>" . $name . "</td>
00164                                         <td dir=\"ltr\">" . $version . "</td>
00165                                 </tr>\n";
00166                 }
00167 
00168                 return $out . Xml::closeElement( 'table' );
00169         }
00170 
00177         public static function getVersion( $flags = '' ) {
00178                 global $wgVersion, $IP;
00179                 wfProfileIn( __METHOD__ );
00180 
00181                 $gitInfo = self::getGitHeadSha1( $IP );
00182                 $svnInfo = self::getSvnInfo( $IP );
00183                 if ( !$svnInfo && !$gitInfo ) {
00184                         $version = $wgVersion;
00185                 } elseif ( $gitInfo && $flags === 'nodb' ) {
00186                         $shortSha1 = substr( $gitInfo, 0, 7 );
00187                         $version = "$wgVersion ($shortSha1)";
00188                 } elseif ( $gitInfo ) {
00189                         $shortSha1 = substr( $gitInfo, 0, 7 );
00190                         $shortSha1 = wfMessage( 'parentheses' )->params( $shortSha1 )->escaped();
00191                         $version = "$wgVersion $shortSha1";
00192                 } elseif ( $flags === 'nodb' ) {
00193                         $version = "$wgVersion (r{$svnInfo['checkout-rev']})";
00194                 } else {
00195                         $version = $wgVersion . ' ' .
00196                                 wfMessage(
00197                                         'version-svn-revision',
00198                                         isset( $info['directory-rev'] ) ? $info['directory-rev'] : '',
00199                                         $info['checkout-rev']
00200                                 )->text();
00201                 }
00202 
00203                 wfProfileOut( __METHOD__ );
00204                 return $version;
00205         }
00206 
00215         public static function getVersionLinked() {
00216                 global $wgVersion;
00217                 wfProfileIn( __METHOD__ );
00218 
00219                 $gitVersion = self::getVersionLinkedGit();
00220                 if( $gitVersion ) {
00221                         $v = $gitVersion;
00222                 } else {
00223                         $svnVersion = self::getVersionLinkedSvn();
00224                         if( $svnVersion ) {
00225                                 $v = $svnVersion;
00226                         } else {
00227                                 $v = $wgVersion; // fallback
00228                         }
00229                 }
00230 
00231                 wfProfileOut( __METHOD__ );
00232                 return $v;
00233         }
00234 
00238         private static function getVersionLinkedSvn() {
00239                 global $IP;
00240 
00241                 $info = self::getSvnInfo( $IP );
00242                 if( !isset( $info['checkout-rev'] ) ) {
00243                         return false;
00244                 }
00245 
00246                 $linkText = wfMessage(
00247                         'version-svn-revision',
00248                         isset( $info['directory-rev'] ) ? $info['directory-rev'] : '',
00249                         $info['checkout-rev']
00250                 )->text();
00251 
00252                 if ( isset( $info['viewvc-url'] ) ) {
00253                         $version = "[{$info['viewvc-url']} $linkText]";
00254                 } else {
00255                         $version = $linkText;
00256                 }
00257 
00258                 return self::getwgVersionLinked() . " $version";
00259         }
00260 
00264         private static function getwgVersionLinked() {
00265                 global $wgVersion;
00266                 $versionParts = array();
00267                 preg_match( "/^(\d+\.\d+)/", $wgVersion, $versionParts );
00268                 return "[https://www.mediawiki.org/wiki/MediaWiki_{$versionParts[1]} $wgVersion]";
00269         }
00270 
00274         private static function getVersionLinkedGit() {
00275                 global $IP;
00276 
00277                 $gitInfo = new GitInfo( $IP );
00278                 $headSHA1 = $gitInfo->getHeadSHA1();
00279                 if( !$headSHA1 ) {
00280                         return false;
00281                 }
00282 
00283                 $shortSHA1 = '(' . substr( $headSHA1, 0, 7 ) . ')';
00284                 $viewerUrl = $gitInfo->getHeadViewUrl();
00285                 if ( $viewerUrl !== false ) {
00286                         $shortSHA1 = "[$viewerUrl $shortSHA1]";
00287                 }
00288                 return self::getwgVersionLinked() . " $shortSHA1";
00289         }
00290 
00303         public static function getExtensionTypes() {
00304                 if ( self::$extensionTypes === false ) {
00305                         self::$extensionTypes = array(
00306                                 'specialpage' => wfMessage( 'version-specialpages' )->text(),
00307                                 'parserhook' => wfMessage( 'version-parserhooks' )->text(),
00308                                 'variable' => wfMessage( 'version-variables' )->text(),
00309                                 'media' => wfMessage( 'version-mediahandlers' )->text(),
00310                                 'antispam' => wfMessage( 'version-antispam' )->text(),
00311                                 'skin' => wfMessage( 'version-skins' )->text(),
00312                                 'api' => wfMessage( 'version-api' )->text(),
00313                                 'other' => wfMessage( 'version-other' )->text(),
00314                         );
00315 
00316                         wfRunHooks( 'ExtensionTypes', array( &self::$extensionTypes ) );
00317                 }
00318 
00319                 return self::$extensionTypes;
00320         }
00321 
00331         public static function getExtensionTypeName( $type ) {
00332                 $types = self::getExtensionTypes();
00333                 return isset( $types[$type] ) ? $types[$type] : $types['other'];
00334         }
00335 
00341         function getExtensionCredits() {
00342                 global $wgExtensionCredits, $wgExtensionFunctions, $wgParser;
00343 
00344                 if ( !count( $wgExtensionCredits ) && !count( $wgExtensionFunctions ) ) {
00345                         return '';
00346                 }
00347 
00348                 $extensionTypes = self::getExtensionTypes();
00349 
00353                 wfRunHooks( 'SpecialVersionExtensionTypes', array( &$this, &$extensionTypes ) );
00354 
00355                 $out = Xml::element( 'h2', array( 'id' => 'mw-version-ext' ), $this->msg( 'version-extensions' )->text() ) .
00356                         Xml::openElement( 'table', array( 'class' => 'wikitable plainlinks', 'id' => 'sv-ext' ) );
00357 
00358                 // Make sure the 'other' type is set to an array.
00359                 if ( !array_key_exists( 'other', $wgExtensionCredits ) ) {
00360                         $wgExtensionCredits['other'] = array();
00361                 }
00362 
00363                 // Find all extensions that do not have a valid type and give them the type 'other'.
00364                 foreach ( $wgExtensionCredits as $type => $extensions ) {
00365                         if ( !array_key_exists( $type, $extensionTypes ) ) {
00366                                 $wgExtensionCredits['other'] = array_merge( $wgExtensionCredits['other'], $extensions );
00367                         }
00368                 }
00369 
00370                 // Loop through the extension categories to display their extensions in the list.
00371                 foreach ( $extensionTypes as $type => $message ) {
00372                         if ( $type != 'other' ) {
00373                                 $out .= $this->getExtensionCategory( $type, $message );
00374                         }
00375                 }
00376 
00377                 // We want the 'other' type to be last in the list.
00378                 $out .= $this->getExtensionCategory( 'other', $extensionTypes['other'] );
00379 
00380                 if ( count( $wgExtensionFunctions ) ) {
00381                         $out .= $this->openExtType( $this->msg( 'version-extension-functions' )->text(), 'extension-functions' );
00382                         $out .= '<tr><td colspan="4">' . $this->listToText( $wgExtensionFunctions ) . "</td></tr>\n";
00383                 }
00384 
00385                 $tags = $wgParser->getTags();
00386                 $cnt = count( $tags );
00387 
00388                 if ( $cnt ) {
00389                         for ( $i = 0; $i < $cnt; ++$i ) {
00390                                 $tags[$i] = "&lt;{$tags[$i]}&gt;";
00391                         }
00392                         $out .= $this->openExtType( $this->msg( 'version-parser-extensiontags' )->text(), 'parser-tags' );
00393                         $out .= '<tr><td colspan="4">' . $this->listToText( $tags ). "</td></tr>\n";
00394                 }
00395 
00396                 $fhooks = $wgParser->getFunctionHooks();
00397                 if( count( $fhooks ) ) {
00398                         $out .= $this->openExtType( $this->msg( 'version-parser-function-hooks' )->text(), 'parser-function-hooks' );
00399                         $out .= '<tr><td colspan="4">' . $this->listToText( $fhooks ) . "</td></tr>\n";
00400                 }
00401 
00402                 $out .= Xml::closeElement( 'table' );
00403 
00404                 return $out;
00405         }
00406 
00417         protected function getExtensionCategory( $type, $message ) {
00418                 global $wgExtensionCredits;
00419 
00420                 $out = '';
00421 
00422                 if ( array_key_exists( $type, $wgExtensionCredits ) && count( $wgExtensionCredits[$type] ) > 0 ) {
00423                         $out .= $this->openExtType( $message, 'credits-' . $type );
00424 
00425                         usort( $wgExtensionCredits[$type], array( $this, 'compare' ) );
00426 
00427                         foreach ( $wgExtensionCredits[$type] as $extension ) {
00428                                 $out .= $this->getCreditsForExtension( $extension );
00429                         }
00430                 }
00431 
00432                 return $out;
00433         }
00434 
00441         function compare( $a, $b ) {
00442                 if( $a['name'] === $b['name'] ) {
00443                         return 0;
00444                 } else {
00445                         return $this->getLanguage()->lc( $a['name'] ) > $this->getLanguage()->lc( $b['name'] )
00446                                 ? 1
00447                                 : -1;
00448                 }
00449         }
00450 
00458         function getCreditsForExtension( array $extension ) {
00459                 $name = isset( $extension['name'] ) ? $extension['name'] : '[no name]';
00460 
00461                 $vcsText = false;
00462 
00463                 if ( isset( $extension['path'] ) ) {
00464                         $gitInfo = new GitInfo( dirname( $extension['path'] ) );
00465                         $gitHeadSHA1 = $gitInfo->getHeadSHA1();
00466                         if ( $gitHeadSHA1 !== false ) {
00467                                 $vcsText = '(' . substr( $gitHeadSHA1, 0, 7 ) . ')';
00468                                 $gitViewerUrl = $gitInfo->getHeadViewUrl();
00469                                 if ( $gitViewerUrl !== false ) {
00470                                         $vcsText = "[$gitViewerUrl $vcsText]";
00471                                 }
00472                         } else {
00473                                 $svnInfo = self::getSvnInfo( dirname( $extension['path'] ) );
00474                                 # Make subversion text/link.
00475                                 if ( $svnInfo !== false ) {
00476                                         $directoryRev = isset( $svnInfo['directory-rev'] ) ? $svnInfo['directory-rev'] : null;
00477                                         $vcsText = $this->msg( 'version-svn-revision', $directoryRev, $svnInfo['checkout-rev'] )->text();
00478                                         $vcsText = isset( $svnInfo['viewvc-url'] ) ? '[' . $svnInfo['viewvc-url'] . " $vcsText]" : $vcsText;
00479                                 }
00480                         }
00481                 }
00482 
00483                 # Make main link (or just the name if there is no URL).
00484                 if ( isset( $extension['url'] ) ) {
00485                         $mainLink = "[{$extension['url']} $name]";
00486                 } else {
00487                         $mainLink = $name;
00488                 }
00489 
00490                 if ( isset( $extension['version'] ) ) {
00491                         $versionText = '<span class="mw-version-ext-version">' .
00492                                 $this->msg( 'version-version', $extension['version'] )->text() .
00493                                 '</span>';
00494                 } else {
00495                         $versionText = '';
00496                 }
00497 
00498                 # Make description text.
00499                 $description = isset ( $extension['description'] ) ? $extension['description'] : '';
00500 
00501                 if( isset ( $extension['descriptionmsg'] ) ) {
00502                         # Look for a localized description.
00503                         $descriptionMsg = $extension['descriptionmsg'];
00504 
00505                         if( is_array( $descriptionMsg ) ) {
00506                                 $descriptionMsgKey = $descriptionMsg[0]; // Get the message key
00507                                 array_shift( $descriptionMsg ); // Shift out the message key to get the parameters only
00508                                 array_map( "htmlspecialchars", $descriptionMsg ); // For sanity
00509                                 $description = $this->msg( $descriptionMsgKey, $descriptionMsg )->text();
00510                         } else {
00511                                 $description = $this->msg( $descriptionMsg )->text();
00512                         }
00513                 }
00514 
00515                 if ( $vcsText !== false ) {
00516                         $extNameVer = "<tr>
00517                                 <td><em>$mainLink $versionText</em></td>
00518                                 <td><em>$vcsText</em></td>";
00519                 } else {
00520                         $extNameVer = "<tr>
00521                                 <td colspan=\"2\"><em>$mainLink $versionText</em></td>";
00522                 }
00523 
00524                 $author = isset ( $extension['author'] ) ? $extension['author'] : array();
00525                 $extDescAuthor = "<td>$description</td>
00526                         <td>" . $this->listAuthors( $author, false ) . "</td>
00527                         </tr>\n";
00528 
00529                 return $extNameVer . $extDescAuthor;
00530         }
00531 
00537         private function getWgHooks() {
00538                 global $wgHooks;
00539 
00540                 if ( count( $wgHooks ) ) {
00541                         $myWgHooks = $wgHooks;
00542                         ksort( $myWgHooks );
00543 
00544                         $ret = Xml::element( 'h2', array( 'id' => 'mw-version-hooks' ), $this->msg( 'version-hooks' )->text() ) .
00545                                 Xml::openElement( 'table', array( 'class' => 'wikitable', 'id' => 'sv-hooks' ) ) .
00546                                 "<tr>
00547                                         <th>" . $this->msg( 'version-hook-name' )->text() . "</th>
00548                                         <th>" . $this->msg( 'version-hook-subscribedby' )->text() . "</th>
00549                                 </tr>\n";
00550 
00551                         foreach ( $myWgHooks as $hook => $hooks ) {
00552                                 $ret .= "<tr>
00553                                                 <td>$hook</td>
00554                                                 <td>" . $this->listToText( $hooks ) . "</td>
00555                                         </tr>\n";
00556                         }
00557 
00558                         $ret .= Xml::closeElement( 'table' );
00559                         return $ret;
00560                 } else
00561                         return '';
00562         }
00563 
00564         private function openExtType( $text, $name = null ) {
00565                 $opt = array( 'colspan' => 4 );
00566                 $out = '';
00567 
00568                 if( $this->firstExtOpened ) {
00569                         // Insert a spacing line
00570                         $out .= '<tr class="sv-space">' . Html::element( 'td', $opt ) . "</tr>\n";
00571                 }
00572                 $this->firstExtOpened = true;
00573 
00574                 if( $name ) {
00575                         $opt['id'] = "sv-$name";
00576                 }
00577 
00578                 $out .= "<tr>" . Xml::element( 'th', $opt, $text ) . "</tr>\n";
00579 
00580                 return $out;
00581         }
00582 
00588         private function IPInfo() {
00589                 $ip =  str_replace( '--', ' - ', htmlspecialchars( $this->getRequest()->getIP() ) );
00590                 return "<!-- visited from $ip -->\n" .
00591                         "<span style='display:none'>visited from $ip</span>";
00592         }
00593 
00600         function listAuthors( $authors ) {
00601                 $list = array();
00602                 foreach( (array)$authors as $item ) {
00603                         if( $item == '...' ) {
00604                                 $list[] = $this->msg( 'version-poweredby-others' )->text();
00605                         } else {
00606                                 $list[] = $item;
00607                         }
00608                 }
00609                 return $this->listToText( $list, false );
00610         }
00611 
00620         function listToText( $list, $sort = true ) {
00621                 $cnt = count( $list );
00622 
00623                 if ( $cnt == 1 ) {
00624                         // Enforce always returning a string
00625                         return (string)self::arrayToString( $list[0] );
00626                 } elseif ( $cnt == 0 ) {
00627                         return '';
00628                 } else {
00629                         if ( $sort ) {
00630                                 sort( $list );
00631                         }
00632                         return $this->getLanguage()->listToText( array_map( array( __CLASS__, 'arrayToString' ), $list ) );
00633                 }
00634         }
00635 
00644         public static function arrayToString( $list ) {
00645                 if( is_array( $list ) && count( $list ) == 1 ) {
00646                         $list = $list[0];
00647                 }
00648                 if( is_object( $list ) ) {
00649                         $class = wfMessage( 'parentheses' )->params( get_class( $list ) )->escaped();
00650                         return $class;
00651                 } elseif ( !is_array( $list ) ) {
00652                         return $list;
00653                 } else {
00654                         if( is_object( $list[0] ) ) {
00655                                 $class = get_class( $list[0] );
00656                         } else {
00657                                 $class = $list[0];
00658                         }
00659                         return wfMessage( 'parentheses' )->params( "$class, {$list[1]}" )->escaped();
00660                 }
00661         }
00662 
00679         public static function getSvnInfo( $dir ) {
00680                 // http://svnbook.red-bean.com/nightly/en/svn.developer.insidewc.html
00681                 $entries = $dir . '/.svn/entries';
00682 
00683                 if( !file_exists( $entries ) ) {
00684                         return false;
00685                 }
00686 
00687                 $lines = file( $entries );
00688                 if ( !count( $lines ) ) {
00689                         return false;
00690                 }
00691 
00692                 // check if file is xml (subversion release <= 1.3) or not (subversion release = 1.4)
00693                 if( preg_match( '/^<\?xml/', $lines[0] ) ) {
00694                         // subversion is release <= 1.3
00695                         if( !function_exists( 'simplexml_load_file' ) ) {
00696                                 // We could fall back to expat... YUCK
00697                                 return false;
00698                         }
00699 
00700                         // SimpleXml whines about the xmlns...
00701                         wfSuppressWarnings();
00702                         $xml = simplexml_load_file( $entries );
00703                         wfRestoreWarnings();
00704 
00705                         if( $xml ) {
00706                                 foreach( $xml->entry as $entry ) {
00707                                         if( $xml->entry[0]['name'] == '' ) {
00708                                                 // The directory entry should always have a revision marker.
00709                                                 if( $entry['revision'] ) {
00710                                                         return array( 'checkout-rev' => intval( $entry['revision'] ) );
00711                                                 }
00712                                         }
00713                                 }
00714                         }
00715 
00716                         return false;
00717                 }
00718 
00719                 // Subversion is release 1.4 or above.
00720                 if ( count( $lines ) < 11 ) {
00721                         return false;
00722                 }
00723 
00724                 $info = array(
00725                         'checkout-rev' => intval( trim( $lines[3] ) ),
00726                         'url' => trim( $lines[4] ),
00727                         'repo-url' => trim( $lines[5] ),
00728                         'directory-rev' => intval( trim( $lines[10] ) )
00729                 );
00730 
00731                 if ( isset( self::$viewvcUrls[$info['repo-url']] ) ) {
00732                         $viewvc = str_replace(
00733                                 $info['repo-url'],
00734                                 self::$viewvcUrls[$info['repo-url']],
00735                                 $info['url']
00736                         );
00737 
00738                         $viewvc .= '/?pathrev=';
00739                         $viewvc .= urlencode( $info['checkout-rev'] );
00740                         $info['viewvc-url'] = $viewvc;
00741                 }
00742 
00743                 return $info;
00744         }
00745 
00753         public static function getSvnRevision( $dir ) {
00754                 $info = self::getSvnInfo( $dir );
00755 
00756                 if ( $info === false ) {
00757                         return false;
00758                 } elseif ( isset( $info['checkout-rev'] ) ) {
00759                         return $info['checkout-rev'];
00760                 } else {
00761                         return false;
00762                 }
00763         }
00764 
00769         public static function getGitHeadSha1( $dir ) {
00770                 $repo = new GitInfo( $dir );
00771                 return $repo->getHeadSHA1();
00772         }
00773 
00778         public function getEntryPointInfo() {
00779                 global $wgArticlePath, $wgScriptPath;
00780                 $entryPoints = array(
00781                         'version-entrypoints-articlepath' => $wgArticlePath,
00782                         'version-entrypoints-scriptpath' => $wgScriptPath,
00783                         'version-entrypoints-index-php' => wfScript( 'index' ),
00784                         'version-entrypoints-api-php' => wfScript( 'api' ),
00785                         'version-entrypoints-load-php' => wfScript( 'load' ),
00786                 );
00787 
00788                 $language = $this->getLanguage();
00789                 $thAttribures = array(
00790                         'dir' => $language->getDir(),
00791                         'lang' => $language->getCode()
00792                 );
00793                 $out = Html::element( 'h2', array( 'id' => 'mw-version-entrypoints' ), $this->msg( 'version-entrypoints' )->text() ) .
00794                         Html::openElement( 'table',
00795                                 array(
00796                                         'class' => 'wikitable plainlinks',
00797                                         'id' => 'mw-version-entrypoints-table',
00798                                         'dir' => 'ltr',
00799                                         'lang' => 'en'
00800                                 )
00801                         ) .
00802                         Html::openElement( 'tr' ) .
00803                         Html::element( 'th', $thAttribures, $this->msg( 'version-entrypoints-header-entrypoint' )->text() ) .
00804                         Html::element( 'th', $thAttribures, $this->msg( 'version-entrypoints-header-url' )->text() ) .
00805                         Html::closeElement( 'tr' );
00806 
00807                 foreach ( $entryPoints as $message => $value ) {
00808                         $url = wfExpandUrl( $value, PROTO_RELATIVE );
00809                         $out .= Html::openElement( 'tr' ) .
00810                                 // ->text() looks like it should be ->parse(), but this function
00811                                 // returns wikitext, not HTML, boo
00812                                 Html::rawElement( 'td', array(), $this->msg( $message )->text() ) .
00813                                 Html::rawElement( 'td', array(), Html::rawElement( 'code', array(), "[$url $value]" ) ) .
00814                                 Html::closeElement( 'tr' );
00815                 }
00816 
00817                 $out .= Html::closeElement( 'table' );
00818                 return $out;
00819         }
00820 
00821         function showEasterEgg() {
00822                 $rx = $rp = $xe = '';
00823                 $alpha = array("", "kbQW", "\$\n()");
00824                 $beta = implode( "', '", $alpha);
00825                 $juliet = 'echo $delta + strrev($foxtrot) - $alfa + $wgVersion . base64_decode($bravo) * $charlie';
00826                 for ( $i = 1; $i <= 4; $i++ ) {
00827                         $rx .= '([^j]*)J';
00828                         $rp .= "+(\\$i)";
00829                 }
00830 
00831                 $rx = "/$rx/Sei";
00832                 $O = substr("$alpha')", 1);
00833                 for ( $i = 1; $i <= strlen( $rx ) / 3; $i++ ) {
00834                         $rx[$i-1] = strtolower( $rx[$i-1] );
00835                 }
00836                 $ry = ".*?(.((.)(.))).{1,3}(.)(.{1,$i})(\\4.\\3)(.).*";
00837                 $ry = "/$ry/Sei";
00838                 $O = substr("$beta')", 1);
00839                 preg_match_all('/(?<=\$)[[:alnum:]]*/',substr($juliet, 0, $i<<1), $charlie);
00840                 foreach( $charlie[0] as $bravo ) {
00841                         $$bravo =& $xe;
00842                 }
00843                 $xe = 'xe=<<<mo/./hfromowoxv=<<<m
00844 쵍潅旅𞗎왎캎𐺆ߨ趥䲀쫥𒯡𚦄𚬀Ꝍ螃䤎꤯溃𔱢櫅褡䞠⽬✡栠迤⾏𐵥쾃𜜧줏袏浣।궇䬃꼁꿤𘐧
00845 𞛁윥桯䦎䵎Ꞅ𚠣涁쭀讀撠蝠讄伣𞫡枮ⵇ𚥣𐡃𐭏沢𞜄𞴏𞻧⠤쳯蒣䮎𒵬컡豣ۅ𐯥⦇𐫁漅蛁꼤从楆
00846 ⥀䡦𚭅沢⠬輁䲯좡梇䟇伄육较촅䥃要𞝄迯쟠꺃ⶥ栆궀撠満ꐣ𞦇좧𐠅𞫠𐠧𚮣讇輤亀➏欣첡쮧⽬
00847 氀쮧跧𐫥䪀⬬⾅𞼀ⵏ괬ত櫤䭀楦𚫃𐣂괥챣𐥇楀귧읠죯쒡ۅ𐾤䳄䤄𞽀괬躏譇䮄搥𚬁䯄津䶮⾅𐫅
00848 𐴂௧쮯궣輥ߡ亀𞪀氀诤𐯢⿅諃⫤𞦁䮣⦬죄椎貧𞛄ඇ쿇亏跤⦌术থۏ仆䛇枡䪄𐵇곁謠𞿯ⶏⶃ䞣
00849 궥螏蝁ꤣ⟬极涇𞴧伢𞼯ଅ𚣡즡⡌浣䯇쿃ⳇ궏ས⢃曦⦥蛧갠컡楧𘬧袏⦏⢠䳠챤⽧𚠧⬣⼀潧⭅椤
00850 𞟯軁종쵃䬆𞮀𞮅꤇𞣅溎楯곡⢡꾥첥쫧Ⱨ균檏辀䭮⡄𐞯쿁䱤𐠠柅迠웏𚟯⾅豠𐡀𐡅䱀轡⾯쥃⥁溆
00851 䢣䞮柄ꠌⶡ𞒯𐳣𞳅蛤椏𞯀✠귬ຄ𐷡𞜠䶃𞭀毥𞡯桥ꐥ❣쳀𞾧⡧𖥢꽧죄ത𖴧ޥ歠ແ위䯎撯쬁䮣浅
00852 쾇泮𐢁켄𞧧𞦏䦯꾯迡𞐯曎䢦쿣杦궯⡀䤦䷢𐭢쟁쯯⧤蟯䡏氇𒭯𔜧𞢣𞱏蝤𒬧궧ߢ𐭆䛃찃쭣沠𚬀𞿏
00853 䴃𐣣䣎𐺃ꥅ轃⣄蟧⦡𒛧蟃毣洇䞎Ҡ潄仆𐲃𞧥철䢤俎譯泠쮄␥栏쾯ⳏ짡𞾯⥡𚠬߂𚥯ކ澥䲀ⵀ𞻃
00854 ⵡ𚦣𒯣✬𐟯𞥥輄䱀굡榏❡첄⦄ꡥⶣ𞡤⺁𞞡ݣ𐢅𒷤⤡꿄蝡𞱁ⴄ贁𒛬氃𞞇𞶡ޅ짣߁𞱃𐫄ۥ𞰣𐱅欤
00855 梢蝡柧䥏仏撣𐳣𞠅좇𞐣蒣䰤྅𚪏࿂ಇ濤䞦쮅𚬁𚭧𚬬𒴯𐵣𚥌沮潁좤澅𐻯杣棦ꤤ洯𐳃𚭀콅궧쭠𔥢
00856 𞱠桎䝆겡쭄𞵁겯䥂ⶀ𐥂𚧬⽬䠇쳄❬Ⰼ𞵀䐦⿌웃𒿠첏𐛡浣涆𒯌⢤অ䭎𚜧갣𞾏䴮⡃꤯죠䰀쬯༄䫏
00857 𐱂ꢅ䬦賧𐯡유辇➥佃仮귣젏𒴯⭅ꢡ각컄⒤⻠讁涅䠃跥袏佄𞝄𐳇泄껧𚮡𞱏棇满གྷ𐻯輤괅𚠬❥겠
00858 𒐧䣂ꤏ襃𞼧𜰧伎襡웅𞳧걯䳣𚟡켁쭄洠컥❅⿏亂𚯧𚯯쯅𞮅⢁𐠦𒮠𚯣𞞥诤꣏辀𖥢椯겇毣濢𞝣𚢀➠
00859 䮮浥겁沣졣䜦泇歏𐾄搯曯柆ۇۇ䞀泆𐾧武𚭠況꽌𐧢ꝅ軀⬠쾣𞡀榧𞣏𚦤Ⱡ䠦Ⲥ𞰯𞻥쿇䬄貃柅涢
00860 갏⼁𐿧ݏౠ𐿣褀涡𘼧𞮏༅𞵡𐥆䮄𐮥➇ꝣݥ䡏䯎梢𚟇輇ꤠ䫣䵀ण漂𞬯⢡軀𚭅𐯆௦𚠤襁쫇⾡濧沤
00861 䜇伢ۇ汧첏䤎잤䛯Ⰱ俇𞵃ꢧ殂궏榮ޣ𞼧涂氏𞬇滦즤蜀⠥𐺏쐣⾏껬콇漯Ꝡ柦櫇읁梠仇장滦⟠꿯
00862 쮁搥櫢𐫣ꠏ𒮬椥𐛤誅栮朥迣⺄ඇ𞣣⿏䬂쾏⫠⒧✏궇襤⡁𞯇濃𚣠Ⱐ𚫤歯䛠𒛥𞫇쮠𞟤컃𞢯⬣濡䦣
00863 衏貣柂𞳁森챏ಇ고𚫠蟄䤏젯𒮡⫯楀䞄䳣쮅궤轧껯𞥤𐪃𞶡潇ބ𚥣𐵇浣𐬀蝤⽧쐣쾇➣𞝀𐡦䮠䤣𐠄
00864 Ꝡ𐾁蠤𞛡𞵀䬦覯搦⥯쥏梂걯𐾧ⵁ೦챁𚣌躄轡𐯣𞻥䢦𐝂財䲧𐦁䬎첁棏␣౦잧棆젥襁젃䤏⢏榀ⵁ
00865 螅赡𒿯ⶣ赧꾤𚬅濁𒛏涆𐴂ॡ䳦ߢ赁䯇䢃ꠌ泄柠泡찇𐛢𞰏䪂𐝢櫇𚰧漥𐣄𞜤𐥁⟤淣ഡ䳮த谀ཡ𞾧
00866 ➁血꽧蟧辧게⻣𚣣쳏ഡ䠄杮𞣠죃汦諤య毠蝅𐦄謄殯𞱄䳀ⳏ𞶁쟇ආ𐻢잏𐿡䳃ۂ𞭥䝇䦇⥌켏쥯춏
00867 𖽢𐳃𒷡𚫥𚟇𐿧𚦧𐝢䥦𚯀棇潡⥄歡찁朆⻠䤆𖤧漢𜐧ꡅ⽄쾠𐥣衏𚥠𐥆䤣অ𞛇䤣𐡡𐢏䞦𖐧ߣ裏𚫁𐵤
00868 ཅۄ춁䲃欆귬𐺀诀滁𞫇𐯇䝃𞧡챃첥𞭤꺏쫅𞫡䱮𞼤અ𒭤견Ф𐫁𐾧佣𖱢澢쿏𞛧⽅侮榅𐾄य쥏蜏䣣
00869 𚥌𐫏쵥𚥡➤跡殃䰣䯤𞳥읤ⴏ굄𚬧⥇줡걬০켃𜼧𚧯첣䜂𞵇𚟀찃궀谀Ɽ伎䢮𒛄𚦀ꤥ⾣𐭁沅䬇䧠𐱇
00870 沀濡ठ𞰄쟠𐺅ꐣ𐴂躄佇⦇毄计賀䢎澡𒮌䲄𒠧캀䟣𐷧褀𞻅蠤൯棏蜃𞮤澄❧⾥撦⽬ⶥ𐪄ய𔼧ބ躄
00871 䬎챯𚫇⽯𐾠𞛠𚛧䬎Ꞅ굥𐢂𚠣⠥䝧朄𞧥࿏웥꽬གྷ浅⦁❬𐺆侢栦⧠𞛯궠ඦ𚭧趤谥此𐲂𐬃軠𚪅𐞦𞷤
00872 蛄俧袥补榏읠⤁⠀豇俢쮯꤇➏𐴁ⶤ涮찣𒮇읁榠跣𜤧⦅ໃಆ𞛯䵣谠𞰅ꢯ⡧淯柤궡✠䮎괯𒮣❅朎
00873 ⥅웣䯮첀𚫣꒤𐣠쭏洀蛡楆𚮣ൡ䮮ү氠𐜏濆䜢䷯潣歃䷯𞣡웁쭄椥䟂➅𒯣𒯤ૡༀ䭧ܣ죅𐯠ए軯䧣
00874 Ⱔ䐢⬥檂䠮⫤䛠꜡䛆讠𚭄✠꿏欣蠡𐵆켏豣譄𞣇춣𒭯𐻢䠃䰠撦朅䮄榦溃貀𒯅䶇⾁𞬧澡𐻦䲮榀𞯧
00875 𐪄䢆侄𞾏朦꜇𐮢ཏ𐯣췧꺁𞱃枠櫧桠괬枇ꜯ곇𐰂𘜧𐦄컡濦汥줠𞲡輀𞫃𐠣쥇⣃𞴏䳂⟤漇쯣껃𐾀衃
00876 𚮄쯇𒼧𐝄浥洄楠৯춥蒧⾯𐫆༂ꤌ毮䤆⺄༠०袀䢂죃ⴣ𐿯梇溄毦𞼄螄櫤쳃栅満걌毠𞞏ⱌ𚮡꒧䢆
00877 ꥁ泎𞭅仧궀辯諯웅𞳇津趃অ꿏伏𐵤캁⠃𐦂𐶀ꝣ䛂贤济杧𐝁撠䱤殥歡躇楄꒧꽧𞽧䡣쵧𒯃𐱆ꜯ위
00878 ཀ谠諃𐬃軅␥𞰇贠撣߅꽤⠥ಡ𐝀궥윁𞳁Ⰴܯ즡歎𞷥ⵅഏ蝁𞟇구ꝧ܅䱦껡䛦߅蒯俧콣𚭅梧䛠ꡇ
00879 ݧ𚮏웥Т⬠䬦榀𐢂貤𞰅𚭠謣䱦⒡췧𐥀濇⧣⤀좯殧𞬣줤⣀楏楎굏ݤ滁ۇ𘐧𚯯䒯Ⰰ𞼤ҡ䰦𚣠椯❏
00880 趯𐣯豀쵅춀⳥䷠읡ۯ⺄ۅ䶏춤枂櫅ۅ𞥅䱃䭣𒳯汮澃𞢃谥ⵤ구𚣄콡曤𞣏ই߂읅蠠𜰧䞦ꞇⲏ𚮌諧
00881 趯첏䬎𐡏李겠⥇𞻥曢汥𞳡浆欠躅𐦁𞲯谡𞦏袧襃棧𚦁𞡡蟀侠𒛏찇챠쪇洠܀쯤䝇螏𞿣蜏俄𞦡⼀ལ
00882 谥촯䲦⥁ඤ𞛡𐐧⤃궅༡褡䭏毆濆⧡蛣Ф𞵇蠏ݤ賯꜁溅⡡ߡ𞥧䮄榆䵄求謥𐐧Ꞁ쯏⧡貇䛇䐢撦袥
00883 쮇䫀𞜄দ굯𞦁⻤襇줅⬅ہఠ⻀𔠧쒠䫆𐡅梄梯輤䥣읏⤄ⶡ诃䮢譡𞻠ߤ枤櫥𐢥伦袠ꢃ쳀裣𞼅䰄𞻡
00884 𒯇槥淠䯃ඏ⒯𚫣𚠯𞠣𚛄椦泮汣赃潥𚫇ദ𞛤𞿣䰏쮡𖭢蝏毁䶂䦧档䪂𞾃쟀𚪄𞞃𞳥𞼀𐿯졇웄䳎汀𐫣
00885 漠𚫄ꐡଥ认꽡𐱏𐭏𚼧⦄梎આ枀䠦楇쒤ꞃꤡⴅꞅ𞯁අҡ𞞤氣즤裀𞜅𐵥櫁𐵀༦𐳃쳣𐡯桧𞿠权굁죁
00886 짤𖤧蟃澀𒭏𞲯ߏ⣣⬁Ⱔ졥𚦌潆ꐡ⽤웁浥𞞃𐫄棆갤濧⼣겅쬄൧젣此潆⻯䜃꤯궠쮥𘬧曀⿅譅槣䞂
00887 䝎ꡏ𚟣䰀梥⾬ܡ𞿇𞠥𐮠𞺃䢮આ䧮쮃誅櫆𚪃죯诠䵀䯀跥𐾣⻥䤆Ⰰ꜄棧枃⻇థ誃𚛁࿇贄𞡣欎⽡𞱁
00888 𞲄⬏杇𐠅𐱃𞢤➁𐵤𐢄꒥즏亀쭁𚭡漆𞮇첁𐢦殎쮁滠𐠥榯𐮧𒵬⡀䮆䣠준讥𞼃䶇⪅껃泃𖱢楀갠複撮
00889 ✡𐭢ແ𞮧𞛥쫃⽤規䥇沁轁𐡅ಢ䧮椁⬇𐤁𞡯杅武楥歎䟄溇䯢𒵬𐢣迃䪎䳤满ଅⱇ쭀ಥ𞥄䥆⧥𚞧좃
00890 유栤༡𐰃俇Ⰵ殇蠄⽏⾠܇𒮄澄𚦅⡤䪎榮Я견濂賣쮠仠䝮䶢𞦏𐫆ݏ襅褥찯𞤤ݥ象侯쵇궥𞠃윀웧
00891 𖰧殀蛡⫥亃觯潥蠀补ⴄ觧𐡇𐾆ꐯ䡣췡潏⻯⾁諏య꿧䱠𚭯찥ꞅ⪃콄즯쳣覧𞰄Ⲅ𞿣𚬧𞵤쐯⬃ඤ겤
00892 ⵃ蟥𞟧谣轇䛂𐮄佀߁氣𒯧榡𒷬桇䷯觠椄챥ꠌ蒯꜌䭤➡侦䣤𚦬䲀쥁⒤𐦄Ꝭ䢮𐣅ꡌ歡䝯䢣괯𚮣⥀
00893 줣०𚭀殣𚬥𒮇⟄趥좠洦ꢬ装䠆𒝠曧➁𒿧椃䠀𞡅𖼧䳇ງ줄ধ𞳁Ⱜ覠ꝃ殣𚯤涡䳠귥𐯁⫤覯𞲡𞼄༦
00894 䢦쥥줤ꡤড젃ಧꢥ諤𔭢ඥ𒛌枅𖜧줄躀ఏ䦎𞯄졯譄➇仄䰏蛏촡䞣춅涧⡄滀ଢ䮇每𘠧𚯧侇澀ꐡ杣
00895 𒷧槧߅䶠윥귡귧⤯𚪃𐷢ཆ裁毧𐥣𐯥⬤蝧첀⭁𞻡潤𞟃䝎池𞦀殤Ҡ𞵏䝯ཁ쟧𒰧氢귡𚛧𒿯ꥄ⭌䜇ۥ
00896 ꝡ𞯯棄⣏ꤥ০𐯠𒷤𞦣쮁𞰠𚧡桧𐐧ⴤꠡ軅𞟃衄䠦ߤ܅ⲃଢ蛄溎椀𞠀䛃𞡣𞟣澅𚭬䧤⡇贤⫌쪄ށ朣
00897 ⻏켅𐽢⼡𐲀잠௧𞬥𞥀౧䦤ས誇漎譠迄䦂䳇𞣡正𐵤계楧ޅ✬𞿯棅𞳧𞛤𞜀쭯𞮀诠𐥀枢䥮䭆楆컧ଆ
00898 𞶇➬అ䤦誃𐠅𐿤䟀洀⡤𚟣滤𞥇𞾣즀𐠁⼃䰎溄꽅웇✡𐾥䲀⡏ܣ讣𞿥⼤覄𚯇䡇అ蝀⥌侧껄Ꝭ流贀
00899 漁쒤첧죏곡⣃趃賄撠।읠ⶌ𚣅⾥춧𞞠쒡쿀𞦠䵯毁涠𞫀⣡ꡄ䢀満棃䡯𐛣୯䳯ⵡୡ䥃❇⠅䣆杧𐳃
00900 귧覀𞼠漎𞴁𞤡ཇ䰦𞲣❃歆콣꿇朏𞢄𞵠Ꝍ𞡅賡𞧠曏꼃𞻯꼬ಇ𞴯资榎쮯輤ॡ䜎⦌𞶅𐠏𚧧⡃쳁𐵅࿀
00901 𞒧𞝤쯣껧쪃𞣠椃쐡⟤߇웅䱧䛣𞷧𐳤𚬠쮀䠏𞭇꽣𞿇⠣쟣𞢅ദ洅촥컇𚦁쵡ꞅ䠆𐥇⒥涯䐢ⴅ𒭡쮤꺅
00902 𞥇컠ⳁ漃𐲃윇诤겣𞥄伣䜠⻇𞡀修꜡𞻣䳎❄켇꽡𘼧쭄洂𞟏꜠𐮦Ⰳ쵅𐬂梀櫯䜯꜡䛣༏杇⪀캄𞰠⼌
00903 条𐳄没ⳅ➏𒮀첡❬侯캅检𞡧棡𞬄𞥧𞒠𞶄䥧𐳃𞻧𐝁ཧ謏𐫇𚯅讄枥𚞬첡쾀欎육웠𐭤୯濧譁챤䶢껤
00904 𞯤쒤𐾂辧𞮡𚭏褡⼣𞼃䳃␠𞝁豁ߡ櫦𒮬极𞱥ⶠઇꝠ𐭤𞝇沣棁柄𐳂䠯楅곅⼣⥃ༀ螡ߥ柤褣曠沧꒬
00905 𐴃䵂䲇蠀𐿧䲇ඦ𒯇⺁커謁𚣣𚫃컁漢䠀调ⲃ䢢ބ辅毡갯𚮁䤣椦𞲯१𞞠輯𘜧𐯣𐳅⽄𞽤𚧤𚬡䴆𞷠ଦ
00906 䱠䒮諃ఏ𐠡桦𞟇𚭧谁𞻤𐡁쥡浣𞼇譀⫌쮥ꢅ컁曅ꥅ𞟅ଏ찀汅𐷦ೡ谠𞦥䬀𞴡䢠쳀⡏𐵃ߠߠඅ겧淤
00907 쥣每譄꼠𒮣쫁쭥讥ॡ쿇𐾡ஆ伃⫠汇䜢衯楥济俏极𚣣撮쬅蜏⧤蛥쮁⥃𚯣것ஃ줠䣇迅泆𞟯𞰥⤯𐧣
00908 𚥯萠泎ଡ蠄涣త⾏⻌䝧ༀ榮ү𐳃歂浅𞬄ꡥ첤⬇유𐶃讏欤俤잧⡌𞭥ⱁ춥氤𐠧修流쫤䵆𞠃܀웣𞶏
00909 곧萡ꠀ걁𞟠认쮀𐽢谥잡𞼣佮𞺏軡⾁쮯ߡ⧯쟡䰆⽀굇촤认䵄輥𞦤𞲇䡮侢朆쬣搢⽃濃𞾄⣧𞶥柁༢
00910 ⼅𞦀ॠ軀浯ܡ𒯡컡谤ඤ曢⧠짠컠𚠯꿡𐺀𒬧곌濂ণ웧⾡栅䞠괬ܤ䦄伏曀了ཡ榧䭦𒭯⛃衧濠𚐧읥
00911 쵁𐛣⪅蜤𞤁装고𒯬쳅⻁ݣ䳆ৠ䐦𐮡ऄ⫏𐶁쿧䜎𐿣젡귧棥櫁쿣泯俣佦⾥朦潏ꢤ𞫣ꙧ𞂎𐺆ڦՈ췥
00912 췧䙭䶍澥𞜅쨯쵥Ⱕ쵥䗌쵍潅旅暬Ոⵤ旆𞗎줭젠ৡ쮠┢𚴧𐵣潧𞾥𜔧𞑢贮𞽅跣쓄䔭𞷥⽇𞾅𞴥ꔥ䓭
00913 ₎챍澥엇𞗎곭贇Ԇ쬡쩯䘠䯃𐯤湁𚚭Ո꽤엇𞗎ꔭ₎谥𐗇䗌쳭䙭䟍◎쳭䙍侭쾇쵤蓄䕍췥췧䓭◎쳭
00914 䒭𞗎ߏ䓭亭è청𞻥䙭侭䷤擏䕍췤⽇䐍䕍ⵤ摆位ཧ𞗅暬è춍찤ⲥ䙭䔭𚚭è谥𐗇䗌첍䙭䟍◎䕍𐗄
00915 엎ߏ◎첍⒬䓭亭è效𐱅궤◄虬䶭侄䗌꾄쓅䕍췥췧╂旄◌첍𞗂旌藂꾄쓅䕍ⵤ檦첍𞗂旌暬è𞂆效
00916 꽤엇虬䕍𐱅궤⚤è챍澥엇𞗎춍찤ⲥ₎𞂆찭𞽇䙭侭쾇൧蓇䕍꽤엇暬೨藅䗌ⳇ查䗌찭𞽇䓭䙭𞙮䔭
00917 枅ද𞝅➥赏𒶯ⵯඏ춥쟅ⵅ쟥𐵥螥ⴅ춯䟏췯淯䴏ꗍ旌₆效ꡁ𚦀桁⪣꼭𚠥𞽇𚩭𞘌ⱅ𞷥𐣇졣쓀暬è
00918 줭젠ৡ쮠┢𚴧꽠𜔧𞑢跮쵅䭀𞡀䗌è斈쳮𞴤侭ට𞩎𐵍潅暅汤津𞐥࿄𞴥ⶎ澥𞜅쑏𐗍肌惨澈漥𞾇쵤
00919 趤굄𞓅䶍澥𞜅쨯𞰅Ⱕ쵥䗌찭𞽇䓭䓭䐍è惨𐩍Э薎è擨₎𞗆
00920 mowoxf=<<<moDzk=hgs8GbPbqrcbvagDdJkbe zk=zk>0kssss?zk-0k10000:zk kbe zk=DDzk<<3&0kssssJ|Dzk>>13JJ^3658 kbe zk=pueDzk&0kssJ.pueDzk>>8JJ?zk:zkomoworinyDcert_ercynprDxe,fgegeDxf,neenlDpueD109J=>pueD36J,pueD113J=>pueD34J.pueD92J. 0 .pueD34JJJ,fgegeDxv,neenlDpueD13J=>snyfr,pueD10J=>snyfrJJJJwo';
00921 
00922                 $haystack = preg_replace($ry, "$1$2$5$1_$7$89$i$5$6$8$O", $juliet);
00923                 return preg_replace( $rx, $rp, $haystack );
00924         }
00925 }