> $w_forum[forum] > $w_topic[subject]"; include "header.php"; if($userprefs[1]==""&&$ingmem=="on") { htab2(); echo "

$web342

$web343

"; btab2(); } else { $topic = listall("db/$id/$t_id"); Contatore("db/$id/count.dtb",$t_id,1); $c1 = count($topic); if(!$pagina) {$pagina = 1;} 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($topic[0] == "") { htab2(); echo $forum60; btab2(); } else { //show header of topic htab("$w_topic[subject]"); echo "\n
"; $t_header = def($topic[0], "db/p_topic"); echo ""; } else { echo "$forum50 $forum41 $t_header[user_name] ($t_header[date])
$forum134 : $t_header[subject]"; } $x = 0; $y = 0; $l_file = @fopen("db/locked.dat", "r"); $read_l = @fread($l_file, filesize("db/locked.dat")); $info_l = @explode("<~>", $read_l); @fclose($l_file); for($lod=0;$lod<=count($info_l);$lod++){ if($info_l[$lod]=="id=$id&t_id=$t_id") { $locked_v="on"; break; } else { $locked_v="off"; } } $lf_file = @fopen("db/locked_f.dat", "r"); $read_lf = @fread($lf_file, filesize("db/locked.dat")); $info_lf = @explode("<~>", $read_lf); @fclose($lf_file); for($lodf=0;$lodf<=count($info_lf);$lodf++){ if($info_lf[$lodf]==$id) { $locked_f="on"; break; } else { $locked_f="off"; } } for($i=($pagina*$posts_per_page - $posts_per_page);$i<$c1;$i++) { if($y >= $posts_per_page) { break; } $stuff = def($topic[$i], "db/p_topic"); // display each post in the current topic if($i==0) { $class = "topic"; } else { if($x == 0) { $class = "table1"; $x++; } else { $class = "table2"; $x--; } } @$info = get($stuff[user_id], "db/users"); $v_file = @fopen("db/members/$stuff[user_name].dat", "r"); $read_m = @fread($v_file, filesize("db/members/$stuff[user_name].dat")); $info_m = explode("<~>", $read_m); if(@$info_m[4] == "1" ) { $status = $forum61; } elseif(@$info_m[4] == "2") { $status = $forum63; } elseif(@$info_m[4] == "3") { $status = $forum62; //admin } else { $status = $forum59; } if($stuff[user_name]==$admin_ugf) $status = $forum62; $edit = ""; if($locked_f=="on") { $locked_v="on"; } if($locked_v!="on"||$userprefs[1]==$user[0]) { if((sei_mod($userprefs[1])&&$m_liv2=="on")||$stuff[user_name]==$userprefs[1]||$userprefs[1]==$user[0]) { // pulsante edita $edit = "$spul".$dpul." "; } if($i>0) { if((sei_mod($userprefs[1])&&$m_liv3=="on")||$userprefs[1]==$user[0]) { // pulsante cancella $edit = "$spul".$dpul." ".$edit; } } } $msg = str_replace(" ", "   ", $stuff[message]); $msg = undo_format(faccine(upb_code(replaceimg2($msg)))); $msg = wordwrap($msg, 105, ' ', 1); //avatar unset ($m_mail,$m_http,$firma,$ava,$m_msg); if(file_exists("../".USEREP2.$stuff[user_name].DBEXT2)){ $dbmsg = ReadDBFields("../".USEREP2.$stuff[user_name].DBEXT2); if ($dbmsg[11][0] == "on" && $stuff[user_name]!= $userprefs[1]){ if(file_exists("../adm_msg_pop.php")) { $lmsg ="onclick='window.open(\"../adm_msg_pop.php?lng=$lng&action=1&to=".$stuff[user_name]."&from=".$userprefs[1]."\", \"msg$i\",\"width=570, height=500, top=70,left=200,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,resizable=1\");'"; } else{ $lmsg ="onclick='window.open(\"../adm_msg.php?lng=$lng&action=1&to=".$stuff[user_name]."&from=".$userprefs[1]."\", \"msg$i\",\"menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes\");'"; } $m_msg = "$spul$dpul"; } if ($dbmsg[10][0] == "on") { $em = BreakEMail($dbmsg[2][0]); $m_mail = "$spul$dpul"; } if ($dbmsg[20][0]) { $m_http = "$spul$dpul"; } if ($dbmsg[24][0] !='unknow.gif' && !empty($dbmsg[24][0])){ $ava ="\"\""; } elseif ($dbmsg[15][0] !="") { $ava ="\"\""; } else {$ava ="\"\""; } if (!empty($dbmsg[6][0])){ $dbmsg[6][0] = str_replace("<", "<", $dbmsg[6][0]); $dbmsg[6][0] = str_replace(">", ">", $dbmsg[6][0]); $dbmsg[6][0] = str_replace("<br />","
",$dbmsg[6][0]); $dbmsg[6][0] = wordwrap($dbmsg[6][0], 105, ' ', 1); $firma = "


".upb_code(replaceimg2(faccine($dbmsg[6][0]))); } } else { $us_data = explode("||",$stuff[user_id]); if(!empty($us_data[2])&&$status!=$forum59) { $em = BreakEMail($us_data[2]); $m_mail = "$spul$dpul"; } if(!empty($us_data[3])) $m_http = "$spul$dpul"; if(!empty($us_data[1])) { if($status!=$forum59) { $us_data[1] = str_replace("<", "<", $us_data[1]); $us_data[1] = str_replace(">", ">", $us_data[1]); $us_data[1] = str_replace("<br />","
",$us_data[1]); $us_data[1] = wordwrap($us_data[1], 105, ' ', 1); $firma = "



".upb_code(replaceimg2(faccine($us_data[1])))."

"; } } if(!empty($us_data[0])) { if(eregi("http:", $us_data[0])) { // avatar esterni disconnect $ava ="\"\""; } else { $ava ="\"\""; } } else { $ava ="\"\""; } } // aggiunta mp con disconnect - pubblicazione mail - sito web if(file_exists("../plugins/disconnect")) { $dbmsg = ReadDBFields(USEREP.$stuff[user_name].DBEXT); if($dbmsg[1][2]=="on"&&$stuff[user_name]!=$userprefs[1]){ $lmsg ="onclick='window.open(\"../tinymsg.php?lng=$lng&action=1&to=".$stuff[user_name]."&from=".$userprefs[1]."\", \"msg$i\",\"menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes\");'"; $m_msg = "$spul$dpul"; } if($dbmsg[1][14]=="on"||$status==$forum59) { $m_mail = ""; } else { $em = BreakEMail($dbmsg[1][1]); $m_mail = "$spul$dpul"; } if($dbmsg[1][4]) { $m_http = "$spul$dpul"; } $ava ="\"\""; if($dbmsg[1][3]) { if(file_exists("../inc/img/avatars/".$page[23]."/".$dbmsg[1][3])) $ava ="\"\""; } if($dbmsg[1][5]) { $ava ="\"\""; } if (!empty($dbmsg[1][8])){ $dbmsg[1][8] = str_replace("<", "<", $dbmsg[1][8]); $dbmsg[1][8] = str_replace(">", ">", $dbmsg[1][8]); $dbmsg[1][8] = str_replace("[NL]","
",$dbmsg[1][8]); $dbmsg[1][8] = wordwrap($dbmsg[1][8], 105, ' ', 1); $firma = "


".upb_code(replaceimg2(faccine($dbmsg[1][8]))); } else { $firma = ""; } } //hit $hitr = $info_m[3]+($info_m[2]*15)+($info_m[1]*10); $hitr_g ="rank0"; if($hitr>150) $hitr_g ="rank1"; if($hitr>300) $hitr_g ="rank2"; if($hitr>1000) $hitr_g ="rank3"; if($hitr>1800) $hitr_g ="rank4"; if($hitr>3600) $hitr_g ="rank5"; $whos = whos_online(); if($locked_v!="on") { $b_np = "$spul$dpul"; } else { $b_np = "\"locked\""; } if($status==$forum59) {$ava ="\"\""; } if($firma=="") $firma=" "; echo "

"; $y++; } echo "
$forum51 \"\""; if($pagina==1) { echo "$forum50 $forum58 $t_header[date]
$forum134 : $t_header[subject]
$stuff[user_name]
"; $con = "\"Offline\"
"; $WHOS = explode(",",$whos[who]); for($w=0;$w
"; break; } } if($status!=$forum59){ echo"\"\""; } echo "
$ava
$status
"; if($status!=$forum59){ echo "
$forum64: $info_m[3]
$forum10: $info_m[2]
$forum65: $info_m[1]

$con"; } else { echo "IP : ".$us_data[1]; } echo "
"; if($i>0) { echo "\"\" $forum69: $stuff[date]
"; } echo "$msg
$firma
$m_mail $m_http $m_msg \"\" \"\" $edit$b_np
"; if($num_pages>1) { d_posting(); } if($userprefs[1] == $user[0]||(sei_mod($userprefs[1])&&$m_liv5=="on")) { // stiky ? $sf = @fopen("./db/sticky.dat", "r"); $read_st = @fread($sf, filesize("./db/sticky.dat")); $info_st = explode("<~>", $read_st); @fclose($sf); if(isset($sticky)){ if($sticky==$forum115){ function filtra($var){ global $id,$t_id; if($var != "id=$id&t_id=$t_id") return true; } $info_st = array_filter($info_st,"filtra"); } else { $info_st[] = "id=$id&t_id=$t_id"; } $sf = fopen("db/sticky.dat", "w"); $s_db = implode("<~>",$info_st); fwrite($sf, $s_db); fclose($sf); } if (in_array("id=$id&t_id=$t_id", $info_st)) { $a_st=$forum115; } else { $a_st=$forum114; } echo "
$forum98

$spul$dpul $spul$dpul $spul$dpul $spul$dpul

$forum267
"; } echo"
"; btab(); } } include "footer.php"; ?>