From 1d52185bc84e5c29af6996bff18a16e34c5b36b3 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Fri, 8 Jun 2012 08:18:03 +0000 Subject: [PATCH] Added e_CACHE_URL --- e107_admin/update_routines.php | 4 ++++ e107_handlers/application.php | 8 ++++---- e107_handlers/e107_class.php | 6 ++++-- e107_plugins/gallery/gallery.php | 27 +++++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index b962ffa3a..f3bb270bf 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -1045,6 +1045,10 @@ function update_706_to_800($type='') { mkdir(e_BACKUP,0755); } + if(!is_dir(e_CACHE_URL)) + { + mkdir(e_CACHE_URL,0755); + } $root_media = str_replace(basename(e_MEDIA)."/","",e_MEDIA); diff --git a/e107_handlers/application.php b/e107_handlers/application.php index d710a9160..e44fae859 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -870,8 +870,8 @@ class eRouter */ protected function _loadConfig() { - if(!is_readable(e_SYSTEM.'url/config.php')) $config = $this->buildGlobalConfig(); - else $config = include(e_SYSTEM.'url/config.php'); + if(!is_readable(e_CACHE_URL.'config.php')) $config = $this->buildGlobalConfig(); + else $config = include(e_CACHE_URL.'config.php'); if(!$config) $config = array(); @@ -891,7 +891,7 @@ class eRouter public static function clearCache() { - @unlink(e_SYSTEM.'url/config.php'); + @unlink(e_CACHE_URL.'config.php'); } /** @@ -940,7 +940,7 @@ class eRouter $fileContent = 'get_override_rel('CACHE_CONTENT')); define('e_CACHE_IMAGE', $this->get_override_rel('CACHE_IMAGE')); define('e_CACHE_DB', $this->get_override_rel('CACHE_DB')); + define('e_CACHE_URL', $this->get_override_rel('CACHE_URL')); define('e_LOG', $this->get_override_rel('LOGS')); define('e_BACKUP', $this->get_override_rel('BACKUP')); diff --git a/e107_plugins/gallery/gallery.php b/e107_plugins/gallery/gallery.php index 8681dbdf8..3f9891c86 100644 --- a/e107_plugins/gallery/gallery.php +++ b/e107_plugins/gallery/gallery.php @@ -111,6 +111,33 @@ class gallery new gallery; + +echo 'prev + + +
+ + +
Lorem ipsum ..
+ + +
Lorem ipsum the 2nd..
+ + +
Lorem ipsum the 3rd
+ +
+ + +next + + +
+ + + +
'; + require_once(FOOTERF); exit;