30 define(
'DBO_DEBUG', 1 );
31 define(
'DBO_NOBUFFER', 2 );
32 define(
'DBO_IGNORE', 4 );
33 define(
'DBO_TRX', 8 );
34 define(
'DBO_DEFAULT', 16 );
35 define(
'DBO_PERSISTENT', 32 );
36 define(
'DBO_SYSDBA', 64 );
37 define(
'DBO_DDLMODE', 128 );
38 define(
'DBO_SSL', 256 );
39 define(
'DBO_COMPRESS', 512 );
47 define( 'DB_MASTER', -2 );
# Write to master (or only server)
51 define(
'DB_READ', -1 );
52 define(
'DB_WRITE', -2 );
57 define(
'NS_MEDIA', -2 );
58 define(
'NS_SPECIAL', -1 );
69 define(
'NS_MAIN', 0 );
70 define(
'NS_TALK', 1 );
71 define(
'NS_USER', 2 );
72 define(
'NS_USER_TALK', 3 );
73 define(
'NS_PROJECT', 4 );
74 define(
'NS_PROJECT_TALK', 5 );
75 define(
'NS_FILE', 6 );
76 define(
'NS_FILE_TALK', 7 );
77 define(
'NS_MEDIAWIKI', 8 );
78 define(
'NS_MEDIAWIKI_TALK', 9 );
79 define(
'NS_TEMPLATE', 10 );
80 define(
'NS_TEMPLATE_TALK', 11 );
81 define(
'NS_HELP', 12 );
82 define(
'NS_HELP_TALK', 13 );
83 define(
'NS_CATEGORY', 14 );
84 define(
'NS_CATEGORY_TALK', 15 );
101 define(
'CACHE_ANYTHING', -1 );
102 define(
'CACHE_NONE', 0 );
103 define(
'CACHE_DB', 1 );
104 define(
'CACHE_MEMCACHED', 2 );
105 define(
'CACHE_ACCEL', 3 );
113 define(
'MEDIATYPE_UNKNOWN',
'UNKNOWN' );
115 define(
'MEDIATYPE_BITMAP',
'BITMAP' );
117 define(
'MEDIATYPE_DRAWING',
'DRAWING' );
119 define(
'MEDIATYPE_AUDIO',
'AUDIO' );
122 define(
'MEDIATYPE_VIDEO',
'VIDEO' );
124 define(
'MEDIATYPE_MULTIMEDIA',
'MULTIMEDIA' );
126 define(
'MEDIATYPE_OFFICE',
'OFFICE' );
128 define(
'MEDIATYPE_TEXT',
'TEXT' );
130 define(
'MEDIATYPE_EXECUTABLE',
'EXECUTABLE' );
132 define(
'MEDIATYPE_ARCHIVE',
'ARCHIVE' );
138 define(
'AV_NO_VIRUS', 0 ); # scan ok, no virus found
139 define(
'AV_VIRUS_FOUND', 1 ); # virus found!
140 define(
'AV_SCAN_ABORTED', -1 ); # scan aborted,
the file is probably immune
141 define(
'AV_SCAN_FAILED',
false ); # scan failed (scanner not found
or error
in scanner)
149 define( 'ALF_PRELOAD_LINKS', 1 );
150 define( 'ALF_PRELOAD_EXISTENCE', 2 );
151 define( 'ALF_NO_LINK_LOCK', 4 );
152 define( 'ALF_NO_BLOCK_LOCK', 8 );
159 define( 'MW_DATE_DEFAULT', 'default' );
160 define( 'MW_DATE_MDY', 'mdy' );
161 define( 'MW_DATE_DMY', 'dmy' );
162 define( 'MW_DATE_YMD', 'ymd' );
163 define( 'MW_DATE_ISO', 'ISO 8601' );
169 define( 'RC_EDIT', 0 );
170 define( 'RC_NEW', 1 );
171 define( 'RC_LOG', 3 );
172 define( 'RC_EXTERNAL', 5 );
173 define( 'RC_CATEGORIZE', 6 );
179 define( 'EDIT_NEW', 1 );
180 define( 'EDIT_UPDATE', 2 );
181 define( 'EDIT_MINOR', 4 );
182 define( 'EDIT_SUPPRESS_RC', 8 );
183 define( 'EDIT_FORCE_BOT', 16 );
184 define( 'EDIT_DEFER_UPDATES', 32 );
185 define( 'EDIT_AUTOSUMMARY', 64 );
186 define( 'EDIT_INTERNAL', 128 );
193 define( 'LIST_COMMA', 0 );
194 define( 'LIST_AND', 1 );
195 define( 'LIST_SET', 2 );
196 define( 'LIST_NAMES', 3 );
197 define( 'LIST_OR', 4 );
203 require_once __DIR__ . '/compat/
normal/UtfNormalDefines.php';
208 define( 'MW_SUPPORTS_PARSERFIRSTCALLINIT', 1 );
209 define( 'MW_SUPPORTS_LOCALISATIONCACHE', 1 );
210 define( 'MW_SUPPORTS_CONTENTHANDLER', 1 );
211 define( 'MW_EDITFILTERMERGED_SUPPORTS_API', 1 );
215 define( 'MW_SUPPORTS_RESOURCE_MODULES', 1 );
227 define( 'OT_HTML', 1 );
228 define( 'OT_WIKI', 2 );
229 define( 'OT_PREPROCESS', 3 );
230 define( 'OT_MSG', 3 );
231 define( 'OT_PLAIN', 4 );
240 define( 'SFH_NO_HASH', 1 );
241 define( 'SFH_OBJECT_ARGS', 2 );
248 define( 'APCOND_EDITCOUNT', 1 );
249 define( 'APCOND_AGE', 2 );
250 define( 'APCOND_EMAILCONFIRMED', 3 );
251 define( 'APCOND_INGROUPS', 4 );
252 define( 'APCOND_ISIP', 5 );
253 define( 'APCOND_IPINRANGE', 6 );
254 define( 'APCOND_AGE_FROM_EDIT', 7 );
255 define( 'APCOND_BLOCKED', 8 );
256 define( 'APCOND_ISBOT', 9 );
264 define( 'PROTO_RELATIVE', '
265 define( 'PROTO_CURRENT', null );
266 define( 'PROTO_CANONICAL', 1 );
267 define( 'PROTO_INTERNAL', 2 );
278 define( 'CONTENT_MODEL_WIKITEXT', 'wikitext' );
279 define( 'CONTENT_MODEL_JAVASCRIPT', 'javascript' );
280 define( 'CONTENT_MODEL_CSS', 'css' );
281 define( 'CONTENT_MODEL_TEXT', 'text' );
282 define( 'CONTENT_MODEL_JSON', 'json' );
293 define( 'CONTENT_FORMAT_WIKITEXT', 'text/x-wiki' );
295 define( 'CONTENT_FORMAT_JAVASCRIPT', 'text/javascript' );
297 define( 'CONTENT_FORMAT_CSS', 'text/css' );
299 define( 'CONTENT_FORMAT_TEXT', 'text/plain' );
301 define( 'CONTENT_FORMAT_HTML', 'text/html' );
303 define( 'CONTENT_FORMAT_SERIALIZED', 'application/vnd.php.serialized' );
305 define( 'CONTENT_FORMAT_JSON', 'application/json' );
307 define( 'CONTENT_FORMAT_XML', 'application/xml' );
313 define( 'SHELL_MAX_ARG_STRLEN', '100000' );
#define the
table suitable for use with IDatabase::select()
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable from
null for the local wiki Added in
Apache License January http
Some quick notes on the file repository architecture Functionality is
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
We use the convention $dbr for read and $dbw for write to help you keep track of whether the database object is a slave(read-only) or a master(read/write).If you write to a slave
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same so they can t rely on Unix and must forbid reads to even standard directories like tmp lest users read each others files We cannot assume that the user has the ability to install or run any programs not written as web accessible PHP scripts Since anything that works on cheap shared hosting will work if you have shell or root access MediaWiki s design is based around catering to the lowest common denominator Although we support higher end setups as the way many things work by default is tailored toward shared hosting These defaults are unconventional from the point of view of normal(non-web) applications--they might conflict with distributors'policies
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at https