9require_once __DIR__ .
'/libs/Mime/defines.php';
10require_once __DIR__ .
'/libs/Rdbms/defines.php';
23define(
'MW_VERSION',
'1.46.0-alpha' );
29define(
'LIST_COMMA', IDatabase::LIST_COMMA );
30define(
'LIST_AND', IDatabase::LIST_AND );
31define(
'LIST_SET', IDatabase::LIST_SET );
32define(
'LIST_NAMES', IDatabase::LIST_NAMES );
33define(
'LIST_OR', IDatabase::LIST_OR );
39define(
'NS_MEDIA', -2 );
40define(
'NS_SPECIAL', -1 );
54define(
'NS_USER_TALK', 3 );
55define(
'NS_PROJECT', 4 );
56define(
'NS_PROJECT_TALK', 5 );
58define(
'NS_FILE_TALK', 7 );
59define(
'NS_MEDIAWIKI', 8 );
60define(
'NS_MEDIAWIKI_TALK', 9 );
61define(
'NS_TEMPLATE', 10 );
62define(
'NS_TEMPLATE_TALK', 11 );
63define(
'NS_HELP', 12 );
64define(
'NS_HELP_TALK', 13 );
65define(
'NS_CATEGORY', 14 );
66define(
'NS_CATEGORY_TALK', 15 );
72define(
'CACHE_ANYTHING', -1 );
// Use anything, as long as it works 73define(
'CACHE_NONE', 0 );
// Do not cache 74define(
'CACHE_DB', 1 );
// Store cache objects in the DB 75define(
'CACHE_MEMCACHED',
'memcached-php' );
// Backwards-compatability alias for Memcached 76define(
'CACHE_ACCEL', 3 );
// APC or APCu 77define(
'CACHE_HASH',
'hash' );
// A HashBagOStuff, mostly useful for testing. Not configurable 83define(
'AV_NO_VIRUS', 0 ); # scan ok, no virus found
84define(
'AV_VIRUS_FOUND', 1 ); # virus found!
85define(
'AV_SCAN_ABORTED', -1 ); # scan aborted, the file is probably immune
86define(
'AV_SCAN_FAILED',
false ); # scan failed (scanner not found or error in scanner)
221// Legacy alias for PROTO_FALLBACK from when the current request's protocol was always the fallback const SCHEMA_COMPAT_WRITE_BOTH
const CONTENT_FORMAT_JAVASCRIPT
For JS pages.
const CONTENT_FORMAT_HTML
For future use, e.g.
const SCHEMA_COMPAT_WRITE_TEMP
const CONTENT_FORMAT_JSON
For future use with the API, and for use by extensions.
const SCHEMA_COMPAT_READ_NEW
const EDIT_FORCE_BOT
Mark the edit a "bot" edit regardless of user rights.
const APCOND_EMAILCONFIRMED
const SCHEMA_COMPAT_READ_BOTH
const SCHEMA_COMPAT_WRITE_TEMP_AND_NEW
const EDIT_INTERNAL
Signal that the page retrieve/save cycle happened entirely in this request.
const EDIT_UPDATE
Article is assumed to be pre-existing, fail if it doesn't exist.
const SCHEMA_COMPAT_WRITE_OLD
const MW_SUPPORTS_CONTENTHANDLER
const MW_EDITFILTERMERGED_SUPPORTS_API
const CONTENT_FORMAT_TEXT
For future use, e.g.
const APCOND_AGE_FROM_EDIT
const CONTENT_FORMAT_CSS
For CSS pages.
const SCHEMA_COMPAT_WRITE_OLD_AND_TEMP
const XML_DUMP_SCHEMA_VERSION_11
const SCHEMA_COMPAT_READ_TEMP
const MW_SUPPORTS_LOCALISATIONCACHE
const MW_HAS_SPECIAL_INTERWIKI
Indicate that the Interwiki extension should not be loaded (it is now in core).
const CONTENT_MODEL_WIKITEXT
const MIGRATION_WRITE_NEW
const SCHEMA_COMPAT_READ_OLD
const XML_DUMP_SCHEMA_VERSION_10
const CONTENT_FORMAT_WIKITEXT
Wikitext.
const EDIT_IMPLICIT
The edit is a side effect and does not represent an active user contribution.
const MW_SUPPORTS_RESOURCE_MODULES
Support for $wgResourceModules.
const SCHEMA_COMPAT_WRITE_NEW
const SHELL_MAX_ARG_STRLEN
const SCHEMA_COMPAT_WRITE_MASK
const CONTENT_FORMAT_SERIALIZED
For future use with the API and for extensions.
const MIGRATION_WRITE_BOTH
const CONTENT_MODEL_UNKNOWN
const MW_SUPPORTS_PARSERFIRSTCALLINIT
const EDIT_SILENT
Do not notify other users (e.g.
const EDIT_MINOR
Mark this edit minor, if the user is allowed to do so.
const CONTENT_FORMAT_XML
For future use with the API, and for use by extensions.
const CONTENT_FORMAT_VUE
For Vue pages.
const SCHEMA_COMPAT_READ_MASK
const CONTENT_MODEL_JAVASCRIPT
const EDIT_AUTOSUMMARY
Fill in blank summaries with generated text where possible.
const EDIT_NEW
Article is assumed to be non-existent, fail if it exists.
Interface to a relational database.