Setup script bootstrapped with new theme selector - Take 2 (#2139)
[openemr.git] / library / ajax / rule_setting.php
blobecb0aea9a096023b483a8d6931ffc205cfe3aa1d
1 <?php
2 /**
3 * This file contains functions that manage custom user
4 * settings
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2011-2018 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 require_once(dirname(__FILE__) . "/../../interface/globals.php");
15 require_once(dirname(__FILE__) . "/../clinical_rules.php");
17 if (!verifyCsrfToken($_POST["csrf_token_form"])) {
18 csrfNotVerified();
21 //set the rule setting for patient (ensure all variables exist)
22 if ($_POST['rule'] && $_POST['type'] && $_POST['setting'] && $_POST['patient_id']) {
23 set_rule_activity_patient($_POST['rule'], $_POST['type'], $_POST['setting'], $_POST['patient_id']);