dc6b31ac7fb12395307da597366af2afa64d48e7
3 * A few constants that might be needed during LocalSettings.php
8 * Database related constants
10 define( 'DBO_DEBUG', 1 );
11 define( 'DBO_NOBUFFER', 2 );
12 define( 'DBO_IGNORE', 4 );
13 define( 'DBO_TRX', 8 );
14 define( 'DBO_DEFAULT', 16 );
15 define( 'DBO_PERSISTENT', 32 );
19 * Virtual namespaces; don't appear in the page database
21 define('NS_MEDIA', -2);
22 define('NS_SPECIAL', -1);
28 * Number 100 and beyond are reserved for custom namespaces;
29 * DO NOT assign standard namespaces at 100 or beyond.
30 * DO NOT Change integer values as they are most probably hardcoded everywhere
31 * see bug #696 which talked about that.
36 define('NS_USER_TALK', 3);
37 define('NS_PROJECT', 4);
38 define('NS_PROJECT_TALK', 5);
39 define('NS_IMAGE', 6);
40 define('NS_IMAGE_TALK', 7);
41 define('NS_MEDIAWIKI', 8);
42 define('NS_MEDIAWIKI_TALK', 9);
43 define('NS_TEMPLATE', 10);
44 define('NS_TEMPLATE_TALK', 11);
45 define('NS_HELP', 12);
46 define('NS_HELP_TALK', 13);
47 define('NS_CATEGORY', 14);
48 define('NS_CATEGORY_TALK', 15);
52 * Available feeds objects
53 * Should probably only be defined when a page is syndicated ie when
54 * $wgOut->isSyndicated() is true
56 $wgFeedClasses = array(
64 define( 'MW_MATH_PNG', 0 );
65 define( 'MW_MATH_SIMPLE', 1 );
66 define( 'MW_MATH_HTML', 2 );
67 define( 'MW_MATH_SOURCE', 3 );
68 define( 'MW_MATH_MODERN', 4 );
69 define( 'MW_MATH_MATHML', 5 );
73 * User rights management
74 * a big array of string defining a right, that's how they are saved in the
76 * @todo Is this necessary?
78 $wgAvailableRights = array(
100 define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works
101 define( 'CACHE_NONE', 0 ); // Do not cache
102 define( 'CACHE_DB', 1 ); // Store cache objects in the DB
103 define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers
104 define( 'CACHE_ACCEL', 3 ); // eAccelerator or Turck, whichever is available
111 * This defines constants for the value returned by Image::getMediaType()
113 define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' ); // unknown format
114 define( 'MEDIATYPE_BITMAP', 'BITMAP' ); // some bitmap image or image source (like psd, etc). Can't scale up.
115 define( 'MEDIATYPE_DRAWING', 'DRAWING' ); // some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up.
116 define( 'MEDIATYPE_AUDIO', 'AUDIO' ); // simple audio file (ogg, mp3, wav, midi, whatever)
117 define( 'MEDIATYPE_VIDEO', 'VIDEO' ); // simple video file (ogg, mpg, etc; no not include formats here that may contain executable sections or scripts!)
118 define( 'MEDIATYPE_MULTIMEDIA', 'MULTIMEDIA' ); // Scriptable Multimedia (flash, advanced video container formats, etc)
119 define( 'MEDIATYPE_OFFICE', 'OFFICE' ); // Office Documents, Spreadsheets (office formats possibly containing apples, scripts, etc)
120 define( 'MEDIATYPE_TEXT', 'TEXT' ); // Plain text (possibly containing program code or scripts)
121 define( 'MEDIATYPE_EXECUTABLE', 'EXECUTABLE' ); // binary executable
122 define( 'MEDIATYPE_ARCHIVE', 'ARCHIVE' ); // archive file (zip, tar, etc)
126 * Antivirus result codes, for use in $wgAntivirusSetup.
128 define( 'AV_NO_VIRUS', 0 ); #scan ok, no virus found
129 define( 'AV_VIRUS_FOUND', 1 ); #virus found!
130 define( 'AV_SCAN_ABORTED', -1 ); #scan aborted, the file is probably imune
131 define( 'AV_SCAN_FAILED', false ); #scan failed (scanner not found or error in scanner)
136 * See DefaultSettings.php for a description
138 define( 'ALF_PRELOAD_LINKS', 1 );
139 define( 'ALF_PRELOAD_EXISTENCE', 2 );
140 define( 'ALF_NO_LINK_LOCK', 4 );
141 define( 'ALF_NO_BLOCK_LOCK', 8 );
145 * Date format selectors; used in user preference storage and by
146 * Language::date() and co.
148 define( 'MW_DATE_DEFAULT', '0' );
149 define( 'MW_DATE_MDY', '1' );
150 define( 'MW_DATE_DMY', '2' );
151 define( 'MW_DATE_YMD', '3' );
152 define( 'MW_DATE_ISO', 'ISO 8601' );