* Replacing NS_WP and NS_WIKIPEDIA with NS_PROJECT and NS_WP_TALK and
[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 /**#@-*/
16
17 /**#@+
18 * Virtual namespaces; don't appear in the page database
19 */
20 define('NS_MEDIA', -2);
21 define('NS_SPECIAL', -1);
22 /**#@-*/
23
24 /**#@+
25 * Real namespaces
26 *
27 * Number 100 and beyond are reserved for custom namespaces;
28 * DO NOT assign standard namespaces at 100 or beyond.
29 * DO NOT Change integer values as they are most probably hardcoded everywhere
30 * see bug #696 which talked about that.
31 */
32 define('NS_MAIN', 0);
33 define('NS_TALK', 1);
34 define('NS_USER', 2);
35 define('NS_USER_TALK', 3);
36 define('NS_PROJECT', 4);
37 define('NS_PROJECT_TALK', 5);
38 define('NS_IMAGE', 6);
39 define('NS_IMAGE_TALK', 7);
40 define('NS_MEDIAWIKI', 8);
41 define('NS_MEDIAWIKI_TALK', 9);
42 define('NS_TEMPLATE', 10);
43 define('NS_TEMPLATE_TALK', 11);
44 define('NS_HELP', 12);
45 define('NS_HELP_TALK', 13);
46 define('NS_CATEGORY', 14);
47 define('NS_CATEGORY_TALK', 15);
48 /**#@-*/
49
50 /**
51 * Available feeds objects
52 * Should probably only be defined when a page is syndicated ie when
53 * $wgOut->isSyndicated() is true
54 */
55 $wgFeedClasses = array(
56 'rss' => 'RSSFeed',
57 'atom' => 'AtomFeed',
58 );
59
60 /** Maths constants */
61 define( 'MW_MATH_PNG', 0 );
62 define( 'MW_MATH_SIMPLE', 1 );
63 define( 'MW_MATH_HTML', 2 );
64 define( 'MW_MATH_SOURCE', 3 );
65 define( 'MW_MATH_MODERN', 4 );
66 define( 'MW_MATH_MATHML', 5 );
67
68 /**
69 * User rights management
70 * a big array of string defining a right, that's how they are saved in the
71 * database.
72 */
73 $wgAvailableRights = array('read', 'edit', 'move', 'delete', 'undelete',
74 'protect', 'block', 'userrights', 'grouprights', 'createaccount', 'upload',
75 'asksql', 'rollback', 'patrol', 'editinterface', 'siteadmin', 'bot', 'validate',
76 'import');
77
78 ?>