3 * A few constants that might be needed during LocalSettings.php
8 * Database related constants
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 );
18 * Virtual namespaces; don't appear in the page database
20 define('NS_MEDIA', -2);
21 define('NS_SPECIAL', -1);
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.
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);
51 * Fix the code and remove these...
52 * @todo Constants that need to be removed after code cleaning
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
);
62 * Available feeds objects
63 * Should probably only be defined when a page is syndicated ie when
64 * $wgOut->isSyndicated() is true
66 $wgFeedClasses = array(
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 );
80 * User rights management
81 * a big array of string defining a right, that's how they are saved in the
84 $wgAvailableRights = array('read', 'edit', 'move', 'delete', 'undelete',
85 'protect', 'block', 'userrights', 'grouprights', 'createaccount', 'upload',
86 'asksql', 'rollback', 'patrol', 'editinterface', 'siteadmin', 'bot');