I need to include the file /forum/newsout.php into this script, but i can't use the include that due to the way it is scripted. when you use the include tag where I want the file to show up, it just shows the include tag. how do I do it, if anyone can help... it needs to be added down in the headlines section on the table, i have it commented where
PHP Code:
<?
if(! $indexloaded ){
header ( "Location: ./index.php" );
}
function main_page (){
global $dir , $url , $file , $out , $misc ;
$tablehead = table_head ( "show" , "100%" , "" , "left" );
$tablefoot = table_foot ( "show" );
//GET LINKS
$topfiles = mysql_query ( "SELECT id,name,imageurl FROM links ORDER by id" );
while(list( $linkid , $linkname , $linkimage )= mysql_fetch_row ( $topfiles )){
if(! $linkimage ){
$linklist = $linklist . " $out [ bulletleft ] <a href=' $url [ base ] / $file [ links ] ?linkid= $linkid ' target='top'> $linkname </a><br>" ;
}else{
$linklistb = $linklistb . "<br><center><a href=' $url [ base ] / $file [ links ] ?linkid= $linkid ' target='top'><img src=' $linkimage ' border='0' alt=' $linkname '></a></center>" ;
}
$linkimage = "" ;
}
$linklist = " $linklist $linklistb " ;
$out [ body ].= "
<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='2%' valign='top' align='left'> </td>
<td width='71%' valign='top' align='left'>
<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%' valign='top' align='center'>" ;
$out [ body ].= "
<br />
$tablehead
<strong><font class='catfont'>Headlines</font></strong><br>
<hr class='catfont' size='1'>
//////////////////////////// It needs to be added here ///////////////////////////////
$tablefoot " ;
$out [ body ].= "
</td>
</tr>
</table>
</td>
<td width='2%' valign='top'> </td>
<td width='23%' valign='top'>
<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%' valign='top' align='center'>
<br>
$tablehead
<strong><font class='catfont'>Stats</font></strong><br>
<hr class='catfont' size='1'>
$stats
$tablefoot
<br>
$tablehead
<strong><font class='catfont'>Links</font></strong><br>
<hr class='catfont' size='1'>
$linklist
$tablefoot
<br>
$tablehead
<strong><font class='catfont'>MLO Top Money Winners</font></strong><br>
<hr class='catfont' size='1'>
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td>
1. $300 Name Withheld<br />
2. $250 Taylor Seale<br />
3. $250 Jeff Zuendt<br />
4. $200 John Nguyen<br />
5. $125 Jeremy Grahm<br />
6. $125 Mike Johnson<br />
7. $125 Joey Goehner<br>
8. $120 Chris Blackburn<br />
9. $100 Pete Duke<br />
10. $100 Dave Perry<br /><br />
</td>
</tr>
</table>
$tablefoot
</td>
</tr>
</table>
</td>
<td width='18%' valign='top' align='right'> </td>
</tr>
</table>
" ;
include( " $dir [ curtheme ] " );
}
?>