aboutsummaryrefslogtreecommitdiff
path: root/_css/css.php
blob: 1cc3eb038f6c41c4306af6bc450b362baca080ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php

	/**
	 * Elgg CSS file
	 * 
	 * @package Elgg
	 * @subpackage Core

	 * @author Curverider Ltd

	 * @link http://elgg.org/
	 */
	
		/*

	    require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
	    
	    $default_css = elgg_view("css");
	    
	    header("Content-type: text/css", true);
		header('Expires: ' . date('r',time() + 864000), true);
		header("Pragma: public", true);
		header("Cache-Control: public", true);
	    header("Content-Length: " . strlen($default_css));
	       
	    echo $default_css;
		*/

		define('externalpage',true);

		global $viewinput, $override;
		$viewinput['view'] = 'css';
		$viewinput['viewtype'] = $_GET['viewtype'];

		//$override = true;
		
		header("Content-type: text/css", true);
		header('Expires: ' . date('r',time() + 86400000), true);
		header("Pragma: public", true);
		header("Cache-Control: public", true);
	    // header("Content-Length: " . strlen($default_css));
		require_once(dirname(dirname(__FILE__)) . '/simplecache/view.php');
    
?>