remove thread's talk page namespace
[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 define('NS_THREAD', 100); // Reserved for Forum-like
44 /**#@-*/
45
46 /**#@+
47 * Fix the code and remove these...
48 * @todo Constants that need to be removed after code cleaning
49 * @deprecated
50 */
51 define('NS_WP', NS_PROJECT);
52 define('NS_WP_TALK', NS_PROJECT_TALK);
53 define('NS_WIKIPEDIA', NS_PROJECT);
54 define('NS_WIKIPEDIA_TALK', NS_PROJECT_TALK);
55 /**#@-*/
56
57 /**
58 * Available feeds objects
59 * Should probably only be defined when a page is syndicated ie when
60 * $wgOut->isSyndicated() is true
61 */
62 $wgFeedClasses = array(
63 'rss' => 'RSSFeed',
64 'atom' => 'AtomFeed',
65 );
66
67 /** Maths constants */
68 define( 'MW_MATH_PNG', 0 );
69 define( 'MW_MATH_SIMPLE', 1 );
70 define( 'MW_MATH_HTML', 2 );
71 define( 'MW_MATH_SOURCE', 3 );
72 define( 'MW_MATH_MODERN', 4 );
73 define( 'MW_MATH_MATHML', 5 );
74
75 /**
76 * User rights management
77 * a big array of string defining a right, that's how they are saved in the
78 * database.
79 */
80 $wgAvailableRights = array('read', 'edit', 'move', 'delete', 'undelete',
81 'protect', 'block', 'userrights', 'createaccount', 'upload', 'asksql',
82 'rollback', 'patrol', 'editinterface', 'siteadmin', 'bot');
83
84 ?>