2 // Copyright (C) 2010 Brady Miller <brady@sparmy.com>
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.
10 // This file contains functions that manage custom user
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']);