diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-14 14:30:37 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-14 14:30:37 +0000 |
commit | 95d7c27e5a65f6df5221842bb4427619ccec3327 (patch) | |
tree | de044918562a24c6f069f8cfc9ad24895ddb9abe /_css | |
parent | a540eee93088628adeb3127227f401592ce4403c (diff) | |
download | elgg-95d7c27e5a65f6df5221842bb4427619ccec3327.tar.gz elgg-95d7c27e5a65f6df5221842bb4427619ccec3327.tar.bz2 |
Updating core code to allow public pages using new Walled Garden functionality.
git-svn-id: http://code.elgg.org/elgg/trunk@6047 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to '_css')
-rw-r--r-- | _css/css.php | 21 | ||||
-rw-r--r-- | _css/js.php | 20 |
2 files changed, 2 insertions, 39 deletions
diff --git a/_css/css.php b/_css/css.php index c2b2cfbc7..6d240351c 100644 --- a/_css/css.php +++ b/_css/css.php @@ -8,33 +8,14 @@ * @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'); diff --git a/_css/js.php b/_css/js.php index 8ffb7945e..6eb056426 100644 --- a/_css/js.php +++ b/_css/js.php @@ -8,25 +8,8 @@ * @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; -//$override = true; + $viewinput['view'] = 'js/' . $_GET['js']; $viewinput['viewtype'] = $_GET['viewtype']; @@ -34,6 +17,5 @@ header('Content-type: text/javascript'); header('Expires: ' . date('r',time() + 864000000)); 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 |