aboutsummaryrefslogtreecommitdiff
path: root/_css/css.php
diff options
context:
space:
mode:
Diffstat (limited to '_css/css.php')
-rw-r--r--_css/css.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/_css/css.php b/_css/css.php
index e36b35d16..df681bcb2 100644
--- a/_css/css.php
+++ b/_css/css.php
@@ -11,6 +11,8 @@
* @link http://elgg.org/
*/
+ /*
+
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
$default_css = elgg_view("css");
@@ -22,5 +24,16 @@
header("Content-Length: " . strlen($default_css));
echo $default_css;
+ */
+
+ global $viewinput;
+ $viewinput['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));
+ require_once(dirname(dirname(__FILE__)) . '/simplecache/view.php');
?> \ No newline at end of file