* Sorted $wgAvailableRights
[lhc/web/wiklou.git] / includes / Defines.php
1 <?php
2 /**
3 * A few constants that might be needed during LocalSettings.php
4 * @package MediaWiki
5 */
6
7 /**#@+
8 * Database related constants
9 */
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 );
16 /**#@-*/
17
18 /**#@+
19 * Virtual namespaces; don't appear in the page database
20 */
21 define('NS_MEDIA', -2);
22 define('NS_SPECIAL', -1);
23 /**#@-*/
24
25 /**#@+
26 * Real namespaces
27 *
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.
32 */
33 define('NS_MAIN', 0);
34 define('NS_TALK', 1);
35 define('NS_USER', 2);
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);
49 /**#@-*/
50
51 /**
52 * Available feeds objects
53 * Should probably only be defined when a page is syndicated ie when
54 * $wgOut->isSyndicated() is true
55 */
56 $wgFeedClasses = array(
57 'rss' => 'RSSFeed',
58 'atom' => 'AtomFeed',
59 );
60
61 /**#@+
62 * Maths constants
63 */
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 );
70 /**#@-*/
71
72 /**
73 * User rights management
74 * a big array of string defining a right, that's how they are saved in the
75 * database.
76 * @todo Is this necessary?
77 */
78 $wgAvailableRights = array(
79 'block',
80 'bot',
81 'createaccount',
82 'delete',
83 'edit',
84 'editinterface',
85 'import',
86 'importupload',
87 'move',
88 'patrol',
89 'protect',
90 'read',
91 'rollback',
92 'siteadmin',
93 'unwatchedpages',
94 'upload',
95 'userrights',
96 );
97
98 /**#@+
99 * Cache type
100 */
101 define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works
102 define( 'CACHE_NONE', 0 ); // Do not cache
103 define( 'CACHE_DB', 1 ); // Store cache objects in the DB
104 define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers
105 define( 'CACHE_ACCEL', 3 ); // eAccelerator or Turck, whichever is available
106 /**#@-*/
107
108
109
110 /**#@+
111 * Media types.
112 * This defines constants for the value returned by Image::getMediaType()
113 */
114 define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' ); // unknown format
115 define( 'MEDIATYPE_BITMAP', 'BITMAP' ); // some bitmap image or image source (like psd, etc). Can't scale up.
116 define( 'MEDIATYPE_DRAWING', 'DRAWING' ); // some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up.
117 define( 'MEDIATYPE_AUDIO', 'AUDIO' ); // simple audio file (ogg, mp3, wav, midi, whatever)
118 define( 'MEDIATYPE_VIDEO', 'VIDEO' ); // simple video file (ogg, mpg, etc; no not include formats here that may contain executable sections or scripts!)
119 define( 'MEDIATYPE_MULTIMEDIA', 'MULTIMEDIA' ); // Scriptable Multimedia (flash, advanced video container formats, etc)
120 define( 'MEDIATYPE_OFFICE', 'OFFICE' ); // Office Documents, Spreadsheets (office formats possibly containing apples, scripts, etc)
121 define( 'MEDIATYPE_TEXT', 'TEXT' ); // Plain text (possibly containing program code or scripts)
122 define( 'MEDIATYPE_EXECUTABLE', 'EXECUTABLE' ); // binary executable
123 define( 'MEDIATYPE_ARCHIVE', 'ARCHIVE' ); // archive file (zip, tar, etc)
124 /**#@-*/
125
126 /**#@+
127 * Antivirus result codes, for use in $wgAntivirusSetup.
128 */
129 define( 'AV_NO_VIRUS', 0 ); #scan ok, no virus found
130 define( 'AV_VIRUS_FOUND', 1 ); #virus found!
131 define( 'AV_SCAN_ABORTED', -1 ); #scan aborted, the file is probably imune
132 define( 'AV_SCAN_FAILED', false ); #scan failed (scanner not found or error in scanner)
133 /**#@-*/
134
135 /**#@+
136 * Anti-lock flags
137 * See DefaultSettings.php for a description
138 */
139 define( 'ALF_PRELOAD_LINKS', 1 );
140 define( 'ALF_PRELOAD_EXISTENCE', 2 );
141 define( 'ALF_NO_LINK_LOCK', 4 );
142 define( 'ALF_NO_BLOCK_LOCK', 8 );
143 /**#@-*/
144
145 /**#@+
146 * Date format selectors; used in user preference storage and by
147 * Language::date() and co.
148 */
149 define( 'MW_DATE_DEFAULT', '0' );
150 define( 'MW_DATE_MDY', '1' );
151 define( 'MW_DATE_DMY', '2' );
152 define( 'MW_DATE_YMD', '3' );
153 define( 'MW_DATE_ISO', 'ISO 8601' );
154 /**#@-*/
155
156 ?>