3 * This file contains functions that manage custom user
7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2010-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__
) . "/../user.inc");
17 if (!verifyCsrfToken($_POST["csrf_token_form"])) {
21 //If 'mode' is either a 1 or 0 and 'target' ends with _expand
22 // Then will update the appropriate user _expand flag
23 if (( $_POST['mode'] == 1 ||
$_POST['mode'] == 0 ) && ( substr($_POST['target'], -7, 7) == "_expand" )) {
24 //set the user setting
25 setUserSetting($_POST['target'], $_POST['mode']);
28 //mdsupport : Generic user setting
29 if ((isset($_POST['lab'])) && (isset($_POST['val']))) {
30 setUserSetting($_POST['lab'], $_POST['val']);
34 if ((isset($_POST['target'])) && (isset($_POST['setting']))) {
35 setUserSetting($_POST['target'], $_POST['setting']);