chore: complete integration of flex-3.20 (alpine 3.20) into ci (#7538)
[openemr.git] / library / ajax / collect_new_report_id.php
blobe8dd897e03a0a9cfec93b3fe83d6e49ded56e02b
1 <?php
3 /**
4 * Collect/bookmark a new report id in report_results sql table.
6 * @package OpenEMR
7 * @link https://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2012-2018 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once(dirname(__FILE__) . "/../../interface/globals.php");
14 require_once(dirname(__FILE__) . "/../report_database.inc.php");
16 use OpenEMR\Common\Csrf\CsrfUtils;
18 if (!CsrfUtils::verifyCsrfToken($_GET["csrf_token_form"])) {
19 CsrfUtils::csrfNotVerified();
22 // Collect/bookmark a new report id in report_results sql table and send it back.
23 echo bookmarkReportDatabase();