profile()->setRealname($_POST['name']); } if (isset($_POST['hobbie'])) { User::getInstance()->profile()->setInfo($_POST['hobbie']); } if (isset($_POST['oldpsw']) && isset($_POST['newpsw'])) { User::getInstance()->profile()->changePassword($_POST['oldpsw'], $_POST['newpsw']); } if (!empty($_POST)) { echo User::getInstance()->profile()->save(); } Template::header('Анкета'); ?> ← на главную