xd_v141226_dev::initialize(); // Also creates class alias. } # ----------------------------------------------------------------------------------------------------------------------------------------- # Inline webPhar handler. # ----------------------------------------------------------------------------------------------------------------------------------------- /* * A XDaRk Core webPhar instance? * This serves files straight from a PHP Archive. */ if (xd_v141226_dev::is_webphar()) { unset($GLOBALS[xd_v141226_dev::autoload_var()]); if (!xd_v141226_dev::can_phar()) { throw new exception(xd_v141226_dev::cant_phar_msg()); } Phar::webPhar('xd-v141226-dev', 'index.php', '', xd_v141226_dev::web_phar_mime_types(), 'xd_v141226_dev::web_phar_rewriter'); return; // We can stop here. } # ----------------------------------------------------------------------------------------------------------------------------------------- # Inline autoload handler. # ----------------------------------------------------------------------------------------------------------------------------------------- /* * A XDaRk Core autoload instance? * On by default (disable w/ global var as necessary). */ if (xd_v141226_dev::is_autoload()) { unset($GLOBALS[xd_v141226_dev::autoload_var()]); if (!defined('WPINC') && !xd_v141226_dev::wp_load()) { throw new exception(xd_v141226_dev::no_wp_msg()); }