3 * PHPwikiBot Definitions
6 * @name Standard Definitions
7 * @license http://www.gnu.org/licenses/gpl.html GPLv3+
15 define('INC', dirname(__FILE__).'/');
18 * PHPwikiBot's version
20 define('PWB_VERSION', 0.1);
22 /** Command line or HTML */
23 define('CLI', (PHP_SAPI == 'cli' || PHP_SAPI == 'embed'));
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
30 define('EOL', CLI ? PHP_EOL : '<br />'.PHP_EOL);
32 /** Windows Specific Functions */
33 define('WIN32', (substr(PHP_OS, 0, 3) == 'WIN'));
37 define('LG_DEBUG', 0);
38 /**Information level*/
41 define('LG_NOTICE', 2);
45 define('LG_ERROR', 4);
46 /**Fatal Error level*/
47 define('LG_FATAL', 5);