'[ProbablyAutistic] Have more than Fifty pastes', 25 => '[Writefag] Have Twenty Five or more pastes', 5 => '[NewWritefag] Have Five or more pastes', 0 => '[NewFriend] Have less than Five pastes', ]; $unlisted_paste_badges = [ 10 => '', 5 => '' ]; $paste_view_badges = [ 50000 => '[HorseAyylmao] Have more than 50,000 total views', 10000 => '[HorseIlluminatii] Have more than 10,000 total views', 5000 => '[HorseMaster] Have more than 5000 total views', 3000 => '[Horseidol] Have more than 3000 total views', 2000 => '[HorseFamous] Have more than 2000 total views', 1000 => '[HorseWriter] Have more than 1000 total views' ]; function outputBadges(array $badgeCandidates, int $actualValue, string $imagePrefix) { foreach ($badgeCandidates as $threshold => $badgeTitle) { if ($actualValue >= $threshold) { echo "$badgeTitle"; break; } } } ?>

's Pastes

joined:

Badges

'; } elseif (strtotime($profile_join_date) <= 1608422400) { echo ''; } elseif (strtotime($profile_join_date) <= 1609459200) { echo ''; } if (!str_contains($profile_badge, '0')) { echo $profile_badge; } outputBadges($public_paste_badges, $profile_total_public, 'total_pastes'); outputBadges($paste_view_badges, $profile_total_paste_views, 'total_views'); if (($profile_total_unlisted >= 5) && ($profile_total_unlisted <= 9)) { echo ''; } elseif ($profile_total_unlisted >= 10) { echo ''; } ?>
' . pp_html_escape($success) . '
'; } foreach ($flashes['error'] as $error) { echo '
' . pp_html_escape($error) . '
'; } ?> username === $profile_username): ?> Some of your statistics:
Total pastes: — Total public pastes: — Total unlisted pastes: — Total private pastes: — Total views of all your pastes:
Total favourites of all your pastes: — Total favorites you have given:

Visibility"; } ?> Delete"; } ?> format("d F Y"); $p_views = Trim($row['views']); $p_visible = intval($row['visible']); $tagArray = array_map(function ($tag) { return $tag['name']; }, getPasteTags($conn, $p_id)); $p_tags = implode(',', $tagArray); $p_visible = match ($p_visible) { 0 => 'Public', 1 => 'Unlisted', 2 => 'Private' }; $p_link = urlForPaste($p_id); $p_delete_message = "'Are you sure you want to delete this paste?'"; $p_delete_link = (PP_MOD_REWRITE) ? "user.php?del&user=$profile_username&id=$p_id" : "user.php?del&user=$profile_username&id=$p_id"; $p_tag_link = (PP_MOD_REWRITE) ? "user.php?user=$profile_username&q=$p_tags" : "user.php?user=$profile_username&q=$tags"; $title = truncate($title, 20, 50); // Guests only see public pastes if (!$is_current_user) { if ($row['visible'] == 0) { echo ''; } } else { ?> Visibility"; } ?> Delete"; } ?>
Title Paste Time Views Tags
' . ($title) . ' ' . $p_dateui . ' ' . $p_views . ' '; if (strlen($p_tags) > 0) { echo tagsToHtmlUser($p_tags,$profile_username); } else { echo ' No tags'; } echo '
Title Paste Time Views Tags
Delete"; //} ?> format("d F Y"); $Recent_update = new DateTime($row['updated_at']); $Recent_update_u = date_format($Recent_update, 'U'); $tagArray2 = array_map(function ($tag) { return $tag['name']; }, getPasteTags($conn, $f_id)); $f_tags = implode(',', $tagArray2); //$p_link = ($mod_rewrite == '1') ? "$f_id" : "paste.php?favdel=$fu_id"; //$f_delete_link = ($mod_rewrite == '1') ? "user.php?favdel&user=$profile_username&fid=$f_id" : "user.php?favdel&user=$profile_username&fid=$f_id"; $title = truncate($title, 20, 50); $current_time = time(); $past = strtotime('-2 day', $current_time); if ($past <= $Recent_update_u && $Recent_update_u <= $current_time) { $updatenote = ""; } else { $updatenote = ""; } echo ''; } } ?>
Title Date Favourited Status Tags
' . ($ftitle) . ' ' . $f_dateui . ' ' . $updatenote . ' '; if (strlen($f_tags) > 0) { echo tagsToHtmlUser($f_tags,$profile_username); } else { echo ' No tags'; } echo '