diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-16 11:22:15 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-16 11:22:15 +0000 |
commit | 67961769f46444e5462f63212409ae0e69e217f1 (patch) | |
tree | f3e3b9d6521b2155a924be08746401d7eb621339 /_css/js.php | |
parent | 0a6d410bb02de58fe7c9d80b0642cdc12d982939 (diff) | |
download | elgg-67961769f46444e5462f63212409ae0e69e217f1.tar.gz elgg-67961769f46444e5462f63212409ae0e69e217f1.tar.bz2 |
Committing the simplecache for views.
git-svn-id: https://code.elgg.org/elgg/trunk@2759 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to '_css/js.php')
-rw-r--r-- | _css/js.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/_css/js.php b/_css/js.php new file mode 100644 index 000000000..99c786e01 --- /dev/null +++ b/_css/js.php @@ -0,0 +1,40 @@ +<?php
+
+ /**
+ * Elgg CSS file
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008-2009
+ * @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;
+ */
+
+ global $viewinput;
+ $viewinput['view'] = 'js/' . $_GET['js'];
+
+ header('Content-type: text/javascript');
+ header('Expires: ' . date('r',time() + 864000));
+ header("Pragma: public");
+ header("Cache-Control: public");
+ // header("Content-Length: " . strlen($return));
+
+ require_once(dirname(dirname(__FILE__)) . '/simplecache/view.php');
+
+?>
\ No newline at end of file |