1
0
moha/constants.php
daniel Tartavel f8fc3f63ec - changed webserver to apiserver
- added webserver
- a lot of debugging
- install shell script
2022-04-07 01:44:17 +02:00

31 lines
513 B
PHP

<?php
//Constants
define("EOL", "\n");
define("EOLR", "\n\r");
define("EOLH", "<br>\n");
define("Z2M", "zigbee2mqtt");
define("ON", true);
define("OFF", false);
define("IDLE", 1);
define("AUTO", 2);
define("MANUAL", 3);
$logLevels = array(
1 => "INFO",
2 => "NOTICE",
4 => "WARNING",
8 => "ERROR",
16 => "DEBUG",
32 => "ALERT"
);
foreach ($logLevels as $key => $string)
{
define($string, $key);
}
$logLevels[6] = "NOTICE & WARNING";
define( "ALL", DEBUG | INFO | NOTICE | WARNING | ERROR | ALERT);
?>