Eye module improvements with other minor improvements
[openemr.git] / library / ajax / user_settings.php
blobb948b1b3795adfe0242dc2e1362c89ec38c85b9f
1 <?php
2 // Copyright (C) 2010 Brady Miller <brady.g.miller@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 //
10 // This file contains functions that manage custom user
11 // settings
16 require_once(dirname(__FILE__) . "/../../interface/globals.php");
17 require_once(dirname(__FILE__) . "/../user.inc");
19 //If 'mode' is either a 1 or 0 and 'target' ends with _expand
20 // Then will update the appropriate user _expand flag
21 if (( $_POST['mode'] == 1 || $_POST['mode'] == 0 ) && ( substr($_POST['target'], -7, 7) == "_expand" )) {
22 //set the user setting
23 setUserSetting($_POST['target'], $_POST['mode']);
26 //mdsupport : Generic user setting
27 if ((isset($_POST['lab'])) && (isset($_POST['val']))) {
28 setUserSetting($_POST['lab'], $_POST['val']);