<%
$MyBoard = "sw"; /* Change this to your boardname */
$MySsi = "http://{$_SERVER['SERVER_NAME']}/{$MyBoard}/forums/basin_ssi.php";
/* Use this array to describe every possible page you wish to
display. The left side is the xxx part in the URL "content=xxx", and
the right side is the page to display for that URL. It is important
not to trust the user to give us a target page directly. Instead, we
limit the page reading to only the choices we list in the array. */
$Ary = array(
"want_in" => "want_in.htm"
,"about" => "about.htm"
,"faq" => "faq.htm"
,"guides" => "guides.htm"
,"guidelines" => "guidelines.htm"
,"weapons" => "weapons.htm"
,"harvesters" => "harvesters.htm"
,"links" => "links.htm"
,"template" => "template.html"
,"highcontent" => "dragons.html"
,"hunting" => "hunting.html"
);
/* Get the value of the "content" variable from the URL of this page */
$Content = @$_GET["content"];
if ( isset( $Ary[$Content] ) )
{
/* We have a matching entry in the array above, so lets read that
page into a variable for use later. */
$Trailer = file_get_contents( $Ary[$Content] );
}
else
{
/* Otherwise, any non-matching value *or* the word "news" gets the
default news page which has to be handled in a slightly different
way. */
$Trailer = "
NEWS
";
$Trailer .= file_get_contents( "{$MySsi}?a=news&show=5" );
}
$Stats = file_get_contents( "{$MySsi}?a=stats" );
$Active = file_get_contents( "{$MySsi}?a=active" );
%>
The Amazon Basin - A Star Wars Guild & Strategy Site