while ($line = mysql_fetch_assoc($result)) { $line['line'] = stripslashes($line['line']); if (!CheckIgnore($line['ident'])) { if ($pJJChat_NoColor == "on") { $line['line'] = str_replace("color=", "", $line['line']); } echo str_replace("", "'", $line['line']); } } mysql_free_result($result); } } if ($lastpos > 0) { echo "<p><font color='{$servcol}'>"; echo $timer; echo date($dtcalc, GetLastMsg($realpath) + $tzone * 3600); echo " ({$nview})</font>"; } } else { echo $language[0]; } setcookie("pJJChat_Banned", "", 0); echo "<a name='down' id='down'></a>"; if ($_REQUEST['reverse'] == 'on') { echo <<<XSCRIPT <script type="text/javascript"> var down = document.getElementById('down'); if (down && down.scrollIntoView) { \tdown.scrollIntoView(); } </script>
if (in_array($mainsezval->ID, $hidesez)) { $divshow = 'none'; $divhide = 'show'; } else { $divshow = 'show'; $divhide = 'none'; } $sezcollector .= $mainsezval->ID . ","; echo "\r\n\r\n<div class=\"borderwrap\" style=\"display:{$divhide}\" id=\"divhide_{$mainsezval->ID}\">\r\n\t<div class=\"maintitlecollapse\">\r\n\t\t<p class=\"expand\"><a href=\"javascript:ShowHideSection({$mainsezval->ID}, 0,'{$_SERVER['sesname']}');\"><img src='img/exp_plus.gif' border='0' alt='Expand' /></a></p>\r\n\t\t<p><a href='sezioni.php?SEZID={$mainsezval->ID}'>{$mainsezval->SEZ_NAME}</a></p>\r\n\t</div>\r\n</div>\r\n\r\n<div class='borderwrap' style=\"display:{$divshow}\" id=\"divshow_{$mainsezval->ID}\">\r\n <div class='maintitle' >\r\n <p class='expand'><a href=\"javascript:ShowHideSection({$mainsezval->ID}, 1,'{$_SERVER['sesname']}');\"><img src='img/exp_minus.gif' border='0' alt='Collapse' /></a></p>\r\n <p><a href='sezioni.php?SEZID={$mainsezval->ID}'>{$mainsezval->SEZ_NAME}</a></p>\r\n </div>"; echo "\r\n <table cellspacing=\"1\">\r\n <tr>\r\n <th align=\"left\" width=\"40%\" colspan=\"2\" class='titlemedium'>" . $lang['col_forum'] . "</th>\r\n <th align=\"center\" width=\"1%\" class='titlemedium'>" . $lang['col_topic'] . "</th>\r\n <th align=\"center\" width=\"1%\" class='titlemedium'>" . $lang['col_replies'] . "</th>\r\n <th align=\"left\" width=\"39%\" class='titlemedium'>" . $lang['col_lastpost'] . "</th>\r\n </tr>\r\n "; $mainzedid = $mainsezval->ID; $query = "SELECT * FROM " . $_SERVER["sesname"] . "_sez WHERE figlio={$mainzedid} ORDER BY ordine;"; $sez = $db->get_results($query); if ($sez) { foreach ($sez as $sezval) { $MSG = GetLastMsg($sezval->ID); //Default value $write_date = $MSG->time_action ? $std->PostDate($MSG->time_action) : ''; $hash = $MSG->hash ? unpack("H32alfa", $MSG->hash) : ''; $nickhash = $MSG->nickhash ? unpack("H32alfa", $MSG->nickhash) : ''; if (strlen($MSG->TITLE) > 50) { $msg = substr($MSG->TITLE, 0, 50) . "..."; } else { $msg = $MSG->TITLE; } $notfirst = 0; $subsections = ""; $querysubs = "SELECT ID, SEZ_NAME FROM " . $_SERVER["sesname"] . "_sez WHERE FIGLIO={$sezval->ID} ORDER BY ordine;"; $subsez = $db->get_results($querysubs); if ($subsez) { foreach ($subsez as $subsezval) {