* Removed the troublesome regular expression in isValidEmailAddr which returns
[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 define( 'DBO_PERSISTENT', 32 );
16 /**#@-*/
17
18 /**#@+
19 * Virtual namespaces; don't appear in the page database
20 */
21 define('NS_MEDIA', -2);
22 define('NS_SPECIAL', -1);
23 /**#@-*/
24
25 /**#@+
26 * Real namespaces
27 *
28 * Number 100 and beyond are reserved for custom namespaces;
29 * DO NOT assign standard namespaces at 100 or beyond.
30 * DO NOT Change integer values as they are most probably hardcoded everywhere
31 * see bug #696 which talked about that.
32 */
33 define('NS_MAIN', 0);
34 define('NS_TALK', 1);
35 define('NS_USER', 2);
36 define('NS_USER_TALK', 3);
37 define('NS_PROJECT', 4);
38 define('NS_PROJECT_TALK', 5);
39 define('NS_IMAGE', 6);
40 define('NS_IMAGE_TALK', 7);
41 define('NS_MEDIAWIKI', 8);
42 define('NS_MEDIAWIKI_TALK', 9);
43 define('NS_TEMPLATE', 10);
44 define('NS_TEMPLATE_TALK', 11);
45 define('NS_HELP', 12);
46 define('NS_HELP_TALK', 13);
47 define('NS_CATEGORY', 14);
48 define('NS_CATEGORY_TALK', 15);
49 /**#@-*/
50
51 /**
52 * Available feeds objects
53 * Should probably only be defined when a page is syndicated ie when
54 * $wgOut->isSyndicated() is true
55 */
56 $wgFeedClasses = array(
57 'rss' => 'RSSFeed',
58 'atom' => 'AtomFeed',
59 );
60
61 /** Maths constants */
62 define( 'MW_MATH_PNG', 0 );
63 define( 'MW_MATH_SIMPLE', 1 );
64 define( 'MW_MATH_HTML', 2 );
65 define( 'MW_MATH_SOURCE', 3 );
66 define( 'MW_MATH_MODERN', 4 );
67 define( 'MW_MATH_MATHML', 5 );
68
69 /**
70 * User rights management
71 * a big array of string defining a right, that's how they are saved in the
72 * database.
73 */
74 $wgAvailableRights = array('read', 'edit', 'move', 'delete', 'undelete',
75 'protect', 'block', 'userrights', 'grouprights', 'createaccount', 'upload',
76 'asksql', 'rollback', 'patrol', 'editinterface', 'siteadmin', 'bot', 'validate',
77 'import');
78
79 /**
80 * Cache type
81 */
82 define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works
83 define( 'CACHE_NONE', 0 ); // Do not cache
84 define( 'CACHE_DB', 1 ); // Store cache objects in the DB
85 define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers
86 define( 'CACHE_ACCEL', 3 ); // eAccelerator or Turck, whichever is available
87
88 ?>