1
0
moha/constants.php

30 lines
494 B
PHP
Raw Normal View History

2022-01-19 00:22:34 +01:00
<?php
//Constants
2022-02-07 16:58:42 +01:00
define("EOL", "\n");
define("EOLR", "\n\r");
2022-03-04 22:30:16 +01:00
define("EOLH", "<br>\n");
2022-01-19 00:22:34 +01:00
define("Z2M", "zigbee2mqtt");
2022-02-23 10:23:16 +01:00
define("ON", true);
define("OFF", false);
2022-01-19 00:22:34 +01:00
define("AUTO", 0);
define("MANUAL", 1);
$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);
?>