}
}
// width for index
else
{
?>
}
// referrals links must be tracked
include("pages/referrals_system.php");
// pages are read from files
if(isset($_GET['page']))
{
// if page module is found
if(file_exists('pages/'.$_GET['page'].'.php'))
{
include ("pages/$_GET[page].php");
}
// redirect old pages to new pages
elseif($_GET['page'] == "news") { header("location: index.php?page=custom&but=newest"); }
elseif($_GET['page'] == "payments") { header("location: index.php?page=help"); }
elseif($_GET['page'] == "gallery") { header("location: index.php?page=portfolio"); }
// no page module found, show index
else
{
header("location: index.php");
}
}
// show the index
else
{
include "pages/index.php";
}
?>