MediaWiki
REL1_24
|
00001 <?php 00034 define( 'MW_SPECIALPAGE_VERSION', 2 ); 00035 00039 define( 'DBO_DEBUG', 1 ); 00040 define( 'DBO_NOBUFFER', 2 ); 00041 define( 'DBO_IGNORE', 4 ); 00042 define( 'DBO_TRX', 8 ); // automatically start transaction on first query 00043 define( 'DBO_DEFAULT', 16 ); 00044 define( 'DBO_PERSISTENT', 32 ); 00045 define( 'DBO_SYSDBA', 64 ); //for oracle maintenance 00046 define( 'DBO_DDLMODE', 128 ); // when using schema files: mostly for Oracle 00047 define( 'DBO_SSL', 256 ); 00048 define( 'DBO_COMPRESS', 512 ); 00055 define( 'DB_SLAVE', -1 ); # Read from the slave (or only server) 00056 define( 'DB_MASTER', -2 ); # Write to master (or only server) 00057 00059 # Obsolete aliases 00060 define( 'DB_READ', -1 ); 00061 define( 'DB_WRITE', -2 ); 00062 00066 define( 'NS_MEDIA', -2 ); 00067 define( 'NS_SPECIAL', -1 ); 00078 define( 'NS_MAIN', 0 ); 00079 define( 'NS_TALK', 1 ); 00080 define( 'NS_USER', 2 ); 00081 define( 'NS_USER_TALK', 3 ); 00082 define( 'NS_PROJECT', 4 ); 00083 define( 'NS_PROJECT_TALK', 5 ); 00084 define( 'NS_FILE', 6 ); 00085 define( 'NS_FILE_TALK', 7 ); 00086 define( 'NS_MEDIAWIKI', 8 ); 00087 define( 'NS_MEDIAWIKI_TALK', 9 ); 00088 define( 'NS_TEMPLATE', 10 ); 00089 define( 'NS_TEMPLATE_TALK', 11 ); 00090 define( 'NS_HELP', 12 ); 00091 define( 'NS_HELP_TALK', 13 ); 00092 define( 'NS_CATEGORY', 14 ); 00093 define( 'NS_CATEGORY_TALK', 15 ); 00094 00103 define( 'NS_IMAGE', NS_FILE ); 00104 define( 'NS_IMAGE_TALK', NS_FILE_TALK ); 00110 define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works 00111 define( 'CACHE_NONE', 0 ); // Do not cache 00112 define( 'CACHE_DB', 1 ); // Store cache objects in the DB 00113 define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers 00114 define( 'CACHE_ACCEL', 3 ); // APC, XCache or WinCache 00121 // unknown format 00122 define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' ); 00123 // some bitmap image or image source (like psd, etc). Can't scale up. 00124 define( 'MEDIATYPE_BITMAP', 'BITMAP' ); 00125 // some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up. 00126 define( 'MEDIATYPE_DRAWING', 'DRAWING' ); 00127 // simple audio file (ogg, mp3, wav, midi, whatever) 00128 define( 'MEDIATYPE_AUDIO', 'AUDIO' ); 00129 // simple video file (ogg, mpg, etc; 00130 // no not include formats here that may contain executable sections or scripts!) 00131 define( 'MEDIATYPE_VIDEO', 'VIDEO' ); 00132 // Scriptable Multimedia (flash, advanced video container formats, etc) 00133 define( 'MEDIATYPE_MULTIMEDIA', 'MULTIMEDIA' ); 00134 // Office Documents, Spreadsheets (office formats possibly containing apples, scripts, etc) 00135 define( 'MEDIATYPE_OFFICE', 'OFFICE' ); 00136 // Plain text (possibly containing program code or scripts) 00137 define( 'MEDIATYPE_TEXT', 'TEXT' ); 00138 // binary executable 00139 define( 'MEDIATYPE_EXECUTABLE', 'EXECUTABLE' ); 00140 // archive file (zip, tar, etc) 00141 define( 'MEDIATYPE_ARCHIVE', 'ARCHIVE' ); 00147 define( 'AV_NO_VIRUS', 0 ); #scan ok, no virus found 00148 define( 'AV_VIRUS_FOUND', 1 ); #virus found! 00149 define( 'AV_SCAN_ABORTED', -1 ); #scan aborted, the file is probably immune 00150 define( 'AV_SCAN_FAILED', false ); #scan failed (scanner not found or error in scanner) 00157 define( 'ALF_PRELOAD_LINKS', 1 ); // unused 00158 define( 'ALF_PRELOAD_EXISTENCE', 2 ); // unused 00159 define( 'ALF_NO_LINK_LOCK', 4 ); 00160 define( 'ALF_NO_BLOCK_LOCK', 8 ); 00167 define( 'MW_DATE_DEFAULT', 'default' ); 00168 define( 'MW_DATE_MDY', 'mdy' ); 00169 define( 'MW_DATE_DMY', 'dmy' ); 00170 define( 'MW_DATE_YMD', 'ymd' ); 00171 define( 'MW_DATE_ISO', 'ISO 8601' ); 00177 define( 'RC_EDIT', 0 ); 00178 define( 'RC_NEW', 1 ); 00179 define( 'RC_LOG', 3 ); 00180 define( 'RC_EXTERNAL', 5 ); 00186 define( 'EDIT_NEW', 1 ); 00187 define( 'EDIT_UPDATE', 2 ); 00188 define( 'EDIT_MINOR', 4 ); 00189 define( 'EDIT_SUPPRESS_RC', 8 ); 00190 define( 'EDIT_FORCE_BOT', 16 ); 00191 define( 'EDIT_DEFER_UPDATES', 32 ); 00192 define( 'EDIT_AUTOSUMMARY', 64 ); 00199 define( 'LIST_COMMA', 0 ); 00200 define( 'LIST_AND', 1 ); 00201 define( 'LIST_SET', 2 ); 00202 define( 'LIST_NAMES', 3 ); 00203 define( 'LIST_OR', 4 ); 00209 require_once __DIR__ . '/normal/UtfNormalDefines.php'; 00210 00214 define( 'MW_SUPPORTS_EDITFILTERMERGED', 1 ); 00215 define( 'MW_SUPPORTS_PARSERFIRSTCALLINIT', 1 ); 00216 define( 'MW_SUPPORTS_LOCALISATIONCACHE', 1 ); 00217 define( 'MW_SUPPORTS_CONTENTHANDLER', 1 ); 00221 define( 'MW_SUPPORTS_RESOURCE_MODULES', 1 ); 00222 00227 define( 'OT_HTML', 1 ); 00228 define( 'OT_WIKI', 2 ); 00229 define( 'OT_PREPROCESS', 3 ); 00230 define( 'OT_MSG', 3 ); // b/c alias for OT_PREPROCESS 00231 define( 'OT_PLAIN', 4 ); 00237 define( 'SFH_NO_HASH', 1 ); 00238 define( 'SFH_OBJECT_ARGS', 2 ); 00244 define( 'RLH_FOR_UPDATE', 1 ); 00245 00250 define( 'APCOND_EDITCOUNT', 1 ); 00251 define( 'APCOND_AGE', 2 ); 00252 define( 'APCOND_EMAILCONFIRMED', 3 ); 00253 define( 'APCOND_INGROUPS', 4 ); 00254 define( 'APCOND_ISIP', 5 ); 00255 define( 'APCOND_IPINRANGE', 6 ); 00256 define( 'APCOND_AGE_FROM_EDIT', 7 ); 00257 define( 'APCOND_BLOCKED', 8 ); 00258 define( 'APCOND_ISBOT', 9 ); 00264 define( 'PROTO_HTTP', 'http://' ); 00265 define( 'PROTO_HTTPS', 'https://' ); 00266 define( 'PROTO_RELATIVE', '//' ); 00267 define( 'PROTO_CURRENT', null ); 00268 define( 'PROTO_CANONICAL', 1 ); 00269 define( 'PROTO_INTERNAL', 2 ); 00280 define( 'CONTENT_MODEL_WIKITEXT', 'wikitext' ); 00281 define( 'CONTENT_MODEL_JAVASCRIPT', 'javascript' ); 00282 define( 'CONTENT_MODEL_CSS', 'css' ); 00283 define( 'CONTENT_MODEL_TEXT', 'text' ); 00284 define( 'CONTENT_MODEL_JSON', 'json' ); 00294 // wikitext 00295 define( 'CONTENT_FORMAT_WIKITEXT', 'text/x-wiki' ); 00296 // for js pages 00297 define( 'CONTENT_FORMAT_JAVASCRIPT', 'text/javascript' ); 00298 // for css pages 00299 define( 'CONTENT_FORMAT_CSS', 'text/css' ); 00300 // for future use, e.g. with some plain-html messages. 00301 define( 'CONTENT_FORMAT_TEXT', 'text/plain' ); 00302 // for future use, e.g. with some plain-html messages. 00303 define( 'CONTENT_FORMAT_HTML', 'text/html' ); 00304 // for future use with the api and for extensions 00305 define( 'CONTENT_FORMAT_SERIALIZED', 'application/vnd.php.serialized' ); 00306 // for future use with the api, and for use by extensions 00307 define( 'CONTENT_FORMAT_JSON', 'application/json' ); 00308 // for future use with the api, and for use by extensions 00309 define( 'CONTENT_FORMAT_XML', 'application/xml' );