0 ? $p : 1; $fl=file($forum_dir[$forum_id]); $all=count($fl)-1; $a=$all-($p*$s-$s); $b=$all-($p*$s-1); include("header.php"); echo<<
$title

$up


END; if ($forum_ann[$forum_id]) { echo<<
$l_forum_ann
$forum_ann[$forum_id]
END; } echo<< END; echo in_array($forum_id,$locked_forum) ? "$l_enter_pw": "$l_newpost"; echo<<
$l_pg_a $p $l_pg_b / END; //Page jump $pm=($all+1)/$s; $pn=intval(($all+1)/$s); echo "
"; echo<<$title $l_index
-> $forum_name[$forum_id]
END; if (empty($fl)) { echo<< END; } for ($i=$a;$i>=$b;$i--) { $boardarray=explode("|-|",$fl[$i]); if ($i<0) { break; } while($boardarray[7]=="") { $i--; $boardarray=explode("|-|",$fl[$i]); if ($i<0) { break; } } $j=$i+1; //Replace for ($r=0;$r<=6;$r+=6) { $boardarray[$r]=htmlspecialchars($boardarray[$r]); $boardarray[$r]=str_replace("&#","&#","$boardarray[$r]"); $boardarray[$r]=stripslashes($boardarray[$r]); } $boardarray[7]=htmlspecialchars($boardarray[7]); $boardarray[7]=str_replace("&#","&#","$boardarray[7]"); $boardarray[7]=stripslashes($boardarray[7]); $boardarray[7]=str_replace($rpc1,$rpc2,"$boardarray[7]"); $k=0; while ($smile[$k]) { $temp[0]=$smile[$k][0]; $temp[1]=$smile[$k][1]; $temp[2]=$smile[$k][2]; $boardarray[7]=str_replace($temp[0],"$temp[2]",$boardarray[7]); $k++; } $boardarray[7]=str_replace("<br />","
","$boardarray[7]"); $boardarray[7]=str_replace("<br>","
","$boardarray[7]"); echo<<"; } echo "
$l_post_author $l_post_detail
$l_forum_empty
  $boardarray[0]
$j. END; if ($boardarray[6]) { echo<<$l_add_favorite END; } echo<< END; if ($boardarray[7]!=$l_deleted_post) { echo "$l_b_quote $l_edit_head $l_delete_post "; } $ip_a=explode(".",$boardarray[10]); $boardarray[10]=$ip_a[0] . "." . $ip_a[1] . "." . $ip_a[2] . ". *"; echo<<

$boardarray[7]
    $l_up
END; if ($boardarray[1]) { echo "$l_send_mail "; } //WWW set if ($boardarray[5]) { echo "$l_www "; } //Yim! set if ($boardarray[4]) { echo "$l_yim "; } //MSN Messenger set if ($boardarray[3]) { echo "$l_msn\r\n$boardarray[3] "; } //ICQ set if ($boardarray[2]) { echo "$l_icq"; } echo " $l_post_time$boardarray[9]
"; //forum jump echo "

$l_forum_jump: "; include("online.php"); echo "$copyright"; $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $temp=sprintf("%.5f",$endtime-$starttime); echo<<

$l_page_gen_time: $temp END; ?>