Example #1
0
    echo "            </td>\n";
    echo "          </tr>\n";
    echo "        </table>\n";
    echo "      </td>\n";
    echo "    </tr>\n";
    echo "    <tr>\n";
    echo "      <td align=\"left\">&nbsp;</td>\n";
    echo "    </tr>\n";
    echo "    <tr>\n";
    echo "      <td align=\"center\">", form_submit('addvote', gettext("Vote!")), "&nbsp;", form_submit('clearvote', gettext("Clear Vote")), "</td>\n";
    echo "    </tr>\n";
    echo "  </table>\n";
    echo "</form>\n";
    echo "<br />\n";
}
if (($comments_array = links_get_comments($lid)) !== false) {
    echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
    echo "    <tr>\n";
    echo "      <td align=\"left\">\n";
    echo "        <table class=\"box\" width=\"100%\">\n";
    echo "          <tr>\n";
    echo "            <td align=\"left\" class=\"posthead\">\n";
    echo "              <table class=\"posthead\" width=\"100%\">\n";
    foreach ($comments_array as $comment_id => $comment) {
        $profile_link = "<a href=\"user_profile.php?webtag={$webtag}&amp;uid={$comment['UID']}\" target=\"_blank\" class=\"popup 650x500\">";
        $profile_link .= word_filter_add_ob_tags(format_user_name($comment['LOGON'], $comment['NICKNAME']), true) . "</a>";
        if ($user_perm_links_moderate || $comment['UID'] == $_SESSION['UID']) {
            echo "                <tr>\n";
            echo "                  <td align=\"left\" class=\"subhead\">", sprintf(gettext("Comment by %s"), $profile_link), " <a href=\"links_detail.php?webtag={$webtag}&amp;delete_comment={$comment['CID']}&amp;lid={$lid}\" class=\"threadtime\">[", gettext("Delete"), "]</a></td>\n";
            echo "                </tr>\n";
        } else {
Example #2
0
    echo "            </td>\n";
    echo "          </tr>\n";
    echo "        </table>\n";
    echo "      </td>\n";
    echo "    </tr>\n";
    echo "    <tr>\n";
    echo "      <td align=\"left\">&nbsp;</td>\n";
    echo "    </tr>\n";
    echo "    <tr>\n";
    echo "      <td align=\"center\">", form_submit('addvote', gettext("Vote!")), "&nbsp;", form_submit('clearvote', gettext("Clear Vote")), "</td>\n";
    echo "    </tr>\n";
    echo "  </table>\n";
    echo "</form>\n";
    echo "<br />\n";
}
if ($comments_array = links_get_comments($lid)) {
    echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
    echo "    <tr>\n";
    echo "      <td align=\"left\">\n";
    echo "        <table class=\"box\" width=\"100%\">\n";
    echo "          <tr>\n";
    echo "            <td align=\"left\" class=\"posthead\">\n";
    echo "              <table class=\"posthead\" width=\"100%\">\n";
    foreach ($comments_array as $comment_id => $comment) {
        $profile_link = "<a href=\"user_profile.php?webtag={$webtag}&amp;uid={$comment['UID']}\" target=\"_blank\" class=\"popup 650x500\">";
        $profile_link .= word_filter_add_ob_tags(format_user_name($comment['LOGON'], $comment['NICKNAME']), true) . "</a>";
        if ($user_perm_links_moderate || $comment['UID'] == $uid) {
            echo "                <tr>\n";
            echo "                  <td align=\"left\" class=\"subhead\">", sprintf(gettext("Comment by %s"), $profile_link), " <a href=\"links_detail.php?webtag={$webtag}&amp;delete_comment={$comment['CID']}&amp;lid={$lid}\" class=\"threadtime\">[", gettext("Delete"), "]</a></td>\n";
            echo "                </tr>\n";
        } else {