<?php /** * XDaRk Core (WP plugin). * * Copyright: © 2012 (coded in the USA) * {@link http://www.websharks-inc.com XDaRk} * * @author JasWSInc * @package XDaRk\Core * @since 130310 */ if (!defined('WPINC')) { exit('Do NOT access this file directly: ' . basename(__FILE__)); } /* * Load dependency utilities. */ $GLOBALS['autoload_xd_v141226_dev'] = FALSE; require_once dirname(__FILE__) . '/stub.php'; require_once xd_v141226_dev::deps(); /* * Check dependencies (and load framework; if possible). */ if (deps_xd_v141226_dev::check(xd_v141226_dev::$core_name, dirname(__FILE__)) === TRUE) { require_once xd_v141226_dev::framework(); }
# ----------------------------------------------------------------------------------------------------------------------------------------- /* * 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()); } if (!defined('WPINC')) { // Need to load WordPress? require_once xd_v141226_dev::wp_load(TRUE); } if (!class_exists('deps_xd_v141226_dev')) { require_once xd_v141226_dev::deps(FALSE); } if (!class_exists('\\xd_v141226_dev\\framework')) { require_once xd_v141226_dev::framework(); } return; // We can stop here. } # ----------------------------------------------------------------------------------------------------------------------------------------- # Default inline handlers. # ----------------------------------------------------------------------------------------------------------------------------------------- /* * Always unset XDaRk Core autoload var. */ unset($GLOBALS[xd_v141226_dev::autoload_var()]); /*