$birthday = explode("-", $data['user_birthdate']); $age = strftime("%Y") - $birthday[0]; if (strftime("%m") < $birthday[1]) { $age--; } elseif (strftime("%m") == $birthday[1]) { if (strftime("%d") < $birthday[2]) { $age--; } } echo "<br /><span class='small'><strong>" . $locale['fb512'] . "</strong> {$age}</span>\n"; } echo showWarning($data['user_id']); echo "<br /></td>"; echo "<td valign='top' class='tbl2' style='height:1px; margin-top:2px; padding:10px;' colspan='2'><div style='float:right' class='small'><a href='#post_" . $data['post_id'] . "' name='post_" . $data['post_id'] . "' id='post_" . $data['post_id'] . "'>#" . ($current_row + $_GET['rowstart']) . "</a></div>\n"; echo "<span style='font-size:18px; font-weight:bold;'><a href='" . BASEDIR . "profile.php?lookup=" . $data['user_id'] . "'>" . showLabel($data['user_id'], false, "post") . "</a>"; renderAwards($data['user_id']); echo "</span>"; echo $title; renderMods(false, true); echo "</span>"; echo "</td></tr><tr><td class='tbl1' colspan='2' valign='top' style='padding:8px;'>\n"; if (iMOD) { echo "<div style='float:right'><input type='checkbox' name='delete_post[]' value='" . $data['post_id'] . "' /></div>\n"; } if (isset($_GET['highlight'])) { $words = explode(" ", urldecode($_GET['highlight'])); $message = parseubb(highlight_words($words, $message)); } else { $message = parseubb($message); } if ($current_row == 1) {
echo "<a href='" . BASEDIR . "profile.php?lookup=" . $data['user_id'] . "' style='font-size:12px;'>" . showLabel($data['user_id'], false, "post") . "</a><br />"; if ($fb4['user_titles_posts'] && $fb4['user_titles']) { $titleLookup = dbquery("select * from " . $db_prefix . "fb_titles where title_id='" . $data['user_title'] . "' and (" . useraccess("title_access") . ")"); if (dbrows($titleLookup)) { $titleData = dbarray($titleLookup); $title = stripslash($titleData['title_title']); } else { $title = stripslash($data['user_title']); } } else { $title = getusergroups($data['user_id']); } echo "<span class='small'>" . $title . "</span><br />"; renderMods(true, false); echo "<br /><br />"; renderAwards($data['user_id'], "", "<br /><br />"); echo "<!--forum_thread_user_info-->" . $locale['502'] . " <span class='alt'>" . $data['user_posts'] . "</span><br />\n"; echo "" . $locale['504'] . " <span class='alt'>" . showdate("%d.%m.%y", $data['user_joined']) . "</span>\n"; if ($data['user_location']) { echo "<br />" . $locale['fb500'] . ": <span class='alt'>" . stripslash($data['user_location']) . "</span>\n"; } if ($data['user_birthdate'] !== "0000-00-00") { $birthday = explode("-", $data['user_birthdate']); $age = strftime("%Y") - $birthday[0]; if (strftime("%m") < $birthday[1]) { $age--; } elseif (strftime("%m") == $birthday[1]) { if (strftime("%d") < $birthday[2]) { $age--; } }