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.
27 lines
909 B
27 lines
909 B
<?php |
|
|
|
/** |
|
* Turn off/on Birthday alert . |
|
* |
|
* @package OpenEMR |
|
* @link https://www.open-emr.org |
|
* @author Sharon Cohen <sharonco@matrix.co.il> |
|
* @author Brady Miller <brady.g.miller@gmail.com> |
|
* @copyright Copyright (c) 2017 Sharon Cohen <sharonco@matrix.co.il> |
|
* @copyright Copyright (c) 2017-2018 Brady Miller <brady.g.miller@gmail.com> |
|
* @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']); |
|
}
|
|
|