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