Invision Power Services, Inc. * @copyright (c) Invision Power Services, Inc. * @license https://www.invisioncommunity.com/legal/standards/ * @package Invision Community * @subpackage Content * @since 30 Jun 2015 * */ define('REPORT_EXCEPTIONS', TRUE); require_once str_replace( 'applications/cms/interface/developer/developer.php', '', str_replace( '\\', '/', __FILE__ ) ) . 'init.php'; \IPS\Dispatcher\External::i(); if ( \IPS\IN_DEV !== true AND ! \IPS\Theme::designersModeEnabled() ) { exit(); } /* The CSS is parsed by the theme engine, and the theme engine has plugins, and those plugins need to now which theme ID we're using */ if ( \IPS\Theme::designersModeEnabled() ) { \IPS\Session\Front::i(); } if ( isset( \IPS\Request::i()->file ) ) { $file = file_get_contents( \IPS\ROOT_PATH . '/' . \IPS\Request::i()->file ); \IPS\Output::i()->sendOutput( preg_replace( '#file, -4 ) === '.css' ) ? 'text/css' : 'text/javascript' ); }