.
////////////////////////////////////////////////////////////////////////////////
// Last modified 05/aug/2012 by cassio@ime.usp.br
//optionlower.php: parte de baixo da tela de option.php, que eh igual para
// todos os usuarios
require_once("globals.php");
if(!ValidSession()) { // || $_SESSION["usertable"]["usertype"] == 'team') {
InvalidSession("optionlower.php");
ForceLoad("index.php");
}
$loc = $_SESSION['loc'];
if (isset($_GET["username"]) && isset($_GET["userfullname"]) && isset($_GET["userdesc"]) &&
isset($_GET["passwordo"]) && isset($_GET["passwordn"])) {
$username = myhtmlspecialchars($_GET["username"]);
$userfullname = myhtmlspecialchars($_GET["userfullname"]);
$userdesc = myhtmlspecialchars($_GET["userdesc"]);
$passwordo = $_GET["passwordo"];
$passwordn = $_GET["passwordn"];
DBUserUpdate($_SESSION["usertable"]["contestnumber"],
$_SESSION["usertable"]["usersitenumber"],
$_SESSION["usertable"]["usernumber"],
$_SESSION["usertable"]["username"], // $username, but users should not change their names
$userfullname,
$userdesc,
$passwordo,
$passwordn);
ForceLoad("option.php");
}
$a = DBUserInfo($_SESSION["usertable"]["contestnumber"],
$_SESSION["usertable"]["usersitenumber"],
$_SESSION["usertable"]["usernumber"]);
?>