* * @category PHP * @package Olympus * @author Achraf Chouk <*****@*****.**> * @license https://github.com/crewstyle/Olympus/blob/master/LICENSE MIT * @link https://github.com/crewstyle/Olympus * @since 0.0.1 */ /** * Register the composer autoloader. */ if (!file_exists($autoload = VENDORPATH . 'autoload.php')) { // Require error class file. require_once APPPATH . 'components' . S . 'Error' . S . 'ErrorDebugger.php'; // Use ErrorDebugger class to display error. GetOlympus\Components\Error\ErrorDebugger::error500('Unable to find composer autoloader.', 'Please use <code>curl -s http://getcomposer.org/installer | php</code> and <code>php composer.phar install</code> command lines from your project folder.', 'File not found'); } $loader = (include $autoload); /** * Include the compiled class file. * * To dramatically increase your application's performance, you may use a * compiled class file which contains all of the classes commonly used * by a request. */ if (file_exists($compiled = CACHEPATH . 'compiled.php')) { include $compiled; } /** * Return autoload. */
<?php /** * Bootstrap all WordPress context. * * @category PHP * @package Olympus * @author Achraf Chouk <*****@*****.**> * @license https://github.com/crewstyle/Olympus/blob/master/LICENSE MIT * @link https://github.com/crewstyle/Olympus * @since 0.0.1 */ $s = DIRECTORY_SEPARATOR; $d = dirname(__FILE__); /** * Loads the WordPress theme and output it. */ define('WP_USE_THEMES', true); /** * Loads the WordPress Environment and Template. */ if (!file_exists($wpblogheader = $d . $s . 'cms' . $s . 'wp-blog-header.php')) { // Require error class file. require_once dirname($d) . $s . 'app' . $s . 'components' . $s . 'Error' . $s . 'ErrorDebugger.php'; // Use ErrorDebugger class to display error. GetOlympus\Components\Error\ErrorDebugger::error500('WordPress is not installed.', 'The default WordPress cms folder seems empty and does not contain the required files. Please, run <code>php composer.phar install</code> command lines from your project folder and refresh this page.', 'File not found'); } require $wpblogheader;