diff --git a/assets/css/style.css b/assets/css/style.css index fab84ad..a037781 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1076,9 +1076,14 @@ input[type="datetime-local"]::-webkit-calendar-picker-indicator { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; - align-items: start; + align-items: stretch; } +/* Kaesten nebeneinander gleich hoch, der Button sitzt jeweils unten auf gleicher Hoehe */ +.profile-card { display: flex; flex-direction: column; } +.profile-card-form { display: flex; flex-direction: column; flex: 1; } +.profile-card-button { margin-top: auto; width: 13rem; max-width: 100%; } + .discord-card { border: 1px solid var(--discord); background: linear-gradient(135deg, rgba(88, 101, 242, 0.16), var(--bg-panel) 65%); @@ -3283,6 +3288,19 @@ input.shop-approve-quantity { width: 72px; padding: 0.3rem 0.45rem; font-size: 0 } .tour-restart > div { flex: 1; } +.tour-restart-panel .tour-restart { min-height: 4.5rem; } +/* Beide Buttons (Link und Formular-Knopf) gleich gross */ +.tour-restart-button { + display: inline-flex; + align-items: center; + justify-content: center; + width: 15rem; + max-width: 100%; + min-height: 2.75rem; + padding: 0.6rem 1rem; + font-size: 1rem; + line-height: 1.2; +} .tour-restart h2 { margin: 0 0 0.2rem; } .tour-restart p { margin: 0; } diff --git a/includes/member_profile.php b/includes/member_profile.php index 8d0d4dd..f021307 100644 --- a/includes/member_profile.php +++ b/includes/member_profile.php @@ -10,6 +10,8 @@ declare(strict_types=1); const PROFILE_UPLOAD_DIR = __DIR__ . '/../assets/uploads/profiles/'; const PROFILE_UPLOAD_URL = '/assets/uploads/profiles/'; const PROFILE_MAX_CHARACTERS = 12; +// Hoechststufe eines Charakters in Aion 2 +const PROFILE_MAX_LEVEL = 45; const PROFILE_MAX_GALLERY = 30; const PROFILE_MAX_BIO = 10000; const PROFILE_MAX_UPLOAD = 8 * 1024 * 1024; diff --git a/member_action.php b/member_action.php index 854340f..1aa4065 100644 --- a/member_action.php +++ b/member_action.php @@ -68,7 +68,12 @@ switch ($action) { redirect($back); } $class = in_array($_POST['class_name'] ?? '', AION_CLASSES, true) ? $_POST['class_name'] : null; - $level = filter_var($_POST['level'] ?? '', FILTER_VALIDATE_INT, ['options' => ['min_range' => 1, 'max_range' => 999]]) ?: null; + $levelInput = trim((string) ($_POST['level'] ?? '')); + $level = filter_var($levelInput, FILTER_VALIDATE_INT, ['options' => ['min_range' => 1, 'max_range' => PROFILE_MAX_LEVEL]]) ?: null; + if ($levelInput !== '' && $level === null) { + set_flash('error', 'Die Stufe muss zwischen 1 und ' . PROFILE_MAX_LEVEL . ' liegen.'); + redirect($back); + } $note = mb_substr(trim((string) ($_POST['note'] ?? '')), 0, 255); $isMain = !empty($_POST['is_main']) ? 1 : 0; diff --git a/member_edit.php b/member_edit.php index c2190f6..27e90b4 100644 --- a/member_edit.php +++ b/member_edit.php @@ -42,7 +42,7 @@ function character_fields(array $c, string $prefix): void