ARE YOU KIDDING MEEEEEEEEEEEEEEEEEEEE
This commit is contained in:
parent
57b2674189
commit
105e0560bf
1 changed files with 163 additions and 161 deletions
|
@ -57,6 +57,7 @@ if ($isEditing) {
|
||||||
'background_attachments' => MSZ_USER_BACKGROUND_ATTACHMENTS_NAMES,
|
'background_attachments' => MSZ_USER_BACKGROUND_ATTACHMENTS_NAMES,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (!empty($_POST) && is_array($_POST)) {
|
||||||
if (!csrf_verify('profile', $_POST['csrf'] ?? '')) {
|
if (!csrf_verify('profile', $_POST['csrf'] ?? '')) {
|
||||||
$notices[] = MSZ_TMP_USER_ERROR_STRINGS['csrf'];
|
$notices[] = MSZ_TMP_USER_ERROR_STRINGS['csrf'];
|
||||||
} else {
|
} else {
|
||||||
|
@ -249,6 +250,7 @@ if ($isEditing) {
|
||||||
if (empty($notices)) {
|
if (empty($notices)) {
|
||||||
$isEditing = false;
|
$isEditing = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$profile = user_profile_get($userId);
|
$profile = user_profile_get($userId);
|
||||||
|
@ -290,7 +292,7 @@ switch ($profileMode) {
|
||||||
$following = user_relation_users_from($userId, MSZ_USER_RELATION_FOLLOW, $followingPagination['range'], $followingOffset, $currentUserId);
|
$following = user_relation_users_from($userId, MSZ_USER_RELATION_FOLLOW, $followingPagination['range'], $followingOffset, $currentUserId);
|
||||||
|
|
||||||
tpl_vars([
|
tpl_vars([
|
||||||
'title' => 'flash / following',
|
'title' => $profile['username'] . ' / following',
|
||||||
'canonical_url' => url('user-profile-following', ['user' => $userId]),
|
'canonical_url' => url('user-profile-following', ['user' => $userId]),
|
||||||
'profile_users' => $following,
|
'profile_users' => $following,
|
||||||
'profile_relation_pagination' => $followingPagination,
|
'profile_relation_pagination' => $followingPagination,
|
||||||
|
@ -311,7 +313,7 @@ switch ($profileMode) {
|
||||||
$followers = user_relation_users_to($userId, MSZ_USER_RELATION_FOLLOW, $followerPagination['range'], $followerOffset, $currentUserId);
|
$followers = user_relation_users_to($userId, MSZ_USER_RELATION_FOLLOW, $followerPagination['range'], $followerOffset, $currentUserId);
|
||||||
|
|
||||||
tpl_vars([
|
tpl_vars([
|
||||||
'title' => 'flash / followers',
|
'title' => $profile['username'] . ' / followers',
|
||||||
'canonical_url' => url('user-profile-followers', ['user' => $userId]),
|
'canonical_url' => url('user-profile-followers', ['user' => $userId]),
|
||||||
'profile_users' => $followers,
|
'profile_users' => $followers,
|
||||||
'profile_relation_pagination' => $followerPagination,
|
'profile_relation_pagination' => $followerPagination,
|
||||||
|
@ -332,7 +334,7 @@ switch ($profileMode) {
|
||||||
$topics = forum_topic_listing_user($userId, $currentUserId, $topicsOffset, $topicsPagination['range']);
|
$topics = forum_topic_listing_user($userId, $currentUserId, $topicsOffset, $topicsPagination['range']);
|
||||||
|
|
||||||
tpl_vars([
|
tpl_vars([
|
||||||
'title' => 'flash / topics',
|
'title' => $profile['username'] . ' / topics',
|
||||||
'canonical_url' => url('user-profile-forum-topics', ['user' => $userId]),
|
'canonical_url' => url('user-profile-forum-topics', ['user' => $userId]),
|
||||||
'profile_topics' => $topics,
|
'profile_topics' => $topics,
|
||||||
'profile_topics_pagination' => $topicsPagination,
|
'profile_topics_pagination' => $topicsPagination,
|
||||||
|
|
Loading…
Add table
Reference in a new issue