Badges

'; } elseif (strtotime($profile_join_date) <= 1608422400) { echo ''; } elseif (strtotime($profile_join_date) <= 1609459200) { echo ''; } if (!str_contains($profile_badge, '0')) { echo $profile_badge; } //Paste count badges if ($profile_total_public <= 4) { echo ''; } elseif (($profile_total_public >= 5) && ($profile_total_public <= 24)) { echo ''; } elseif (($profile_total_public >= 25) && ($profile_total_public <= 49)) { echo ''; } elseif (($profile_total_public >= 50) && ($profile_total_public)) { echo ''; } //Pasteviews badges if (($profile_total_paste_views >= 1000) && ($profile_total_paste_views <= 2999)) { echo ''; } elseif (($profile_total_paste_views >= 2000) && ($profile_total_paste_views <= 2999)) { echo ''; } elseif (($profile_total_paste_views >= 3000) && ($profile_total_paste_views <= 4999)) { echo ''; } elseif (($profile_total_paste_views >= 5000) && ($profile_total_paste_views <= 9999)) { echo ''; } elseif (($profile_total_paste_views >= 10000) && ($profile_total_paste_views <= 49999)) { echo ''; } elseif ($profile_total_paste_views >= 50000) { echo ''; } if (($profile_total_unlisted >= 5) && ($profile_total_unlisted <= 9)) { echo ''; } elseif ($profile_total_unlisted >= 10) { echo ''; } ?>
' . $success . '
'; } // Errors elseif (isset($error)) { echo '
' . $error . '
'; } } ?> username === $profile_username) { ?>



" . $lang['visibility'] . ""; } ?> " . $lang['delete'] . ""; } ?> " . $lang['visibility'] . ""; } ?> " . $lang['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 => $lang['public'], 1 => $lang['unlisted'], 2 => $lang['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 { echo ''; } } ?>
' . ($title) . ' ' . $p_dateui . ' ' . $p_views . ' '; if (strlen($p_tags) > 0) { foreach ($tagArray as $tags) { echo '' . trim($tags) . ''; } } else { echo ' No tags'; } echo '
' . ($title) . ' ' . $p_dateui . ' ' . $p_visible . ' ' . $p_views . ' ' . strtoupper($p_code) . '
" . $lang['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 ''; } } ?>
' . ($ftitle) . ' ' . $f_dateui . ' ' . $updatenote . ' '; if (strlen($f_tags) > 0) { foreach ($tagArray2 as $tags) { echo '' . trim($tags) . ''; } } else { echo ' No tags'; } echo '