*/ /** Define CONFIG as our main config directory */ define('CONFIG', dirname(dirname(__FILE__)) . '/config/'); require_once CONFIG . 'setup.php'; /* |-------------------------------------------------------------------------- | Run The Application |-------------------------------------------------------------------------- | | Handle the incoming request | through our class, and send the associated response back to | the client's browser allowing them to enjoy the creative | and wonderful application we have prepared for them. | */ $path = mt\Http\Requests::capture(); /* * If we have the users URL ? * we can now load the right page for our friend * */ if (isset($path)) { $page = mt\pages::getPage($path, 'public', 'home'); } $row_count = row_count($dbc); ?> <!DOCTYPE html> <html> <head> <title><?php echo $site_title . ' | ' . $page->pagetitle;
<?php include '../../config/setup.php'; /* |-------------------------------------------------------------------------- | Run The Application |-------------------------------------------------------------------------- | | Handle the incoming request | through our class, and send the associated response back to | the client's browser allowing them to enjoy the creative | and wonderful application we have prepared for them. | */ $path = mt\Http\Requests::get_path(); $requestURL = $path['call_parts'][0]; switch ($requestURL) { case 'more_shots': include 'more_shots.php'; break; default: # code... break; }