header->subject); @header("Last-Modified: ".date("r", $message->header->date)); } $output_groups='
 '; $output_groups .= ''; $output_groups.='
'; include "left_table.php"; $output_groups.=''; $output_groups .= ''; $file=fopen("head.inc","r"); $output_head=fread($file,filesize("head.inc")); fclose($file); $output_head = str_replace('topSub','topSub'.rand(1, 8),$output_head); $tytulArtykulu = htmlspecialchars(trim($message->header->subject)); $tytulArtykulu = _strip_polish($tytulArtykulu); $tytulArtykulu = _strip_special($tytulArtykulu); $tytulArtykulu = str_replace(" ", ",", $tytulArtykulu); $tytulArtykulu = str_replace(",,", ",", $tytulArtykulu); require_once("../_godzilla/godzilla.php"); $output_head = str_replace('----godzilla----',godzilla(5,$id) ,$output_head); $output_head = str_replace('----tytul----',$message->header->subject,$output_head); $output_head = str_replace('----tytul_keywords----',$tytulArtykulu,$output_head); $output_groups = str_replace('---nazwa_grupy---',$group,$output_groups); echo $output_head; echo $output_groups; $tables = getCurrentTablesNames(); if (!$message) // article not found echo "Article not found!
"; else { if (count($tables)==1) { $query = "select header from $tables[0] WHERE autor='".$message->header->name."' and grupa_id=$global_group_id AND czas_wpisu>DATE_SUB(now(), INTERVAL 1 MONTH)"; } else if (count($tables)==2) { $query = "(select header from $tables[0] WHERE autor='".$message->header->name."' and grupa_id=$global_group_id AND czas_wpisu>DATE_SUB(now(), INTERVAL 1 MONTH)) UNION ALL (select header from $tables[1] WHERE autor='".$message->header->name."' and grupa_id=$global_group_id AND czas_wpisu>DATE_SUB(now(), INTERVAL 1 MONTH))"; } $result = mysql_query($query,$handle_db1); while ($row=mysql_fetch_array($result)) { $r = unserialize($row[0]); $headers[$r->id] = unserialize($row[0]); } if (count($headers)>0) uasort($headers,'thread_mycompare'); message_thread_pioro($group, $headers); } ?>