Well, that's kinda difficult. You can either start using if() elseif() elseif() ... statements and at the very end, use the else{} part to load the news/news.php file.
Otherwise, if you want to load any amount of files (as long as they're in the $_GET array) you're kind of limited to this. The only other thing could be to modify the include function to add a couple params. Something like:
function loadInclude($key, $array, $default, $dir='content/', $required=false)
{
global $page_Header, $page_Text;
if(substr($dir, -1) != '/') $dir .= '/';
$set = isset($array[$key]);
if(!$set && $required) $file = $default; // If the array key isn't set, but is required, use default
elseif(!$set && !$required) return; // If it's not set and not required, just do nothing
else $file = $array[$key]; // Otherwise, it's set let's get the value
// If the filename is empty, but required, use the default
if((empty($file) || !$file) && $required) $file = $default;
else return; // Otherwise, do nothing
// If the file doesn't exist, but is required, use the default
if(!file_exists($dir . $file . '.php') && $required) $file = $default;
else return; // Otherwise, do nothing
// Uncomment the following line to help debug
#echo 'Including: ' . $dir . $file . '.php<br />';
// Include the file
include($dir . $file . '.php');
}
Then to include files, you just do:
loadInclude('pa', $_GET, 'news', 'content/news/', true);
loadInclude('b', $_GET, 'index', 'content/products/books/', false);
loadInclude('cl', $_GET, 'index', 'content/products/clothing/', false);
loadInclude('c', $_GET, 'index', 'content/products/collectibles/', false);
loadInclude('g', $_GET, 'index', 'content/products/games/', false);
loadInclude('mi', $_GET, 'index', 'content/products/misc/', false);
loadInclude('m', $_GET, 'index', 'content/products/movies/', false);
loadInclude('p', $_GET, 'index', 'content/products/posters/', false);
loadInclude('t', $_GET, 'index', 'content/products/toys/', false);
Now, if the specific $_GET key isn't set, and the last parameter is false, it won't include it; however, if it's set to true, then the default will be included.
Hope it helps 😉