AutoLoader.php 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. <?php
  2. /* This defines autoloading handler for whole MediaWiki framework */
  3. ini_set('unserialize_callback_func', '__autoload' );
  4. # Locations of core classes
  5. # Extension classes are specified with $wgAutoloadClasses
  6. # This array is a global instead of a static member of AutoLoader to work around a bug in APC
  7. global $wgAutoloadLocalClasses;
  8. $wgAutoloadLocalClasses = array(
  9. # Includes
  10. 'AjaxDispatcher' => 'includes/AjaxDispatcher.php',
  11. 'AjaxResponse' => 'includes/AjaxResponse.php',
  12. 'AlphabeticPager' => 'includes/Pager.php',
  13. 'APCBagOStuff' => 'includes/BagOStuff.php',
  14. 'Article' => 'includes/Article.php',
  15. 'AtomFeed' => 'includes/Feed.php',
  16. 'AuthPlugin' => 'includes/AuthPlugin.php',
  17. 'AuthPluginUser' => 'includes/AuthPlugin.php',
  18. 'Autopromote' => 'includes/Autopromote.php',
  19. 'BacklinkCache' => 'includes/BacklinkCache.php',
  20. 'BagOStuff' => 'includes/BagOStuff.php',
  21. 'Block' => 'includes/Block.php',
  22. 'CacheDependency' => 'includes/CacheDependency.php',
  23. 'Category' => 'includes/Category.php',
  24. 'Categoryfinder' => 'includes/Categoryfinder.php',
  25. 'CategoryPage' => 'includes/CategoryPage.php',
  26. 'CategoryViewer' => 'includes/CategoryPage.php',
  27. 'ChangesList' => 'includes/ChangesList.php',
  28. 'ChangesFeed' => 'includes/ChangesFeed.php',
  29. 'ChangeTags' => 'includes/ChangeTags.php',
  30. 'ChannelFeed' => 'includes/Feed.php',
  31. 'ConcatenatedGzipHistoryBlob' => 'includes/HistoryBlob.php',
  32. 'ConstantDependency' => 'includes/CacheDependency.php',
  33. 'CreativeCommonsRdf' => 'includes/Metadata.php',
  34. 'Credits' => 'includes/Credits.php',
  35. 'DBABagOStuff' => 'includes/BagOStuff.php',
  36. 'DependencyWrapper' => 'includes/CacheDependency.php',
  37. 'DiffHistoryBlob' => 'includes/HistoryBlob.php',
  38. 'DjVuImage' => 'includes/DjVuImage.php',
  39. 'DoubleReplacer' => 'includes/StringUtils.php',
  40. 'DoubleRedirectJob' => 'includes/DoubleRedirectJob.php',
  41. 'DublinCoreRdf' => 'includes/Metadata.php',
  42. 'Dump7ZipOutput' => 'includes/Export.php',
  43. 'DumpBZip2Output' => 'includes/Export.php',
  44. 'DumpFileOutput' => 'includes/Export.php',
  45. 'DumpFilter' => 'includes/Export.php',
  46. 'DumpGZipOutput' => 'includes/Export.php',
  47. 'DumpLatestFilter' => 'includes/Export.php',
  48. 'DumpMultiWriter' => 'includes/Export.php',
  49. 'DumpNamespaceFilter' => 'includes/Export.php',
  50. 'DumpNotalkFilter' => 'includes/Export.php',
  51. 'DumpOutput' => 'includes/Export.php',
  52. 'DumpPipeOutput' => 'includes/Export.php',
  53. 'eAccelBagOStuff' => 'includes/BagOStuff.php',
  54. 'EditPage' => 'includes/EditPage.php',
  55. 'EmaillingJob' => 'includes/EmaillingJob.php',
  56. 'EmailNotification' => 'includes/UserMailer.php',
  57. 'EnhancedChangesList' => 'includes/ChangesList.php',
  58. 'EnotifNotifyJob' => 'includes/EnotifNotifyJob.php',
  59. 'ErrorPageError' => 'includes/Exception.php',
  60. 'Exif' => 'includes/Exif.php',
  61. 'ExplodeIterator' => 'includes/StringUtils.php',
  62. 'ExternalEdit' => 'includes/ExternalEdit.php',
  63. 'ExternalStoreDB' => 'includes/ExternalStoreDB.php',
  64. 'ExternalStoreHttp' => 'includes/ExternalStoreHttp.php',
  65. 'ExternalStore' => 'includes/ExternalStore.php',
  66. 'FatalError' => 'includes/Exception.php',
  67. 'FakeTitle' => 'includes/FakeTitle.php',
  68. 'FauxRequest' => 'includes/WebRequest.php',
  69. 'FeedItem' => 'includes/Feed.php',
  70. 'FeedUtils' => 'includes/FeedUtils.php',
  71. 'FileDeleteForm' => 'includes/FileDeleteForm.php',
  72. 'FileDependency' => 'includes/CacheDependency.php',
  73. 'FileRevertForm' => 'includes/FileRevertForm.php',
  74. 'FileStore' => 'includes/FileStore.php',
  75. 'ForkController' => 'includes/ForkController.php',
  76. 'FormatExif' => 'includes/Exif.php',
  77. 'FormOptions' => 'includes/FormOptions.php',
  78. 'FSException' => 'includes/FileStore.php',
  79. 'FSTransaction' => 'includes/FileStore.php',
  80. 'GlobalDependency' => 'includes/CacheDependency.php',
  81. 'HashBagOStuff' => 'includes/BagOStuff.php',
  82. 'HashtableReplacer' => 'includes/StringUtils.php',
  83. 'HistoryBlobCurStub' => 'includes/HistoryBlob.php',
  84. 'HistoryBlob' => 'includes/HistoryBlob.php',
  85. 'HistoryBlobStub' => 'includes/HistoryBlob.php',
  86. 'HTMLCacheUpdate' => 'includes/HTMLCacheUpdate.php',
  87. 'HTMLCacheUpdateJob' => 'includes/HTMLCacheUpdate.php',
  88. 'HTMLFileCache' => 'includes/HTMLFileCache.php',
  89. 'Http' => 'includes/HttpFunctions.php',
  90. 'IEContentAnalyzer' => 'includes/IEContentAnalyzer.php',
  91. 'ImageGallery' => 'includes/ImageGallery.php',
  92. 'ImageHistoryList' => 'includes/ImagePage.php',
  93. 'ImagePage' => 'includes/ImagePage.php',
  94. 'ImageQueryPage' => 'includes/ImageQueryPage.php',
  95. 'IncludableSpecialPage' => 'includes/SpecialPage.php',
  96. 'IndexPager' => 'includes/Pager.php',
  97. 'Interwiki' => 'includes/Interwiki.php',
  98. 'IP' => 'includes/IP.php',
  99. 'Job' => 'includes/JobQueue.php',
  100. 'License' => 'includes/Licenses.php',
  101. 'Licenses' => 'includes/Licenses.php',
  102. 'LinkBatch' => 'includes/LinkBatch.php',
  103. 'LinkCache' => 'includes/LinkCache.php',
  104. 'Linker' => 'includes/Linker.php',
  105. 'LinkFilter' => 'includes/LinkFilter.php',
  106. 'LinksUpdate' => 'includes/LinksUpdate.php',
  107. 'LogPage' => 'includes/LogPage.php',
  108. 'LogPager' => 'includes/LogEventsList.php',
  109. 'LogEventsList' => 'includes/LogEventsList.php',
  110. 'LogReader' => 'includes/LogEventsList.php',
  111. 'LogViewer' => 'includes/LogEventsList.php',
  112. 'MacBinary' => 'includes/MacBinary.php',
  113. 'MagicWordArray' => 'includes/MagicWord.php',
  114. 'MagicWord' => 'includes/MagicWord.php',
  115. 'MailAddress' => 'includes/UserMailer.php',
  116. 'MathRenderer' => 'includes/Math.php',
  117. 'MediaTransformError' => 'includes/MediaTransformOutput.php',
  118. 'MediaTransformOutput' => 'includes/MediaTransformOutput.php',
  119. 'MediaWikiBagOStuff' => 'includes/BagOStuff.php',
  120. 'MediaWiki_I18N' => 'includes/SkinTemplate.php',
  121. 'MediaWiki' => 'includes/Wiki.php',
  122. 'memcached' => 'includes/memcached-client.php',
  123. 'MessageCache' => 'includes/MessageCache.php',
  124. 'MimeMagic' => 'includes/MimeMagic.php',
  125. 'MWException' => 'includes/Exception.php',
  126. 'MWNamespace' => 'includes/Namespace.php',
  127. 'MySQLSearchResultSet' => 'includes/SearchMySQL.php',
  128. 'Namespace' => 'includes/NamespaceCompat.php', // Compat
  129. 'OldChangesList' => 'includes/ChangesList.php',
  130. 'OracleSearchResultSet' => 'includes/SearchOracle.php',
  131. 'OutputPage' => 'includes/OutputPage.php',
  132. 'PageHistory' => 'includes/PageHistory.php',
  133. 'PageHistoryPager' => 'includes/PageHistory.php',
  134. 'PageQueryPage' => 'includes/PageQueryPage.php',
  135. 'Pager' => 'includes/Pager.php',
  136. 'PasswordError' => 'includes/User.php',
  137. 'PatrolLog' => 'includes/PatrolLog.php',
  138. 'PostgresSearchResult' => 'includes/SearchPostgres.php',
  139. 'PostgresSearchResultSet' => 'includes/SearchPostgres.php',
  140. 'PrefixSearch' => 'includes/PrefixSearch.php',
  141. 'Profiler' => 'includes/Profiler.php',
  142. 'ProfilerSimple' => 'includes/ProfilerSimple.php',
  143. 'ProfilerSimpleText' => 'includes/ProfilerSimpleText.php',
  144. 'ProfilerSimpleUDP' => 'includes/ProfilerSimpleUDP.php',
  145. 'ProtectionForm' => 'includes/ProtectionForm.php',
  146. 'QueryPage' => 'includes/QueryPage.php',
  147. 'QuickTemplate' => 'includes/SkinTemplate.php',
  148. 'RawPage' => 'includes/RawPage.php',
  149. 'RCCacheEntry' => 'includes/ChangesList.php',
  150. 'RdfMetaData' => 'includes/Metadata.php',
  151. 'RecentChange' => 'includes/RecentChange.php',
  152. 'RefreshLinksJob' => 'includes/RefreshLinksJob.php',
  153. 'RefreshLinksJob2' => 'includes/RefreshLinksJob.php',
  154. 'RegexlikeReplacer' => 'includes/StringUtils.php',
  155. 'ReplacementArray' => 'includes/StringUtils.php',
  156. 'Replacer' => 'includes/StringUtils.php',
  157. 'ReverseChronologicalPager' => 'includes/Pager.php',
  158. 'Revision' => 'includes/Revision.php',
  159. 'RSSFeed' => 'includes/Feed.php',
  160. 'Sanitizer' => 'includes/Sanitizer.php',
  161. 'SearchEngineDummy' => 'includes/SearchEngine.php',
  162. 'SearchEngine' => 'includes/SearchEngine.php',
  163. 'SearchHighlighter' => 'includes/SearchEngine.php',
  164. 'SearchMySQL4' => 'includes/SearchMySQL4.php',
  165. 'SearchMySQL' => 'includes/SearchMySQL.php',
  166. 'SearchOracle' => 'includes/SearchOracle.php',
  167. 'SearchPostgres' => 'includes/SearchPostgres.php',
  168. 'SearchResult' => 'includes/SearchEngine.php',
  169. 'SearchResultSet' => 'includes/SearchEngine.php',
  170. 'SearchResultTooMany' => 'includes/SearchEngine.php',
  171. 'SearchUpdate' => 'includes/SearchUpdate.php',
  172. 'SearchUpdateMyISAM' => 'includes/SearchUpdate.php',
  173. 'SiteConfiguration' => 'includes/SiteConfiguration.php',
  174. 'SiteStats' => 'includes/SiteStats.php',
  175. 'SiteStatsUpdate' => 'includes/SiteStats.php',
  176. 'Skin' => 'includes/Skin.php',
  177. 'SkinTemplate' => 'includes/SkinTemplate.php',
  178. 'SpecialMycontributions' => 'includes/SpecialPage.php',
  179. 'SpecialMypage' => 'includes/SpecialPage.php',
  180. 'SpecialMytalk' => 'includes/SpecialPage.php',
  181. 'SpecialPage' => 'includes/SpecialPage.php',
  182. 'SpecialRedirectToSpecial' => 'includes/SpecialPage.php',
  183. 'SqlBagOStuff' => 'includes/BagOStuff.php',
  184. 'SquidUpdate' => 'includes/SquidUpdate.php',
  185. 'Status' => 'includes/Status.php',
  186. 'StringUtils' => 'includes/StringUtils.php',
  187. 'TablePager' => 'includes/Pager.php',
  188. 'ThumbnailImage' => 'includes/MediaTransformOutput.php',
  189. 'TiffHandler' => 'includes/media/Tiff.php',
  190. 'TitleDependency' => 'includes/CacheDependency.php',
  191. 'Title' => 'includes/Title.php',
  192. 'TitleArray' => 'includes/TitleArray.php',
  193. 'TitleListDependency' => 'includes/CacheDependency.php',
  194. 'TransformParameterError' => 'includes/MediaTransformOutput.php',
  195. 'TurckBagOStuff' => 'includes/BagOStuff.php',
  196. 'UnlistedSpecialPage' => 'includes/SpecialPage.php',
  197. 'User' => 'includes/User.php',
  198. 'UserArray' => 'includes/UserArray.php',
  199. 'UserArrayFromResult' => 'includes/UserArray.php',
  200. 'UserMailer' => 'includes/UserMailer.php',
  201. 'UserRightsProxy' => 'includes/UserRightsProxy.php',
  202. 'WatchedItem' => 'includes/WatchedItem.php',
  203. 'WatchlistEditor' => 'includes/WatchlistEditor.php',
  204. 'WebRequest' => 'includes/WebRequest.php',
  205. 'WebResponse' => 'includes/WebResponse.php',
  206. 'WikiError' => 'includes/WikiError.php',
  207. 'WikiErrorMsg' => 'includes/WikiError.php',
  208. 'WikiExporter' => 'includes/Export.php',
  209. 'WikiXmlError' => 'includes/WikiError.php',
  210. 'XCacheBagOStuff' => 'includes/BagOStuff.php',
  211. 'XmlDumpWriter' => 'includes/Export.php',
  212. 'Xml' => 'includes/Xml.php',
  213. 'XmlSelect' => 'includes/Xml.php',
  214. 'XmlTypeCheck' => 'includes/XmlTypeCheck.php',
  215. 'ZhClient' => 'includes/ZhClient.php',
  216. # includes/api
  217. 'ApiBase' => 'includes/api/ApiBase.php',
  218. 'ApiBlock' => 'includes/api/ApiBlock.php',
  219. 'ApiDelete' => 'includes/api/ApiDelete.php',
  220. 'ApiDisabled' => 'includes/api/ApiDisabled.php',
  221. 'ApiEditPage' => 'includes/api/ApiEditPage.php',
  222. 'ApiEmailUser' => 'includes/api/ApiEmailUser.php',
  223. 'ApiExpandTemplates' => 'includes/api/ApiExpandTemplates.php',
  224. 'ApiFeedWatchlist' => 'includes/api/ApiFeedWatchlist.php',
  225. 'ApiFormatBase' => 'includes/api/ApiFormatBase.php',
  226. 'ApiFormatDbg' => 'includes/api/ApiFormatDbg.php',
  227. 'ApiFormatFeedWrapper' => 'includes/api/ApiFormatBase.php',
  228. 'ApiFormatJson' => 'includes/api/ApiFormatJson.php',
  229. 'ApiFormatPhp' => 'includes/api/ApiFormatPhp.php',
  230. 'ApiFormatRaw' => 'includes/api/ApiFormatRaw.php',
  231. 'ApiFormatTxt' => 'includes/api/ApiFormatTxt.php',
  232. 'ApiFormatWddx' => 'includes/api/ApiFormatWddx.php',
  233. 'ApiFormatXml' => 'includes/api/ApiFormatXml.php',
  234. 'ApiFormatYaml' => 'includes/api/ApiFormatYaml.php',
  235. 'ApiHelp' => 'includes/api/ApiHelp.php',
  236. 'ApiImport' => 'includes/api/ApiImport.php',
  237. 'ApiImportReporter' => 'includes/api/ApiImport.php',
  238. 'ApiLogin' => 'includes/api/ApiLogin.php',
  239. 'ApiLogout' => 'includes/api/ApiLogout.php',
  240. 'ApiMain' => 'includes/api/ApiMain.php',
  241. 'ApiMove' => 'includes/api/ApiMove.php',
  242. 'ApiOpenSearch' => 'includes/api/ApiOpenSearch.php',
  243. 'ApiPageSet' => 'includes/api/ApiPageSet.php',
  244. 'ApiParamInfo' => 'includes/api/ApiParamInfo.php',
  245. 'ApiParse' => 'includes/api/ApiParse.php',
  246. 'ApiPatrol' => 'includes/api/ApiPatrol.php',
  247. 'ApiProtect' => 'includes/api/ApiProtect.php',
  248. 'ApiPurge' => 'includes/api/ApiPurge.php',
  249. 'ApiQuery' => 'includes/api/ApiQuery.php',
  250. 'ApiQueryAllCategories' => 'includes/api/ApiQueryAllCategories.php',
  251. 'ApiQueryAllimages' => 'includes/api/ApiQueryAllimages.php',
  252. 'ApiQueryAllLinks' => 'includes/api/ApiQueryAllLinks.php',
  253. 'ApiQueryAllUsers' => 'includes/api/ApiQueryAllUsers.php',
  254. 'ApiQueryAllmessages' => 'includes/api/ApiQueryAllmessages.php',
  255. 'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php',
  256. 'ApiQueryBacklinks' => 'includes/api/ApiQueryBacklinks.php',
  257. 'ApiQueryBase' => 'includes/api/ApiQueryBase.php',
  258. 'ApiQueryBlocks' => 'includes/api/ApiQueryBlocks.php',
  259. 'ApiQueryCategories' => 'includes/api/ApiQueryCategories.php',
  260. 'ApiQueryCategoryInfo' => 'includes/api/ApiQueryCategoryInfo.php',
  261. 'ApiQueryCategoryMembers' => 'includes/api/ApiQueryCategoryMembers.php',
  262. 'ApiQueryContributions' => 'includes/api/ApiQueryUserContributions.php',
  263. 'ApiQueryDeletedrevs' => 'includes/api/ApiQueryDeletedrevs.php',
  264. 'ApiQueryDisabled' => 'includes/api/ApiQueryDisabled.php',
  265. 'ApiQueryDuplicateFiles' => 'includes/api/ApiQueryDuplicateFiles.php',
  266. 'ApiQueryExtLinksUsage' => 'includes/api/ApiQueryExtLinksUsage.php',
  267. 'ApiQueryExternalLinks' => 'includes/api/ApiQueryExternalLinks.php',
  268. 'ApiQueryGeneratorBase' => 'includes/api/ApiQueryBase.php',
  269. 'ApiQueryImageInfo' => 'includes/api/ApiQueryImageInfo.php',
  270. 'ApiQueryImages' => 'includes/api/ApiQueryImages.php',
  271. 'ApiQueryInfo' => 'includes/api/ApiQueryInfo.php',
  272. 'ApiQueryLangLinks' => 'includes/api/ApiQueryLangLinks.php',
  273. 'ApiQueryLinks' => 'includes/api/ApiQueryLinks.php',
  274. 'ApiQueryLogEvents' => 'includes/api/ApiQueryLogEvents.php',
  275. 'ApiQueryProtectedTitles' => 'includes/api/ApiQueryProtectedTitles.php',
  276. 'ApiQueryRandom' => 'includes/api/ApiQueryRandom.php',
  277. 'ApiQueryRecentChanges'=> 'includes/api/ApiQueryRecentChanges.php',
  278. 'ApiQueryRevisions' => 'includes/api/ApiQueryRevisions.php',
  279. 'ApiQuerySearch' => 'includes/api/ApiQuerySearch.php',
  280. 'ApiQuerySiteinfo' => 'includes/api/ApiQuerySiteinfo.php',
  281. 'ApiQueryUserInfo' => 'includes/api/ApiQueryUserInfo.php',
  282. 'ApiQueryUsers' => 'includes/api/ApiQueryUsers.php',
  283. 'ApiQueryWatchlist' => 'includes/api/ApiQueryWatchlist.php',
  284. 'ApiQueryWatchlistRaw' => 'includes/api/ApiQueryWatchlistRaw.php',
  285. 'ApiResult' => 'includes/api/ApiResult.php',
  286. 'ApiRollback' => 'includes/api/ApiRollback.php',
  287. 'ApiUnblock' => 'includes/api/ApiUnblock.php',
  288. 'ApiUndelete' => 'includes/api/ApiUndelete.php',
  289. 'ApiWatch' => 'includes/api/ApiWatch.php',
  290. 'Services_JSON' => 'includes/api/ApiFormatJson_json.php',
  291. 'Services_JSON_Error' => 'includes/api/ApiFormatJson_json.php',
  292. 'Spyc' => 'includes/api/ApiFormatYaml_spyc.php',
  293. 'UsageException' => 'includes/api/ApiMain.php',
  294. # includes/db
  295. 'Blob' => 'includes/db/Database.php',
  296. 'ChronologyProtector' => 'includes/db/LBFactory.php',
  297. 'Database' => 'includes/db/Database.php',
  298. 'DatabaseMssql' => 'includes/db/DatabaseMssql.php',
  299. 'DatabaseMysql' => 'includes/db/Database.php',
  300. 'DatabaseOracle' => 'includes/db/DatabaseOracle.php',
  301. 'DatabasePostgres' => 'includes/db/DatabasePostgres.php',
  302. 'DatabaseSqlite' => 'includes/db/DatabaseSqlite.php',
  303. 'DBConnectionError' => 'includes/db/Database.php',
  304. 'DBError' => 'includes/db/Database.php',
  305. 'DBObject' => 'includes/db/Database.php',
  306. 'DBQueryError' => 'includes/db/Database.php',
  307. 'DBUnexpectedError' => 'includes/db/Database.php',
  308. 'LBFactory' => 'includes/db/LBFactory.php',
  309. 'LBFactory_Multi' => 'includes/db/LBFactory_Multi.php',
  310. 'LBFactory_Simple' => 'includes/db/LBFactory.php',
  311. 'LoadBalancer' => 'includes/db/LoadBalancer.php',
  312. 'LoadMonitor' => 'includes/db/LoadMonitor.php',
  313. 'LoadMonitor_MySQL' => 'includes/db/LoadMonitor.php',
  314. 'MSSQLField' => 'includes/db/DatabaseMssql.php',
  315. 'MySQLField' => 'includes/db/Database.php',
  316. 'MySQLMasterPos' => 'includes/db/Database.php',
  317. 'ORABlob' => 'includes/db/DatabaseOracle.php',
  318. 'ORAResult' => 'includes/db/DatabaseOracle.php',
  319. 'PostgresField' => 'includes/db/DatabasePostgres.php',
  320. 'ResultWrapper' => 'includes/db/Database.php',
  321. 'SQLiteField' => 'includes/db/DatabaseSqlite.php',
  322. 'DatabaseIbm_db2' => 'includes/db/DatabaseIbm_db2.php',
  323. 'IBM_DB2Field' => 'includes/db/DatabaseIbm_db2.php',
  324. 'IBM_DB2SearchResultSet' => 'includes/SearchIBM_DB2.php',
  325. 'SearchIBM_DB2' => 'includes/SearchIBM_DB2.php',
  326. # includes/diff
  327. 'AncestorComparator' => 'includes/diff/HTMLDiff.php',
  328. 'AnchorToString' => 'includes/diff/HTMLDiff.php',
  329. 'ArrayDiffFormatter' => 'includes/diff/DifferenceEngine.php',
  330. 'BodyNode' => 'includes/diff/Nodes.php',
  331. 'ChangeText' => 'includes/diff/HTMLDiff.php',
  332. 'ChangeTextGenerator' => 'includes/diff/HTMLDiff.php',
  333. 'DelegatingContentHandler' => 'includes/diff/HTMLDiff.php',
  334. '_DiffEngine' => 'includes/diff/DifferenceEngine.php',
  335. 'DifferenceEngine' => 'includes/diff/DifferenceEngine.php',
  336. 'DiffFormatter' => 'includes/diff/DifferenceEngine.php',
  337. 'Diff' => 'includes/diff/DifferenceEngine.php',
  338. '_DiffOp_Add' => 'includes/diff/DifferenceEngine.php',
  339. '_DiffOp_Change' => 'includes/diff/DifferenceEngine.php',
  340. '_DiffOp_Copy' => 'includes/diff/DifferenceEngine.php',
  341. '_DiffOp_Delete' => 'includes/diff/DifferenceEngine.php',
  342. '_DiffOp' => 'includes/diff/DifferenceEngine.php',
  343. 'DomTreeBuilder' => 'includes/diff/HTMLDiff.php',
  344. 'DummyNode' => 'includes/diff/Nodes.php',
  345. 'HTMLDiffer' => 'includes/diff/HTMLDiff.php',
  346. 'HTMLOutput' => 'includes/diff/HTMLDiff.php',
  347. '_HWLDF_WordAccumulator' => 'includes/diff/DifferenceEngine.php',
  348. 'ImageNode' => 'includes/diff/Nodes.php',
  349. 'LastCommonParentResult' => 'includes/diff/HTMLDiff.php',
  350. 'MappedDiff' => 'includes/diff/DifferenceEngine.php',
  351. 'Modification' => 'includes/diff/HTMLDiff.php',
  352. 'NoContentTagToString' => 'includes/diff/HTMLDiff.php',
  353. 'Node' => 'includes/diff/Nodes.php',
  354. 'RangeDifference' => 'includes/diff/Diff.php',
  355. 'TableDiffFormatter' => 'includes/diff/DifferenceEngine.php',
  356. 'TagNode' => 'includes/diff/Nodes.php',
  357. 'TagToString' => 'includes/diff/HTMLDiff.php',
  358. 'TagToStringFactory' => 'includes/diff/HTMLDiff.php',
  359. 'TextNode' => 'includes/diff/Nodes.php',
  360. 'TextNodeDiffer' => 'includes/diff/HTMLDiff.php',
  361. 'TextOnlyComparator' => 'includes/diff/HTMLDiff.php',
  362. 'UnifiedDiffFormatter' => 'includes/diff/DifferenceEngine.php',
  363. 'WhiteSpaceNode' => 'includes/diff/Nodes.php',
  364. 'WikiDiff3' => 'includes/diff/Diff.php',
  365. 'WordLevelDiff' => 'includes/diff/DifferenceEngine.php',
  366. # includes/filerepo
  367. 'ArchivedFile' => 'includes/filerepo/ArchivedFile.php',
  368. 'File' => 'includes/filerepo/File.php',
  369. 'FileCache' => 'includes/filerepo/FileCache.php',
  370. 'FileRepo' => 'includes/filerepo/FileRepo.php',
  371. 'FileRepoStatus' => 'includes/filerepo/FileRepoStatus.php',
  372. 'ForeignAPIFile' => 'includes/filerepo/ForeignAPIFile.php',
  373. 'ForeignAPIRepo' => 'includes/filerepo/ForeignAPIRepo.php',
  374. 'ForeignDBFile' => 'includes/filerepo/ForeignDBFile.php',
  375. 'ForeignDBRepo' => 'includes/filerepo/ForeignDBRepo.php',
  376. 'ForeignDBViaLBRepo' => 'includes/filerepo/ForeignDBViaLBRepo.php',
  377. 'FSRepo' => 'includes/filerepo/FSRepo.php',
  378. 'Image' => 'includes/filerepo/Image.php',
  379. 'LocalFile' => 'includes/filerepo/LocalFile.php',
  380. 'LocalFileDeleteBatch' => 'includes/filerepo/LocalFile.php',
  381. 'LocalFileMoveBatch' => 'includes/filerepo/LocalFile.php',
  382. 'LocalFileRestoreBatch' => 'includes/filerepo/LocalFile.php',
  383. 'LocalRepo' => 'includes/filerepo/LocalRepo.php',
  384. 'OldLocalFile' => 'includes/filerepo/OldLocalFile.php',
  385. 'RepoGroup' => 'includes/filerepo/RepoGroup.php',
  386. 'UnregisteredLocalFile' => 'includes/filerepo/UnregisteredLocalFile.php',
  387. # includes/media
  388. 'BitmapHandler' => 'includes/media/Bitmap.php',
  389. 'BitmapHandler_ClientOnly' => 'includes/media/Bitmap_ClientOnly.php',
  390. 'BmpHandler' => 'includes/media/BMP.php',
  391. 'DjVuHandler' => 'includes/media/DjVu.php',
  392. 'ImageHandler' => 'includes/media/Generic.php',
  393. 'MediaHandler' => 'includes/media/Generic.php',
  394. 'SvgHandler' => 'includes/media/SVG.php',
  395. # includes/normal
  396. 'UtfNormal' => 'includes/normal/UtfNormal.php',
  397. # includes/parser
  398. 'CoreLinkFunctions' => 'includes/parser/CoreLinkFunctions.php',
  399. 'CoreParserFunctions' => 'includes/parser/CoreParserFunctions.php',
  400. 'DateFormatter' => 'includes/parser/DateFormatter.php',
  401. 'LinkHolderArray' => 'includes/parser/LinkHolderArray.php',
  402. 'LinkMarkerReplacer' => 'includes/parser/LinkMarkerReplacer.php',
  403. 'OnlyIncludeReplacer' => 'includes/parser/Parser.php',
  404. 'PPDAccum_Hash' => 'includes/parser/Preprocessor_Hash.php',
  405. 'PPDPart' => 'includes/parser/Preprocessor_DOM.php',
  406. 'PPDPart_Hash' => 'includes/parser/Preprocessor_Hash.php',
  407. 'PPDStack' => 'includes/parser/Preprocessor_DOM.php',
  408. 'PPDStackElement' => 'includes/parser/Preprocessor_DOM.php',
  409. 'PPDStackElement_Hash' => 'includes/parser/Preprocessor_Hash.php',
  410. 'PPDStack_Hash' => 'includes/parser/Preprocessor_Hash.php',
  411. 'PPFrame' => 'includes/parser/Preprocessor.php',
  412. 'PPFrame_DOM' => 'includes/parser/Preprocessor_DOM.php',
  413. 'PPFrame_Hash' => 'includes/parser/Preprocessor_Hash.php',
  414. 'PPNode' => 'includes/parser/Preprocessor.php',
  415. 'PPNode_DOM' => 'includes/parser/Preprocessor_DOM.php',
  416. 'PPNode_Hash_Array' => 'includes/parser/Preprocessor_Hash.php',
  417. 'PPNode_Hash_Attr' => 'includes/parser/Preprocessor_Hash.php',
  418. 'PPNode_Hash_Text' => 'includes/parser/Preprocessor_Hash.php',
  419. 'PPNode_Hash_Tree' => 'includes/parser/Preprocessor_Hash.php',
  420. 'PPTemplateFrame_DOM' => 'includes/parser/Preprocessor_DOM.php',
  421. 'PPTemplateFrame_Hash' => 'includes/parser/Preprocessor_Hash.php',
  422. 'Parser' => 'includes/parser/Parser.php',
  423. 'ParserCache' => 'includes/parser/ParserCache.php',
  424. 'ParserOptions' => 'includes/parser/ParserOptions.php',
  425. 'ParserOutput' => 'includes/parser/ParserOutput.php',
  426. 'Parser_DiffTest' => 'includes/parser/Parser_DiffTest.php',
  427. 'Parser_LinkHooks' => 'includes/parser/Parser_LinkHooks.php',
  428. 'Preprocessor' => 'includes/parser/Preprocessor.php',
  429. 'Preprocessor_DOM' => 'includes/parser/Preprocessor_DOM.php',
  430. 'Preprocessor_Hash' => 'includes/parser/Preprocessor_Hash.php',
  431. 'StripState' => 'includes/parser/Parser.php',
  432. 'MWTidy' => 'includes/parser/Tidy.php',
  433. # includes/specials
  434. 'AncientPagesPage' => 'includes/specials/SpecialAncientpages.php',
  435. 'BrokenRedirectsPage' => 'includes/specials/SpecialBrokenRedirects.php',
  436. 'ContribsPager' => 'includes/specials/SpecialContributions.php',
  437. 'DBLockForm' => 'includes/specials/SpecialLockdb.php',
  438. 'DBUnlockForm' => 'includes/specials/SpecialUnlockdb.php',
  439. 'DeadendPagesPage' => 'includes/specials/SpecialDeadendpages.php',
  440. 'DeletedContributionsPage' => 'includes/specials/SpecialDeletedContributions.php',
  441. 'DeletedContribsPager' => 'includes/specials/SpecialDeletedContributions.php',
  442. 'DisambiguationsPage' => 'includes/specials/SpecialDisambiguations.php',
  443. 'DoubleRedirectsPage' => 'includes/specials/SpecialDoubleRedirects.php',
  444. 'EmailConfirmation' => 'includes/specials/SpecialConfirmemail.php',
  445. 'EmailInvalidation' => 'includes/specials/SpecialConfirmemail.php',
  446. 'EmailUserForm' => 'includes/specials/SpecialEmailuser.php',
  447. 'FewestrevisionsPage' => 'includes/specials/SpecialFewestrevisions.php',
  448. 'FileDuplicateSearchPage' => 'includes/specials/SpecialFileDuplicateSearch.php',
  449. 'IPBlockForm' => 'includes/specials/SpecialBlockip.php',
  450. 'IPBlocklistPager' => 'includes/specials/SpecialIpblocklist.php',
  451. 'IPUnblockForm' => 'includes/specials/SpecialIpblocklist.php',
  452. 'ImportReporter' => 'includes/specials/SpecialImport.php',
  453. 'ImportStreamSource' => 'includes/Import.php',
  454. 'ImportStringSource' => 'includes/Import.php',
  455. 'LinkSearchPage' => 'includes/specials/SpecialLinkSearch.php',
  456. 'ListredirectsPage' => 'includes/specials/SpecialListredirects.php',
  457. 'LoginForm' => 'includes/specials/SpecialUserlogin.php',
  458. 'LonelyPagesPage' => 'includes/specials/SpecialLonelypages.php',
  459. 'LongPagesPage' => 'includes/specials/SpecialLongpages.php',
  460. 'MIMEsearchPage' => 'includes/specials/SpecialMIMEsearch.php',
  461. 'MostcategoriesPage' => 'includes/specials/SpecialMostcategories.php',
  462. 'MostimagesPage' => 'includes/specials/SpecialMostimages.php',
  463. 'MostlinkedCategoriesPage' => 'includes/specials/SpecialMostlinkedcategories.php',
  464. 'MostlinkedPage' => 'includes/specials/SpecialMostlinked.php',
  465. 'MostrevisionsPage' => 'includes/specials/SpecialMostrevisions.php',
  466. 'MovePageForm' => 'includes/specials/SpecialMovepage.php',
  467. 'SpecialNewpages' => 'includes/specials/SpecialNewpages.php',
  468. 'SpecialContributions' => 'includes/specials/SpecialContributions.php',
  469. 'NewPagesPager' => 'includes/specials/SpecialNewpages.php',
  470. 'PageArchive' => 'includes/specials/SpecialUndelete.php',
  471. 'SpecialResetpass' => 'includes/specials/SpecialResetpass.php',
  472. 'PopularPagesPage' => 'includes/specials/SpecialPopularpages.php',
  473. 'PreferencesForm' => 'includes/specials/SpecialPreferences.php',
  474. 'RandomPage' => 'includes/specials/SpecialRandompage.php',
  475. 'SpecialRevisionDelete' => 'includes/specials/SpecialRevisiondelete.php',
  476. 'RevisionDeleter' => 'includes/specials/SpecialRevisiondelete.php',
  477. 'ShortPagesPage' => 'includes/specials/SpecialShortpages.php',
  478. 'SpecialAllpages' => 'includes/specials/SpecialAllpages.php',
  479. 'SpecialBookSources' => 'includes/specials/SpecialBooksources.php',
  480. 'SpecialExport' => 'includes/specials/SpecialExport.php',
  481. 'SpecialImport' => 'includes/specials/SpecialImport.php',
  482. 'SpecialListGroupRights' => 'includes/specials/SpecialListgrouprights.php',
  483. 'SpecialMostlinkedtemplates' => 'includes/specials/SpecialMostlinkedtemplates.php',
  484. 'SpecialPrefixindex' => 'includes/specials/SpecialPrefixindex.php',
  485. 'SpecialRandomredirect' => 'includes/specials/SpecialRandomredirect.php',
  486. 'SpecialRecentchanges' => 'includes/specials/SpecialRecentchanges.php',
  487. 'SpecialRecentchangeslinked' => 'includes/specials/SpecialRecentchangeslinked.php',
  488. 'SpecialSearch' => 'includes/specials/SpecialSearch.php',
  489. 'SpecialSearchOld' => 'includes/specials/SpecialSearch.php',
  490. 'SpecialStatistics' => 'includes/specials/SpecialStatistics.php',
  491. 'SpecialTags' => 'includes/specials/SpecialTags.php',
  492. 'SpecialVersion' => 'includes/specials/SpecialVersion.php',
  493. 'UncategorizedCategoriesPage' => 'includes/specials/SpecialUncategorizedcategories.php',
  494. 'UncategorizedPagesPage' => 'includes/specials/SpecialUncategorizedpages.php',
  495. 'UncategorizedTemplatesPage' => 'includes/specials/SpecialUncategorizedtemplates.php',
  496. 'UndeleteForm' => 'includes/specials/SpecialUndelete.php',
  497. 'UnusedCategoriesPage' => 'includes/specials/SpecialUnusedcategories.php',
  498. 'UnusedimagesPage' => 'includes/specials/SpecialUnusedimages.php',
  499. 'UnusedtemplatesPage' => 'includes/specials/SpecialUnusedtemplates.php',
  500. 'UnwatchedpagesPage' => 'includes/specials/SpecialUnwatchedpages.php',
  501. 'UploadForm' => 'includes/specials/SpecialUpload.php',
  502. 'UploadFormMogile' => 'includes/specials/SpecialUploadMogile.php',
  503. 'UserrightsPage' => 'includes/specials/SpecialUserrights.php',
  504. 'UsersPager' => 'includes/specials/SpecialListusers.php',
  505. 'WantedCategoriesPage' => 'includes/specials/SpecialWantedcategories.php',
  506. 'WantedFilesPage' => 'includes/specials/SpecialWantedfiles.php',
  507. 'WantedPagesPage' => 'includes/specials/SpecialWantedpages.php',
  508. 'WantedTemplatesPage' => 'includes/specials/SpecialWantedtemplates.php',
  509. 'WhatLinksHerePage' => 'includes/specials/SpecialWhatlinkshere.php',
  510. 'WikiImporter' => 'includes/Import.php',
  511. 'WikiRevision' => 'includes/Import.php',
  512. 'WithoutInterwikiPage' => 'includes/specials/SpecialWithoutinterwiki.php',
  513. # includes/templates
  514. 'UsercreateTemplate' => 'includes/templates/Userlogin.php',
  515. 'UserloginTemplate' => 'includes/templates/Userlogin.php',
  516. # languages
  517. 'Language' => 'languages/Language.php',
  518. 'FakeConverter' => 'languages/Language.php',
  519. # maintenance/language
  520. 'statsOutput' => 'maintenance/language/StatOutputs.php',
  521. 'wikiStatsOutput' => 'maintenance/language/StatOutputs.php',
  522. 'metawikiStatsOutput' => 'maintenance/language/StatOutputs.php',
  523. 'textStatsOutput' => 'maintenance/language/StatOutputs.php',
  524. 'csvStatsOutput' => 'maintenance/language/StatOutputs.php',
  525. );
  526. class AutoLoader {
  527. /**
  528. * autoload - take a class name and attempt to load it
  529. *
  530. * @param string $className Name of class we're looking for.
  531. * @return bool Returning false is important on failure as
  532. * it allows Zend to try and look in other registered autoloaders
  533. * as well.
  534. */
  535. static function autoload( $className ) {
  536. global $wgAutoloadClasses, $wgAutoloadLocalClasses;
  537. if ( isset( $wgAutoloadLocalClasses[$className] ) ) {
  538. $filename = $wgAutoloadLocalClasses[$className];
  539. } elseif ( isset( $wgAutoloadClasses[$className] ) ) {
  540. $filename = $wgAutoloadClasses[$className];
  541. } else {
  542. # Try a different capitalisation
  543. # The case can sometimes be wrong when unserializing PHP 4 objects
  544. $filename = false;
  545. $lowerClass = strtolower( $className );
  546. foreach ( $wgAutoloadLocalClasses as $class2 => $file2 ) {
  547. if ( strtolower( $class2 ) == $lowerClass ) {
  548. $filename = $file2;
  549. }
  550. }
  551. if ( !$filename ) {
  552. if( function_exists( 'wfDebug' ) )
  553. wfDebug( "Class {$className} not found; skipped loading\n" );
  554. # Give up
  555. return false;
  556. }
  557. }
  558. # Make an absolute path, this improves performance by avoiding some stat calls
  559. if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) != ':' ) {
  560. global $IP;
  561. $filename = "$IP/$filename";
  562. }
  563. require( $filename );
  564. return true;
  565. }
  566. static function loadAllExtensions() {
  567. global $wgAutoloadClasses;
  568. foreach( $wgAutoloadClasses as $class => $file ) {
  569. if( !( class_exists( $class, false ) || interface_exists( $class, false ) ) ) {
  570. require( $file );
  571. }
  572. }
  573. }
  574. }
  575. function wfLoadAllExtensions() {
  576. AutoLoader::loadAllExtensions();
  577. }
  578. if ( function_exists( 'spl_autoload_register' ) ) {
  579. spl_autoload_register( array( 'AutoLoader', 'autoload' ) );
  580. } else {
  581. function __autoload( $class ) {
  582. AutoLoader::autoload( $class );
  583. }
  584. }