'attachment.css', 'carrington-blog' => 'carrington-blog.css', 'img' => 'img.css', 'typography' => 'typography.css', ); // set default $load = array('typography', 'carrington-blog', 'img'); if (!isset($_GET['type'])) { $_GET['type'] = 'main'; } switch ($_GET['type']) { case 'attachment': $load = array('typography', 'attachment', 'img'); break; case 'attachment-noimg': $load = array('typography', 'attachment'); break; case 'noimg': $load = array('typography', 'carrington-blog'); break; case 'main': default: // use default break; } ob_start("ob_gzhandler"); header('Content-type: text/css'); header("Cache-Control: public"); // cache for 1 day header('Expires: '.gmdate('D, d M Y H:i:s', time() + 86400) . 'GMT'); foreach ($load as $file) { include(ABSPATH.$css_files[$file]); echo "\n\n"; } ?>