2018-02-08 16:51:58 +01:00
|
|
|
<?php
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
$token_name = get_parameter('token_name', 0);
|
2022-09-23 13:24:46 +02:00
|
|
|
$no_boolean = (bool) get_parameter('no_boolean', 0);
|
2018-02-08 16:51:58 +01:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
$value_token = db_get_value(
|
|
|
|
'value',
|
|
|
|
'tconfig',
|
|
|
|
'token',
|
|
|
|
$token_name
|
|
|
|
);
|
2018-02-08 16:51:58 +01:00
|
|
|
|
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;
|
|
|
|
}
|