c7bfd9b5aafa2ae4bffabb27a38da7097743e460
[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 define('NS_MAIN', 0);
28 define('NS_TALK', 1);
29 define('NS_USER', 2);
30 define('NS_USER_TALK', 3);
31 define('NS_PROJECT', 4);
32 define('NS_PROJECT_TALK', 5);
33 define('NS_IMAGE', 6);
34 define('NS_IMAGE_TALK', 7);
35 define('NS_MEDIAWIKI', 8);
36 define('NS_MEDIAWIKI_TALK', 9);
37 define('NS_TEMPLATE', 10);
38 define('NS_TEMPLATE_TALK', 11);
39 define('NS_HELP', 12);
40 define('NS_HELP_TALK', 13);
41 define('NS_CATEGORY', 14);
42 define('NS_CATEGORY_TALK', 15);
43 /**#@-*/
44
45 /**#@+
46 * Fix the code and remove these...
47 * @todo Constants that need to be removed after code cleaning
48 * @deprecated
49 */
50 define('NS_WP', NS_PROJECT);
51 define('NS_WP_TALK', NS_PROJECT_TALK);
52 define('NS_WIKIPEDIA', NS_PROJECT);
53 define('NS_WIKIPEDIA_TALK', NS_PROJECT_TALK);
54 /**#@-*/
55
56 /**
57 * Available feeds objects
58 * Should probably only be defined when a page is syndicated ie when
59 * $wgOut->isSyndicated() is true
60 */
61 $wgFeedClasses = array(
62 'rss' => 'RSSFeed',
63 'atom' => 'AtomFeed',
64 );
65
66 /** Maths constants */
67 define( 'MW_MATH_PNG', 0 );
68 define( 'MW_MATH_SIMPLE', 1 );
69 define( 'MW_MATH_HTML', 2 );
70 define( 'MW_MATH_SOURCE', 3 );
71 define( 'MW_MATH_MODERN', 4 );
72 define( 'MW_MATH_MATHML', 5 );
73
74 /**
75 * User rights management
76 * a big array of string defining a right, that's how they are saved in the
77 * database.
78 */
79 $wgAvailableRights = array('read', 'edit', 'move', 'delete', 'undelete',
80 'protect', 'block', 'userrights', 'createaccount', 'upload', 'asksql',
81 'rollback', 'patrol', 'editinterface', 'siteadmin', 'bot');
82
83 /**#@+
84 * Edit Comments really needs its own separate rights.
85 * Two separate rights are required; edit all comments, edit your own comment.
86 */
87 define('EDIT_COMMENT_ALL', 'protect');
88
89 ?>