minor fix to previous CDR engine report improvement
[openemr.git] / library / ajax / user_settings.php
blobff206a678bde18305851edd3827b0514780745ee
1 <?php
2 // Copyright (C) 2010 Brady Miller <brady@sparmy.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
14 //SANITIZE ALL ESCAPES
15 $sanitize_all_escapes=true;
18 //STOP FAKE REGISTER GLOBALS
19 $fake_register_globals=false;
22 require_once(dirname(__FILE__) . "/../../interface/globals.php");
23 require_once(dirname(__FILE__) . "/../user.inc");
25 //If 'mode' is either a 1 or 0 and 'target' ends with _expand
26 // Then will update the appropriate user _expand flag
27 if (( $_POST['mode'] == 1 || $_POST['mode'] == 0 ) && ( substr($_POST['target'], -7, 7) == "_expand" )) {
29 //set the user setting
30 setUserSetting($_POST['target'], $_POST['mode']);