function FF_getSignature($tagline, $signature, $postmode = 'html') { global $_CONF, $_FF_CONF, $_TABLES; USES_lib_bbcode(); $retval = ''; $sig = ''; if ($_FF_CONF['bbcode_signature'] && $signature != '') { $retval = '<div class="signature">' . BBC_formatTextBlock($signature, 'text') . '</div><div style="clear:both;"></div>'; } else { if (!empty($tagline)) { if ($postmode == 'html') { $retval = nl2br($tagline); } else { $retval = nl2br($tagline); } $retval = '<strong>' . $retval . '</strong>'; } } return $retval; }
// | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software Foundation, | // | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | // | | // +--------------------------------------------------------------------------+ require_once '../lib-common.php'; if (!in_array('forum', $_PLUGINS)) { COM_404(); exit; } if (COM_isAnonUser() || $_FF_CONF['bbcode_signature'] == 0) { return ''; } USES_forum_functions(); USES_forum_format(); USES_lib_bbcode(); $retval = ''; if (isset($_POST['signature'])) { $signature = $_POST['signature']; } else { $signature = ''; } $preview_sig = BBC_formatTextBlock($signature, 'text'); header("Cache-Control: no-store, no-cache, must-revalidate"); header("content-type: text/xml"); print $preview_sig;