News:



", 1); $news = eregi_replace("<br>", "
", "$news"); $name = eregi_replace("<br>", "
", "$name"); $news=eregi_replace("\[img\]([^\[]*)\[/img\]"," ",$news); $news=eregi_replace("\[b\]([^\[]*)\[/b\]","\\1",$news); $news=eregi_replace("\[i\]([^\[]*)\[/i\]","\\1",$news); $news=eregi_replace("\[u\]([^\[]*)\[/u\]","\\1",$news); $news=eregi_replace("\[email\]([^\[]*)\[/email\]","\\1",$news); $news=eregi_replace("\[url\]www.([^\[]*)\[/url\]","\\1",$news); $news=eregi_replace("\[url\]([^\[]*)\[/url\]","\\1",$news); $news=eregi_replace("\[url=http://([^\[]+)\]([^\[]*)\[\/url\]","\\2",$news); $realtime = date("M j, Y","$time"); echo "
$topicPosted on $realtime by $name
$news

"; $i++; } echo "

"; if($start > 0 && $numrows <= ($start + $perpage)) { echo "<< Newer News"; } if($start > 0 && $numrows > ($start + $perpage)) { echo "<< Newer News | "; } if($numrows > ($start + $perpage)) { echo "Older News >>"; } echo "

"; mysql_close(); } else if ($action == "latest") { mysql_connect($localhost, $user, $pass) or die($strNoConnection); mysql_select_db($dbname) or die($strNoConnection); $query = "SELECT * FROM $messagestable WHERE id = $id"; $result=mysql_query($query) or die($strNoDatabase); $number=mysql_numrows($result); $query1 = "SELECT count(*) as count FROM $messagestable"; $result1 = mysql_query($query1); $row = mysql_fetch_array($result1); $numrows = $row['count']; ?> ", 1); $news = eregi_replace("<br>", "
", "$news"); $name = eregi_replace("<br>", "
", "$name"); $news=eregi_replace("\[img\]([^\[]*)\[/img\]"," ",$news); $news=eregi_replace("\[b\]([^\[]*)\[/b\]","\\1",$news); $news=eregi_replace("\[i\]([^\[]*)\[/i\]","\\1",$news); $news=eregi_replace("\[u\]([^\[]*)\[/u\]","\\1",$news); $news=eregi_replace("\[email\]([^\[]*)\[/email\]","\\1",$news); $news=eregi_replace("\[url\]www.([^\[]*)\[/url\]","\\1",$news); $news=eregi_replace("\[url\]([^\[]*)\[/url\]","\\1",$news); $news=eregi_replace("\[url=http://([^\[]+)\]([^\[]*)\[\/url\]","\\2",$news); $realtime = date("M j, Y","$time"); echo "
$topicPosted on $realtime by $name
$news

"; $i++; } mysql_close(); } ?>