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