Put full config available to javascript

This commit is contained in:
Isaac Connor 2022-01-22 12:07:12 -05:00
parent 4eb4e0eb18
commit 45db266ede
1 changed files with 7 additions and 0 deletions

View File

@ -105,3 +105,10 @@ stateStrings[STATE_PREALARM] = "<?php echo translate('Prealarm') ?>";
stateStrings[STATE_ALARM] = "<?php echo translate('Alarm') ?>";
stateStrings[STATE_ALERT] = "<?php echo translate('Alert') ?>";
stateStrings[STATE_TAPE] = "<?php echo translate('Record') ?>";
<?php
global $config;
foreach ($config as $name=>$c) {
echo $name . ' = \''.$c['Value'].'\''.PHP_EOL;
}
?>