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