Request any Version of JCMS with Shoubox or Chatbox

348
.
Request any Version of JCMS FULL MOD with Shoubox or Chatbox. Anyone can share? Pls?
.
defined('_IN_JOHNCMS') or die('Error: restricted access');
$r=rand(1000,9999);
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `guest` WHERE `adm`='0'"), 0);
if ($user_id && !$ban['13']) {
    echo '<div class="phdr"><b>ShoutBox</b> (' . counters::guestbook() . ')</div>';
    if ($total) {
        $req = mysql_query("SELECT `guest`.*, `guest`.`id` AS `gid`, `users`.`rights`, `users`.`lastdate`, `users`.`sex`,  `users`.`datereg`, `users`.`id`
FROM `guest` LEFT JOIN `users` ON `guest`.`user_id` = `users`.`id`
WHERE `guest`.`adm`='0' ORDER BY `time` DESC LIMIT 2");
        while ($res = mysql_fetch_array($req)) {
            echo $i % 2 ? '<div class="list1">' : '<div class="list1">';
    $arg = array(
        'iphide'    => 1,
        'header'    => '<br/>(<i>' . functions::display_date($res['time']) . '</i>)'
    );
            echo functions::display_user($res, $arg);
            
            $text = htmlentities($res['text'], ENT_QUOTES, 'UTF-8');
            $post = bbcode::tags($post);
            $post = str_replace("\r\n", "<br />", $post);
            if ($res['user_id']) {
                $post = functions::checkout(mb_substr($res['text'], 0, 250), 1, 1);
                $post = functions::smileys($post, $res['rights'] >= 1 ? 1 : 0);
            }
            echo $post;
            if (mb_strlen($res['text']) > 250) {
                echo '... <a href="../guestbook/index.php">Więcej</a>';
            }
            echo '</div>';
            ++$i;
        }
    } else {
        echo '<div class="menu">Na czacie pustynia...</div>';
    }
    echo '<div class="list2" align="center"><table width="90%"><tr><td><a href="index.php?r='.rand(1000,9999).'">Odśwież</a> </td><td> <a href="/pages/faq.php?act=smileys">Emotikony</a> </td><td> <a href="../guestbook">Czat</a></td></tr></table></div>';
}
.
where should we put this code?
.
In mainmenu.php ;)
Всего: 4