home *** CD-ROM | disk | FTP | other *** search
Wrap
<?php ###################################################################### # Modulo Splatt Forum per PHP-NUKE ver.5.6 #------------------------- # BLOCCO FORUM #------------------------- # Versione: 3.2 # # Copyright (c) 2002 by: # # Giorgio Ciranni (~Splatt~) # (http://www.splatt.it) # (webmaster@splatt.it) # # Supporto tecnico disponibile sul Forum di www.splatt.it ###################################################################### # Splatt Forum is free software. You can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License. # Splatt Forum is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA # 02111-1307 USA ###################################################################### if (eregi("block-Forums.php",$PHP_SELF)) { Header("Location: index.php"); die(); } require_once("mainfile.php"); get_lang(Forums); global $prefix, $dbi; $result = sql_query("SELECT t1.topic_id,t1.topic_title,t1.topic_time,t1.forum_id FROM ${prefix}_forums t0,${prefix}_forumtopics t1 WHERE t0.forum_type=0 AND t0.forum_id=t1.forum_id ORDER BY t1.topic_time DESC LIMIT 0, 10", $dbi); while(list($topic_id, $topic_title, $topic_time, $forum_id) = sql_fetch_row($result, $dbi)) { $res = sql_query("select image from ".$prefix."_posts where topic_id='$topic_id'", $dbi); list ($image) = sql_fetch_row($res, $dbi); if($image == "") { $image= "icon33.gif"; } $title2 = ereg_replace("_", " ", $topic_title); $title2 = stripslashes($title2); $title3 = substr("$title2", 0,18); $content1 .= "<table><tr><td width=\"25\"><img src=\"images/forum/subject/$image\" alt=\"$title2 - $topic_time\"></td><td><a href=\"modules.php?name=Forums&file=viewtopic&topic=$topic_id&forum=$forum_id \"> $title3...</a></td></tr>"; } $content = "<center><form action=\"modules.php?name=Forums&file=searchbb\" method=\"post\">"; $content .= "<input type=\"hidden\" name=\"addterm\" value=\"any\">"; $content .= "<input type=\"hidden\" name=\"sortby\" value=\"p.post_time\">"; $content .= "<table width=\"95%\"><tr><td class=\"headgreyline\" align=\"center\"><b>"._FCERCF."</b><br> <input type=\"text\" name=\"term\" class=\"formbut\" size=\"15\">"; $content .= "<input type=\"hidden\" name=\"submit\" value=\"submit\"><br>[ <a href=\"modules.php?name=Forums&file=index\"><i>"._FINDEX."</i></a> ]</form>"; $content .= "</td></tr></table>"; $content .= "<i>"._FULTM."</i></center><br>$content1</table><br><center><hr width=\"50%\"><a href=\"http://www.splatt.it\" target=\"_blank\">Powered by:<br>Splatt Forum v3.2!</a></center>"; ?>