Ignored unneeded files.
[phpwikibot.git] / stddef.inc
blob700ea1d700cbd7bfbabb9f21fbe54716862f3cae
1 <?php
2 /**
3  * PHPwikiBot Definitions
4  * @author Xiaomao
5  * @package PHPwikiBot
6  * @name Standard Definitions
7  * @license http://www.gnu.org/licenses/gpl.html GPLv3+
8  */
10 /**Definitions**/
12 /**
13  * The bot's location
14  */
15 define('INC', dirname(__FILE__).'/');
17 /**
18  * PHPwikiBot's version
19  */
20 define('PWB_VERSION', 0.1);
22 /** Command line or HTML */
23 define('CLI', (PHP_SAPI == 'cli' || PHP_SAPI == 'embed'));
25 /**
26  * Defines the end of line
27  * If it's command line or embed SAPI, we use the system's EOL
28  * If it's HTML, i.e. othe web server SAPI, we use <br / > plus system's EOL
29  */
30 define('EOL', CLI ? PHP_EOL : '<br />'.PHP_EOL);
32 /** Windows Specific Functions */
33 define('WIN32', (substr(PHP_OS, 0, 3) == 'WIN'));
35 /* Error levels */
36 /**Debug level*/
37 define('LG_DEBUG', 0);
38 /**Information level*/
39 define('LG_INFO', 1);
40 /**Notice level*/
41 define('LG_NOTICE', 2);
42 /**Warning level*/
43 define('LG_WARN', 3);
44 /**Error level*/
45 define('LG_ERROR', 4);
46 /**Fatal Error level*/
47 define('LG_FATAL', 5);