Additional Info |
---|
Type
|
Package ID
Deep:SMF_Shoutbox_LanguagePack
|
First Created
March 08, 2006, 09:37:22 AM
|
Last Updated
March 18, 2008, 01:18:24 PM
|
// display shoutbox
if (function_exists('sbox')) sbox();
// Show the "Board name Topics Posts Last Post" header.
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
<tr class="titlebg">
<td colspan="2">', $txt[20], '</td>
<td width="6%" align="center">', $txt[330], '</td>
<td width="6%" align="center">', $txt[21], '</td>
<td width="22%" align="center">', $txt[22], '</td>
</tr>';
// display shoutbox
if (function_exists('sbox')) sbox();
// Show the "Board name Topics Posts Last Post" header.
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
<tr class="titlebg">
<td colspan="2">', $txt[20], '</td>
<td width="6%" align="center">', $txt[330], '</td>
<td width="6%" align="center">', $txt[21], '</td>
<td width="22%" align="center">', $txt[22], '</td>
</tr>';
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_sb = ', empty($options['collapse_header_sb']) ? 'false' : 'true', ';
function shrinkHeaderSB(mode)
{';
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkSB=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_sb", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink_sb").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderSB").style.display = mode ? "none" : "";
current_header_sb = mode;
}
// ]]></script>
// handle spacial characters
$content=addslashes($content);
// handle special characters
$content=addslashes($content);
// enquote html and script code to avoid html/javascript injection
$content = htmlentities($content, ENT_QUOTES);