Assuming you've put all your scripts in a folder called "content" that is in the same location of the script, i.e.:
/your/path/here/index.php?view=rules
/your/path/here/content/rules.php
and so on, then you can use the following code:
<?PHP
$param = 'view'; // This is the "?view=" part. change to suit your needs
$path = 'content/'; // Path relative to current script to look for includes.
// NOTE: Must have trailing slash 'path/to/scripts/', etc.
// NOTE: If scripts are in current directory, use $path = '';
if(!empty($_GET[$param])) {
if(eregi(',', $_GET[$param])) {
$files = explode(",", $_GET[$param]);
foreach($files as $filename) {
if(dirname(realpath($path.$filename.'.php')) == realpath(dirname($_SERVER['PATH_TRANSLATED']) . '/' . rtrim($path, '/'))) include_once($path.$filename.'.php');
}
} else if(dirname(realpath($path.$_GET[$param].'.php')) == realpath(dirname($_SERVER['PATH_TRANSLATED']) . '/' . rtrim($path, '/'))) include_once($path.$_GET[$param].'.php');
} else {
// This is where you would tell the script what to do if there is no "?view="
}
?>
With this script, you can either use "?view=rules" and it will inclue "content/rules.php", or you can use multiple scripts separated by a comma, i.e. "?view=header,rules,footer" and it will call each, in the order given.
NOTE: This script has been tested. If you have any problems or questions, feel free to reply.