HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/theflexguy.com/wp-content/themes/carrington-blog/css/css.php
<?php

// This file is part of the Carrington Blog Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
// **********************************************************************

define('ABSPATH', dirname(__FILE__) . '/');

$css_files = array(
	'attachment' => '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";
}

?>