diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-28 21:25:22 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-28 21:25:22 +0000 |
commit | a1b7808dea79b3a547aa805b86d829fa1f5f19db (patch) | |
tree | ea1c8b172058b9bb07ed2741539072ddeec26b5c /_css | |
parent | d892f121e1b9a34edfa49288a20b99d4d4b65f6b (diff) | |
download | elgg-a1b7808dea79b3a547aa805b86d829fa1f5f19db.tar.gz elgg-a1b7808dea79b3a547aa805b86d829fa1f5f19db.tar.bz2 |
Fixes #2160 #2678 introducing a more flexible simplecache handler (this requires an htaccess update)
git-svn-id: http://code.elgg.org/elgg/trunk@7464 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to '_css')
-rw-r--r-- | _css/css.php | 37 | ||||
-rw-r--r-- | _css/js.php | 40 |
2 files changed, 0 insertions, 77 deletions
diff --git a/_css/css.php b/_css/css.php deleted file mode 100644 index 4a5152afb..000000000 --- a/_css/css.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -/** - * Outputs the main CSS view. - * - * Requests to $url/css.css are rewritten via - * mod_rewrite rules in .htaccess (or similar) to this file. - * - * The main CSS is a view located at 'css'. The location of the - * file used to generate this view changes based upon current viewtype - * and plugins enabled. By default the viewtype is 'default' (HTML) and the - * view file is views/default/css.php. Plugins can override or extend this view. - * - * This view is cached via simplecache. - * - * @see views/default/css.php - * @see simplecache/view.php - * @see elgg_extend_view() - * - * @uses $_GET['viewtype'] The current viewtype. Determines where to look for the - * css.php view. - * @uses $override A global that tells simplecache to ignore caching. - * - * @package Elgg - * @subpackage Core - */ - -global $viewinput, $override; - -$viewinput['view'] = 'css'; -$viewinput['viewtype'] = $_GET['viewtype']; - -header("Content-type: text/css", true); -header('Expires: ' . date('r', time() + 86400000), true); -header("Pragma: public", true); -header("Cache-Control: public", true); - -require_once(dirname(dirname(__FILE__)) . '/simplecache/view.php'); diff --git a/_css/js.php b/_css/js.php deleted file mode 100644 index 41b7901f9..000000000 --- a/_css/js.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php -/** - * Outputs a JS view. - * - * There are 2 main JS views used in elgg: - * js/initialise_elgg - * js/friendsPickerv1 - * - * The location of the files used to generate these view can change based upon - * current viewtype and plugins enabled. By default the viewtype is - * 'default' (HTML) and the view files are in views/default/js/. Plugins can - * override or extend these views. - * - * These 2 main JS views are cached via simplecache. - * - * @see views/default/js/initialise_elgg.php - * @see views/default/js/friendsPickerv1.php - * @see simplecache/view.php - * @see elgg_extend_view() - * - * @uses $_GET['viewtype'] The current viewtype. Determines where to look for the - * JS view files. - * @uses $_GET['view'] The view to output, relative to the view js/ - * @uses $override A global that tells simplecache to ignore caching. - * - * @package Elgg - * @subpackage Core - */ - -global $viewinput, $override; - -$viewinput['view'] = 'js/' . $_GET['js']; -$viewinput['viewtype'] = $_GET['viewtype']; - -header('Content-type: text/javascript'); -header('Expires: ' . date('r', time() + 864000000)); -header("Pragma: public"); -header("Cache-Control: public"); - -require_once(dirname(dirname(__FILE__)) . '/simplecache/view.php');
\ No newline at end of file |