";
if(!$pgt) { $pgt=1; }
//if((count($posts)/$topics_per_page)>1) { d_topic(bottom); }
echo "\n";
if ($posts[0] == "") {
echo "$forum57 | ";
} else {
echo "$forum50 |
$forum51 |
$forum52 |
$forum12 |
$forum53 |
";
for($i=($topics_per_page*$pgt)-$topics_per_page;$i-5000) {
$v_icon = "";
} else { $v_icon = ""; }
@settype($stuff[replies], "integer");
$topic = listall("./archivi/$id/$stuff[id]");
$c1 = count($topic);
if ($c1 <= $posts_per_page) {
$num_pages = 1;
} else if (($c1 % $posts_per_page) == 0) {
$num_pages = ($c1 / $posts_per_page);
} else {
$num_pages = ($c1 / $posts_per_page) + 1;
}
$num_pages = (int) $num_pages;
if($num_pages == 1){
$r_ext = "";
} else {
$r_ext = "$forum54 : ";
for($m=1;$m<=$num_pages;$m++) {
$r_ext .= "$m ";
}
}
$locked= "";
if($sticky[$i]!="ok"){
$class="table";
$gifs="";
$inpp = "";
} else {
$inpp = "$forum113 : ";
$class="topic";
$gifs="";
}
echo "
|
$stuff[user] |
$stuff[replies] |
$stuff[last_post] $forum41 $stuff[user_name] |
$locked $gifs | ";
}
}
echo " ";
if((count($posts)/$topics_per_page)>1)d_topic(top);
echo " |
";
btab();
include "footer.php";
?>