Пример #1
0
} catch (Exception $e) {
    /* user not logged in */
    dgr_redirect('index.php');
}
$changeok = true;
if (isset($_POST['change_settings'])) {
    switch ($_POST['change_settings']) {
        case 1:
            $user->set_name($_POST['name']);
            $user->set_surname($_POST['surname']);
            $user->set_email($_POST['email']);
            $user->set_styleid($_POST['style']);
            $user->save();
            break;
        case 2:
            $changeok = $user->change_pass($_POST['curpass'], $_POST['pass']);
            break;
        default:
            break;
    }
}
$styles = dgr_get_styles();
$current_style = $user->get_styleid();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<title>DGrade - <?php