fix: set default x12 partner for item in billing manager (#7502)
[openemr.git] / library / ajax / turnoff_birthday_alert.php
blobfdeb62b2deb3261764727e614ec795f29774eca1
1 <?php
3 /**
4 * Turn off/on Birthday alert .
6 * @package OpenEMR
7 * @link https://www.open-emr.org
8 * @author Sharon Cohen <sharonco@matrix.co.il>
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2017 Sharon Cohen <sharonco@matrix.co.il>
11 * @copyright Copyright (c) 2017-2018 Brady Miller <brady.g.miller@gmail.com>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 require_once(dirname(__FILE__) . "/../../interface/globals.php");
17 use OpenEMR\Common\Csrf\CsrfUtils;
18 use OpenEMR\Reminder\BirthdayReminder;
20 if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
21 CsrfUtils::csrfNotVerified();
24 if (!empty($_POST['pid']) && !empty($_POST['user_id'])) {
25 $birthdayReminder = new BirthdayReminder($_POST['pid'], $_POST['user_id']);
26 $birthdayReminder->birthdayAlertResponse($_POST['turnOff']);