You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1008 B
31 lines
1008 B
<?php |
|
|
|
/** |
|
* i18n_generator script |
|
* |
|
* @package OpenEMR |
|
* @link http://www.open-emr.org |
|
* @author Amiel Elboim <amielel@matrix.co.il> |
|
* @author Brady Miller <brady.g.miller@gmail.com> |
|
* @copyright Copyright (c) 2019 Amiel Elboim <amielel@matrix.co.il> |
|
* @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com> |
|
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 |
|
*/ |
|
|
|
require_once(__DIR__ . "/../../interface/globals.php"); |
|
|
|
use OpenEMR\Common\Csrf\CsrfUtils; |
|
|
|
if (!CsrfUtils::verifyCsrfToken($_GET["csrf_token_form"])) { |
|
CsrfUtils::csrfNotVerified(); |
|
} |
|
|
|
$sql = "SELECT c.constant_name, d.definition FROM lang_definitions as d |
|
JOIN lang_constants AS c ON d.cons_id = c.cons_id |
|
WHERE d.lang_id = ?"; |
|
$tarns = sqlStatement($sql, $_GET['lang_id']); |
|
$json = array(); |
|
while ($row = SqlFetchArray($tarns)) { |
|
$json[$row['constant_name']] = $row['definition']; |
|
} |
|
echo json_encode($json, JSON_UNESCAPED_UNICODE);
|
|
|