public static $regex_valid_win_drive_letter = '/^(?P<drive_letter>[a-zA-Z])\\:[\\/\\\\]$/'; } # ----------------------------------------------------------------------------------------------------------------------------------- # Initialize the XDaRk Core stub. # ----------------------------------------------------------------------------------------------------------------------------------- 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). */