Error
Sorry, but you don't have COM installed. Odd, I know!
EOL;
exit;
}
/* Include 'some' of the key files */
foreach(glob(WEBSITE_ROOT."/System/*Library/*.php") as $sGlob)
{
require $sGlob;
}
/* Include the boot loader. */
require WEBSITE_ROOT."/System/BootLoader.php";
/* Parse the input string, obv. */
$_SEO = explode('/', $_SERVER['QUERY_STRING']);
$_SEO[0] = $_SERVER['QUERY_STRING'];
/* Let's check for re-directions. */
$aRedirections = array();
if(array_key_exists($_SEO[1], $aRedirections))
{
$_SEO[1] = $aRedirections[$_SEO[1]];
}
/* Try and load the module. */
if($_SEO[1])
{
/* Oh, a module! */
if(file_exists("Modules/{$_SEO[1]}/Default.php"))
{
require "Modules/{$_SEO[1]}/Default.php";
}
else
{
require "Modules/Error.404/Default.php";
}
}
else
{
require "Modules/Default/Default.php";
}