$ret .= "<td style=\"padding-right: 10px; float: left;\"><form action=\"friends.php\" method=\"POST\">\n"; $ret .= "<input type=\"hidden\" name=\"action\" value=\"delfriend\">\n"; $ret .= "<input type=\"hidden\" name=\"webid\" value=\"" . $_REQUEST['webid'] . "\">\n"; $ret .= "<input src=\"img/actions/remove.png\" type=\"image\" title=\"Remove friend\" name=\"submit\" value=\" Remove \">\n"; $ret .= "</form></td>\n"; } else { // add friend $ret .= "<td style=\"padding-right: 10px; float: left;\"><form action=\"friends.php\" method=\"POST\">\n"; $ret .= "<input type=\"hidden\" name=\"action\" value=\"addfriend\">\n"; $ret .= "<input type=\"hidden\" name=\"webid\" value=\"" . $_REQUEST['webid'] . "\">\n"; $ret .= "<input src=\"img/actions/add.png\" type=\"image\" title=\"Add friend\" name=\"submit\" value=\" Add \">\n"; $ret .= "</form></td>\n"; } } // send messages using the pingback protocol if ($person->get_pingback() != null) { $ret .= "<td style=\"padding-right: 10px; float: left;\"><form action=\"messages.php\" method=\"GET\">\n"; $ret .= "<input type=\"hidden\" name=\"new\" value=\"true\">\n"; $ret .= "<input type=\"hidden\" name=\"to\" value=\"" . $_REQUEST['webid'] . "\">\n"; $ret .= "<input src=\"img/actions/message.png\" type=\"image\" title=\"Send a message\" name=\"submit\" value=\" Message \" onclick=\"this.form.target='_blank';return true;\">\n"; $ret .= "</form></td>\n"; } // more functions if the user has previously subscribed to the local services if ($is_subscribed) { // Post on the user's wall $ret .= "<td style=\"padding-right: 10px; float: left;\"><form action=\"wall.php\" method=\"POST\">\n"; $ret .= "<input type=\"hidden\" name=\"user\" value=\"" . $person->get_hash() . "\">\n"; $ret .= "<input src=\"img/actions/wall.png\" type=\"image\" title=\"View posts\" name=\"submit\" value=\" Wall \" onclick=\"this.form.target='_blank';return true;\">\n"; $ret .= "</form></td>\n"; } $ret .= "</tr></table>\n";