$db->exec("SET NAMES utf8"); } /* * We're going to need access to the database connection throughout the site. */ global $db; /* * Include Solarium's autoloader, for queries to Solr. */ require 'Solarium/Autoloader.php'; Solarium_Autoloader::register(); /* * Include the custom functions file. */ require CUSTOM_FUNCTIONS; /* * If Memcached or Redis is installed, instantiate a connection to it. */ if (defined('CACHE_HOST') && defined('CACHE_PORT')) { $cache = new Cache(); } /* * Establish routes */ require 'routes.inc.php'; /* * Initialize the master controller */ $mc = new MasterController(); $mc->execute();