* @author Brady Miller * @copyright Copyright (c) 2017 Sharon Cohen * @copyright Copyright (c) 2017-2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once(dirname(__FILE__) . "/../../interface/globals.php"); use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Reminder\BirthdayReminder; if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) { CsrfUtils::csrfNotVerified(); } if (!empty($_POST['pid']) && !empty($_POST['user_id'])) { $birthdayReminder = new BirthdayReminder($_POST['pid'], $_POST['user_id']); $birthdayReminder->birthdayAlertResponse($_POST['turnOff']); }