pandorafms/pandora_console/include/ajax/config.ajax.php

18 lines
318 B
PHP
Raw Normal View History

<?php
$token_name = get_parameter('token_name', 0);
2022-09-23 13:24:46 +02:00
$no_boolean = (bool) get_parameter('no_boolean', 0);
$value_token = db_get_value(
'value',
'tconfig',
'token',
$token_name
);
2022-09-23 13:24:46 +02:00
if ($no_boolean === true) {
echo json_encode(io_safe_output($value_token));
} else {
echo (bool) $value_token;
}