* * @author Jonathan Davis * @version 1.0 * @copyright Ingenesis Limited, May 2014 * @license GNU GPL version 3 (or later) {@see license.txt} * @package shopp * @since 1.4 **/ $load = isset($_GET['load']) ? $_GET['load'] : ''; $load = preg_replace('/[^a-z0-9,_-]+/i', '', $load); $load = (array) explode(',', $load); if (empty($load)) { exit; } $ShoppStyles = new ShoppStyles(); ShoppStyles::defaults($ShoppStyles); $compress = isset($_GET['c']) && $_GET['c']; $force_gzip = $compress && 'gzip' == $_GET['c']; $expires_offset = 31536000; $out = ''; foreach ($load as $handle) { if (!isset($ShoppStyles->registered[$handle])) { continue; } $path = ShoppLoader::basepath() . $ShoppStyles->registered[$handle]->src; if (!$path || !@is_file($path)) { continue; } $out .= @file_get_contents($path) . "\n"; } header('Content-Type: text/css; charset=UTF-8');