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