$usr->setProfiles($profile); } $a = $usr->updateProfiles(); if ($useSGU) { $usr->loadUser($_COOKIE['userToken']); } else { $usr->loadUser($_COOKIE['userID']); } header("Location: /"); break; default: $usr = new UserClass(); $profiles = array(new UserProfileClass(), new UserProfileClass(), new UserProfileClass()); if (isset($_REQUEST['id']) && isset($_COOKIE['userID'])) { if ($useSGU) { $usr->loadUser($_COOKIE['userToken']); } else { $usr->loadUser($_COOKIE['userID']); } $profiles = $usr->getProfiles(); } break; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> <?php if ($usr->getID() != 0) {
header($redirectCommand); } else { $login_error = 1; session_write_close(); } // userValid } // acao } // userID $id = $_COOKIE['userID']; ob_start(); if ($usr->loadUser($id) == 0) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> SciELO.org - Scientific Electronic Library Online </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Expires" content="-1" /> <meta http-equiv="pragma" content="no-cache" /> <meta name="robots" content="all" /> <meta name="MSSmartTagsPreventParsing" content="true" />