MediaWiki
REL1_19
|
00001 <?php 00015 define( 'MW_SPECIALPAGE_VERSION', 2 ); 00016 00020 define( 'DBO_DEBUG', 1 ); 00021 define( 'DBO_NOBUFFER', 2 ); 00022 define( 'DBO_IGNORE', 4 ); 00023 define( 'DBO_TRX', 8 ); 00024 define( 'DBO_DEFAULT', 16 ); 00025 define( 'DBO_PERSISTENT', 32 ); 00026 define( 'DBO_SYSDBA', 64 ); //for oracle maintenance 00027 define( 'DBO_DDLMODE', 128 ); // when using schema files: mostly for Oracle 00034 define( 'DB_SLAVE', -1 ); # Read from the slave (or only server) 00035 define( 'DB_MASTER', -2 ); # Write to master (or only server) 00036 define( 'DB_LAST', -3 ); # Whatever database was used last 00039 # Obsolete aliases 00040 define( 'DB_READ', -1 ); 00041 define( 'DB_WRITE', -2 ); 00042 00043 00047 define( 'NS_MEDIA', -2 ); 00048 define( 'NS_SPECIAL', -1 ); 00059 define( 'NS_MAIN', 0 ); 00060 define( 'NS_TALK', 1 ); 00061 define( 'NS_USER', 2 ); 00062 define( 'NS_USER_TALK', 3 ); 00063 define( 'NS_PROJECT', 4 ); 00064 define( 'NS_PROJECT_TALK', 5 ); 00065 define( 'NS_FILE', 6 ); 00066 define( 'NS_FILE_TALK', 7 ); 00067 define( 'NS_MEDIAWIKI', 8 ); 00068 define( 'NS_MEDIAWIKI_TALK', 9 ); 00069 define( 'NS_TEMPLATE', 10 ); 00070 define( 'NS_TEMPLATE_TALK', 11 ); 00071 define( 'NS_HELP', 12 ); 00072 define( 'NS_HELP_TALK', 13 ); 00073 define( 'NS_CATEGORY', 14 ); 00074 define( 'NS_CATEGORY_TALK', 15 ); 00075 00084 define( 'NS_IMAGE', NS_FILE ); 00085 define( 'NS_IMAGE_TALK', NS_FILE_TALK ); 00091 define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works 00092 define( 'CACHE_NONE', 0 ); // Do not cache 00093 define( 'CACHE_DB', 1 ); // Store cache objects in the DB 00094 define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers 00095 define( 'CACHE_ACCEL', 3 ); // APC, XCache or WinCache 00096 define( 'CACHE_DBA', 4 ); // Use PHP's DBA extension to store in a DBM-style database 00103 define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' ); // unknown format 00104 define( 'MEDIATYPE_BITMAP', 'BITMAP' ); // some bitmap image or image source (like psd, etc). Can't scale up. 00105 define( 'MEDIATYPE_DRAWING', 'DRAWING' ); // some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up. 00106 define( 'MEDIATYPE_AUDIO', 'AUDIO' ); // simple audio file (ogg, mp3, wav, midi, whatever) 00107 define( 'MEDIATYPE_VIDEO', 'VIDEO' ); // simple video file (ogg, mpg, etc; no not include formats here that may contain executable sections or scripts!) 00108 define( 'MEDIATYPE_MULTIMEDIA', 'MULTIMEDIA' ); // Scriptable Multimedia (flash, advanced video container formats, etc) 00109 define( 'MEDIATYPE_OFFICE', 'OFFICE' ); // Office Documents, Spreadsheets (office formats possibly containing apples, scripts, etc) 00110 define( 'MEDIATYPE_TEXT', 'TEXT' ); // Plain text (possibly containing program code or scripts) 00111 define( 'MEDIATYPE_EXECUTABLE', 'EXECUTABLE' ); // binary executable 00112 define( 'MEDIATYPE_ARCHIVE', 'ARCHIVE' ); // archive file (zip, tar, etc) 00118 define( 'AV_NO_VIRUS', 0 ); #scan ok, no virus found 00119 define( 'AV_VIRUS_FOUND', 1 ); #virus found! 00120 define( 'AV_SCAN_ABORTED', -1 ); #scan aborted, the file is probably imune 00121 define( 'AV_SCAN_FAILED', false ); #scan failed (scanner not found or error in scanner) 00128 define( 'ALF_PRELOAD_LINKS', 1 ); 00129 define( 'ALF_PRELOAD_EXISTENCE', 2 ); 00130 define( 'ALF_NO_LINK_LOCK', 4 ); 00131 define( 'ALF_NO_BLOCK_LOCK', 8 ); 00138 /*define( 'MW_DATE_DEFAULT', '0' ); 00139 define( 'MW_DATE_MDY', '1' ); 00140 define( 'MW_DATE_DMY', '2' ); 00141 define( 'MW_DATE_YMD', '3' ); 00142 define( 'MW_DATE_ISO', 'ISO 8601' );*/ 00143 define( 'MW_DATE_DEFAULT', 'default' ); 00144 define( 'MW_DATE_MDY', 'mdy' ); 00145 define( 'MW_DATE_DMY', 'dmy' ); 00146 define( 'MW_DATE_YMD', 'ymd' ); 00147 define( 'MW_DATE_ISO', 'ISO 8601' ); 00153 define( 'RC_EDIT', 0); 00154 define( 'RC_NEW', 1); 00155 define( 'RC_MOVE', 2); // obsolete 00156 define( 'RC_LOG', 3); 00157 define( 'RC_MOVE_OVER_REDIRECT', 4); // obsolete 00163 define( 'EDIT_NEW', 1 ); 00164 define( 'EDIT_UPDATE', 2 ); 00165 define( 'EDIT_MINOR', 4 ); 00166 define( 'EDIT_SUPPRESS_RC', 8 ); 00167 define( 'EDIT_FORCE_BOT', 16 ); 00168 define( 'EDIT_DEFER_UPDATES', 32 ); 00169 define( 'EDIT_AUTOSUMMARY', 64 ); 00176 define( 'LIST_COMMA', 0 ); 00177 define( 'LIST_AND', 1 ); 00178 define( 'LIST_SET', 2 ); 00179 define( 'LIST_NAMES', 3); 00180 define( 'LIST_OR', 4); 00181 define( 'LIST_SET_PREPARED', 8); // List of (?, ?, ?) for DatabaseIbm_db2 00187 require_once dirname(__FILE__).'/normal/UtfNormalDefines.php'; 00188 00192 define( 'MW_SUPPORTS_EDITFILTERMERGED', 1 ); 00193 define( 'MW_SUPPORTS_PARSERFIRSTCALLINIT', 1 ); 00194 define( 'MW_SUPPORTS_LOCALISATIONCACHE', 1 ); 00198 define( 'MW_SUPPORTS_RESOURCE_MODULES', 1 ); 00199 00204 define( 'OT_HTML', 1 ); 00205 define( 'OT_WIKI', 2 ); 00206 define( 'OT_PREPROCESS', 3 ); 00207 define( 'OT_MSG' , 3 ); // b/c alias for OT_PREPROCESS 00208 define( 'OT_PLAIN', 4 ); 00214 define( 'SFH_NO_HASH', 1 ); 00215 define( 'SFH_OBJECT_ARGS', 2 ); 00221 define( 'SLH_PATTERN', 1 ); 00222 00226 define( 'RLH_FOR_UPDATE', 1 ); 00227 00232 define( 'APCOND_EDITCOUNT', 1 ); 00233 define( 'APCOND_AGE', 2 ); 00234 define( 'APCOND_EMAILCONFIRMED', 3 ); 00235 define( 'APCOND_INGROUPS', 4 ); 00236 define( 'APCOND_ISIP', 5 ); 00237 define( 'APCOND_IPINRANGE', 6 ); 00238 define( 'APCOND_AGE_FROM_EDIT', 7 ); 00239 define( 'APCOND_BLOCKED', 8 ); 00240 define( 'APCOND_ISBOT', 9 ); 00246 define( 'PROTO_HTTP', 'http://' ); 00247 define( 'PROTO_HTTPS', 'https://' ); 00248 define( 'PROTO_RELATIVE', '//' ); 00249 define( 'PROTO_CURRENT', null ); 00250 define( 'PROTO_CANONICAL', 1 ); 00251 define( 'PROTO_INTERNAL', 2 );