2008-07-17 18:12:20 +00:00
|
|
|
scripts.txt
|
|
|
|
|
|
|
|
|
|
MediaWiki primary scripts are in the root directory of the software. Users
|
|
|
|
|
should only use these scripts to access the wiki. There are also some .php that
|
|
|
|
|
aren't primary scripts but helper files and won't work if they are accessed
|
|
|
|
|
directly by the web.
|
|
|
|
|
|
|
|
|
|
Primary scripts:
|
|
|
|
|
|
|
|
|
|
index.php
|
|
|
|
|
Main access point. It handles the most of requests.
|
2014-01-21 15:37:51 +00:00
|
|
|
See https://www.mediawiki.org/wiki/Manual:Index.php
|
2008-07-17 18:12:20 +00:00
|
|
|
|
|
|
|
|
api.php
|
|
|
|
|
Script to provide an API for bots to fetch content and informations about
|
2014-01-21 15:37:51 +00:00
|
|
|
the site and also modify it. See https://www.mediawiki.org/wiki/API
|
2008-07-17 18:12:20 +00:00
|
|
|
for more informations.
|
|
|
|
|
|
|
|
|
|
img_auth.php
|
|
|
|
|
Script that only serve images to logged in users. To configure the wiki
|
2014-01-21 15:37:51 +00:00
|
|
|
to use that script, see https://www.mediawiki.org/wiki/Manual:Image_Authorisation.
|
2008-07-17 18:12:20 +00:00
|
|
|
|
2010-11-13 13:24:21 +00:00
|
|
|
load.php
|
|
|
|
|
Used by ResourceLoader to serve minified, concatenated and gzipped CSS and JS.
|
|
|
|
|
|
2008-07-17 18:12:20 +00:00
|
|
|
opensearch_desc.php
|
|
|
|
|
Returns a OpenSearch description document (see http://www.opensearch.org/)
|
|
|
|
|
that points to the search engines of the wiki.
|
|
|
|
|
|
|
|
|
|
profileinfo.php
|
|
|
|
|
Allow users to see the profiling information that are stored in the
|
|
|
|
|
database.
|
|
|
|
|
|
|
|
|
|
To save the profiling information in the database (required to use this
|
|
|
|
|
script), you have to modify StartProfiler.php to use the Profiler class and
|
|
|
|
|
not the stub profiler which is enabled by default.
|
2014-12-03 18:36:12 +00:00
|
|
|
You will also need to set $wgProfiler['output'] to 'db' in LocalSettings.php
|
2008-07-17 18:12:20 +00:00
|
|
|
to force the profiler to save the informations in the database and apply the
|
|
|
|
|
maintenance/archives/patch-profiling.sql patch to the database.
|
|
|
|
|
|
2009-07-23 00:31:37 +00:00
|
|
|
To enable the profileinfo.php itself, you'll need to set $wgDBadminuser
|
2018-02-16 22:03:44 +00:00
|
|
|
and $wgDBadminpassword in your LocalSettings.php, as well as $wgEnableProfileInfo
|
2014-07-07 22:10:23 +00:00
|
|
|
See also https://www.mediawiki.org/wiki/Manual:Profiling .
|
2008-07-17 18:12:20 +00:00
|
|
|
|
|
|
|
|
thumb.php
|
2008-07-20 19:15:47 +00:00
|
|
|
Script used to resize images if it is configured to be done when the web
|
2008-07-17 18:12:20 +00:00
|
|
|
browser requests the image and not when generating the page. This script can
|
|
|
|
|
be used as a 404 handler to generate image thumbs when they don't exist.
|