Version Notes
Please follow installation directions carefully
Download this release
Release Info
Developer | Magento Core Team |
Extension | ezzoom |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- app/code/local/Ezapps/Zoom/Block/Ajax/Footer.php +1 -1
- app/code/local/Ezapps/Zoom/Helper/Data.php +3 -7
- app/code/local/Ezapps/Zoom/controllers/HoleController.php +7 -4
- app/code/local/Ezapps/Zoom/etc/config.xml +1 -1
- app/code/local/Ezapps/Zoom/sql/ezzoom_setup/mysql4-upgrade-1.0.2-1.0.3.php +7 -0
- app/design/frontend/base/default/template/ezzoom/ajax/footer.phtml +1 -1
- ezzoom.php +6 -1
- package.xml +4 -4
app/code/local/Ezapps/Zoom/Block/Ajax/Footer.php
CHANGED
@@ -45,7 +45,7 @@ class Ezapps_Zoom_Block_Ajax_Footer extends Mage_Core_Block_Template
|
|
45 |
$result['handles'] = Mage::getSingleton('core/layout')->getUpdate()->getHandles();
|
46 |
$result['control'] = $toolbar['control'];
|
47 |
if ($this->getProduct())
|
48 |
-
$result['pid'] = $this->getId();
|
49 |
|
50 |
return Mage::helper('ezzoom')->compress(json_encode($result));
|
51 |
|
45 |
$result['handles'] = Mage::getSingleton('core/layout')->getUpdate()->getHandles();
|
46 |
$result['control'] = $toolbar['control'];
|
47 |
if ($this->getProduct())
|
48 |
+
$result['pid'] = $this->getProduct()->getId();
|
49 |
|
50 |
return Mage::helper('ezzoom')->compress(json_encode($result));
|
51 |
|
app/code/local/Ezapps/Zoom/Helper/Data.php
CHANGED
@@ -692,7 +692,7 @@ class Ezapps_Zoom_Helper_Data extends Mage_Core_Helper_Abstract
|
|
692 |
|
693 |
public function saveFile($file_name, $data, $straight_save = false) {
|
694 |
|
695 |
-
$root =
|
696 |
|
697 |
if ($straight_save != false) {
|
698 |
|
@@ -852,15 +852,11 @@ class Ezapps_Zoom_Helper_Data extends Mage_Core_Helper_Abstract
|
|
852 |
if ($real_file_name == '')
|
853 |
$real_file_name = $this->getVarFromEzoomHandler('ZOOM_INDEX');
|
854 |
|
855 |
-
$path_finished =
|
856 |
|
857 |
if ($path[0] == '')
|
858 |
array_shift($path);
|
859 |
|
860 |
-
// Windows drive path fix
|
861 |
-
if (strstr($path[0], ':'))
|
862 |
-
$path_finished .= array_shift($path);
|
863 |
-
|
864 |
foreach ($path as $directory) {
|
865 |
if (!file_exists($path_finished . DS . $directory)) {
|
866 |
mkdir($path_finished . DS . $directory);
|
@@ -868,7 +864,7 @@ class Ezapps_Zoom_Helper_Data extends Mage_Core_Helper_Abstract
|
|
868 |
$path_finished .= DS . $directory;
|
869 |
}
|
870 |
|
871 |
-
return $path_finished . DS . $real_file_name;
|
872 |
|
873 |
}
|
874 |
}
|
692 |
|
693 |
public function saveFile($file_name, $data, $straight_save = false) {
|
694 |
|
695 |
+
$root = $this->getVarFromEzoomHandler('ZOOM_ROOT');
|
696 |
|
697 |
if ($straight_save != false) {
|
698 |
|
852 |
if ($real_file_name == '')
|
853 |
$real_file_name = $this->getVarFromEzoomHandler('ZOOM_INDEX');
|
854 |
|
855 |
+
$path_finished = Mage::getBaseDir();
|
856 |
|
857 |
if ($path[0] == '')
|
858 |
array_shift($path);
|
859 |
|
|
|
|
|
|
|
|
|
860 |
foreach ($path as $directory) {
|
861 |
if (!file_exists($path_finished . DS . $directory)) {
|
862 |
mkdir($path_finished . DS . $directory);
|
864 |
$path_finished .= DS . $directory;
|
865 |
}
|
866 |
|
867 |
+
return str_replace(DS . DS, DS, $path_finished . DS . $real_file_name);
|
868 |
|
869 |
}
|
870 |
}
|
app/code/local/Ezapps/Zoom/controllers/HoleController.php
CHANGED
@@ -20,9 +20,15 @@ class Ezapps_Zoom_HoleController extends Mage_Core_Controller_Front_Action
|
|
20 |
|
21 |
public function fillAction() {
|
22 |
|
|
|
|
|
23 |
$session = Mage::getSingleton('customer/session');
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
26 |
|
27 |
$page = Mage::getModel('ezzoom/page')->load($this->getRequest()->getParam('id'));
|
28 |
|
@@ -49,9 +55,6 @@ class Ezapps_Zoom_HoleController extends Mage_Core_Controller_Front_Action
|
|
49 |
|
50 |
$result = Mage::helper('ezzoom')->getCurrencyInfo();
|
51 |
|
52 |
-
if (trim($data['url']) != '')
|
53 |
-
$session->setLastEzzoomUrl($data['url']);
|
54 |
-
|
55 |
$hole_filling = array();
|
56 |
|
57 |
if (!Mage::getSingleton('catalog/session')->getParamsMemorizeDisabled())
|
20 |
|
21 |
public function fillAction() {
|
22 |
|
23 |
+
$data = json_decode(Mage::helper('ezzoom')->decompress($this->getRequest()->getParam('holes')), true);
|
24 |
+
|
25 |
$session = Mage::getSingleton('customer/session');
|
26 |
|
27 |
+
if (trim($data['url']) != '') {
|
28 |
+
$session->setLastEzzoomUrl($data['url']);
|
29 |
+
$_SERVER['REQUEST_URI'] = $data['url'];
|
30 |
+
|
31 |
+
}
|
32 |
|
33 |
$page = Mage::getModel('ezzoom/page')->load($this->getRequest()->getParam('id'));
|
34 |
|
55 |
|
56 |
$result = Mage::helper('ezzoom')->getCurrencyInfo();
|
57 |
|
|
|
|
|
|
|
58 |
$hole_filling = array();
|
59 |
|
60 |
if (!Mage::getSingleton('catalog/session')->getParamsMemorizeDisabled())
|
app/code/local/Ezapps/Zoom/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Ezapps_Zoom>
|
5 |
-
<version>1.0.
|
6 |
</Ezapps_Zoom>
|
7 |
</modules>
|
8 |
<crontab>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Ezapps_Zoom>
|
5 |
+
<version>1.0.3</version>
|
6 |
</Ezapps_Zoom>
|
7 |
</modules>
|
8 |
<crontab>
|
app/code/local/Ezapps/Zoom/sql/ezzoom_setup/mysql4-upgrade-1.0.2-1.0.3.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Zoom Upgrader
|
4 |
+
*
|
5 |
+
* @author Ezra Morse (http://www.ezapps.ca)
|
6 |
+
* @license: EPL 1.0
|
7 |
+
*/
|
app/design/frontend/base/default/template/ezzoom/ajax/footer.phtml
CHANGED
@@ -29,7 +29,7 @@ $domain = $this->getDomain();
|
|
29 |
document.observe("dom:loaded", function() {
|
30 |
|
31 |
new Ajax.JSONRequest('<?php echo $this->getUrl('', array('_secure'=> true)) . $url ?>', {
|
32 |
-
parameters: {
|
33 |
id: '<?php echo $this->getPageTag() ?>',
|
34 |
key: '<?php echo $this->getFileTag() ?>',
|
35 |
holes: '<?php echo $state ?>'
|
29 |
document.observe("dom:loaded", function() {
|
30 |
|
31 |
new Ajax.JSONRequest('<?php echo $this->getUrl('', array('_secure'=> true)) . $url ?>', {
|
32 |
+
parameters: {isAjax: true,
|
33 |
id: '<?php echo $this->getPageTag() ?>',
|
34 |
key: '<?php echo $this->getFileTag() ?>',
|
35 |
holes: '<?php echo $state ?>'
|
ezzoom.php
CHANGED
@@ -58,9 +58,13 @@ class Ezapps_Zoom_Handler
|
|
58 |
$test = explode("/", $url['path']);
|
59 |
if ($test[(count($test) - 1)] == "")
|
60 |
self::$base_uri = str_replace('/', self::DS, $url['path'] . self::$ZOOM_INDEX);
|
|
|
|
|
61 |
else
|
62 |
self::$base_uri = str_replace('/', self::DS, $url['path']);
|
63 |
|
|
|
|
|
64 |
// Customize for stores if default fill is desired
|
65 |
/*self::$DEFAULT_FILL['default']['links'] = '<ul class="links">' .
|
66 |
'<li class="first"><a href="{{secure_url}}customer/account/" title="My Account">My Account</a></li>' .
|
@@ -118,6 +122,7 @@ class Ezapps_Zoom_Handler
|
|
118 |
|
119 |
if (array_key_exists(1, $test_for_rewrites)) {
|
120 |
self::$base_uri = $test_for_rewrites[0];
|
|
|
121 |
$_SERVER["REQUEST_URI"] = $test_for_rewrites[0];
|
122 |
$args = explode("/", $test_for_rewrites[1]);
|
123 |
for ($i = 0; $i < count($args); $i=$i+2)
|
@@ -317,7 +322,7 @@ class Ezapps_Zoom_Handler
|
|
317 |
$zoom_controller = Ezapps_Zoom_Handler::getInstance();
|
318 |
|
319 |
if (!(array_key_exists('___store', $_GET) && array_key_exists('___from_store', $_GET))) {
|
320 |
-
if (!(array_key_exists('
|
321 |
|
322 |
$zoom_controller->tryRetrieveCacheFile();
|
323 |
|
58 |
$test = explode("/", $url['path']);
|
59 |
if ($test[(count($test) - 1)] == "")
|
60 |
self::$base_uri = str_replace('/', self::DS, $url['path'] . self::$ZOOM_INDEX);
|
61 |
+
else if (!strstr($test[(count($test)-1)], '.'))
|
62 |
+
self::$base_uri = str_replace('/', self::DS, $url['path'] . '/' . self::$ZOOM_INDEX);
|
63 |
else
|
64 |
self::$base_uri = str_replace('/', self::DS, $url['path']);
|
65 |
|
66 |
+
|
67 |
+
|
68 |
// Customize for stores if default fill is desired
|
69 |
/*self::$DEFAULT_FILL['default']['links'] = '<ul class="links">' .
|
70 |
'<li class="first"><a href="{{secure_url}}customer/account/" title="My Account">My Account</a></li>' .
|
122 |
|
123 |
if (array_key_exists(1, $test_for_rewrites)) {
|
124 |
self::$base_uri = $test_for_rewrites[0];
|
125 |
+
|
126 |
$_SERVER["REQUEST_URI"] = $test_for_rewrites[0];
|
127 |
$args = explode("/", $test_for_rewrites[1]);
|
128 |
for ($i = 0; $i < count($args); $i=$i+2)
|
322 |
$zoom_controller = Ezapps_Zoom_Handler::getInstance();
|
323 |
|
324 |
if (!(array_key_exists('___store', $_GET) && array_key_exists('___from_store', $_GET))) {
|
325 |
+
if (!(array_key_exists('isAjax', $_GET) || array_key_exists('ajax', $_GET) || array_key_exists('isAjax', $_POST) || array_key_exists('ajax', $_POST))) {
|
326 |
|
327 |
$zoom_controller->tryRetrieveCacheFile();
|
328 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ezzoom</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.eclipse.org/legal/epl-v10.html">EPL</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Now you can unlock the potential of the Magento e-Commerce Platform with EZAPPS Zoom. This highly customizable full page caching (FPC) system strives to be the final cache product that you will ever need to grow your sales without infinitely growing your server budget. Pages only have to generate a single time before they will be served up as if they were text documents.</description>
|
11 |
<notes>Please follow installation directions carefully</notes>
|
12 |
<authors><author><name>Ezra Morse</name><user>auto-converted</user><email>ezapps.software@gmail.com</email></author></authors>
|
13 |
-
<date>2012-04-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Ezapps"><dir name="Zoom"><dir name="Block"><dir name="Adminhtml"><dir name="Dashboard"><dir name="Tab"><file name="Zoom.php" hash="c32addff4c2fd2a2df7e050c7e05fb5f"/></dir></dir><dir name="Form"><dir name="Field"><file name="Get.php" hash="002af683dfa68c3d3b56ccb9af46788c"/><file name="Regex.php" hash="f09c06912914cae61250bd46a0e880fb"/></dir></dir><dir name="Page"><file name="Grid.php" hash="b5b402c8fbb2bc483c78298561e95c55"/></dir><file name="Page.php" hash="bc75dcc060c6e56d659975118bc8a5ab"/></dir><dir name="Ajax"><file name="Footer.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ezzoom</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.eclipse.org/legal/epl-v10.html">EPL</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Now you can unlock the potential of the Magento e-Commerce Platform with EZAPPS Zoom. This highly customizable full page caching (FPC) system strives to be the final cache product that you will ever need to grow your sales without infinitely growing your server budget. Pages only have to generate a single time before they will be served up as if they were text documents.</description>
|
11 |
<notes>Please follow installation directions carefully</notes>
|
12 |
<authors><author><name>Ezra Morse</name><user>auto-converted</user><email>ezapps.software@gmail.com</email></author></authors>
|
13 |
+
<date>2012-04-09</date>
|
14 |
+
<time>20:22:37</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Ezapps"><dir name="Zoom"><dir name="Block"><dir name="Adminhtml"><dir name="Dashboard"><dir name="Tab"><file name="Zoom.php" hash="c32addff4c2fd2a2df7e050c7e05fb5f"/></dir></dir><dir name="Form"><dir name="Field"><file name="Get.php" hash="002af683dfa68c3d3b56ccb9af46788c"/><file name="Regex.php" hash="f09c06912914cae61250bd46a0e880fb"/></dir></dir><dir name="Page"><file name="Grid.php" hash="b5b402c8fbb2bc483c78298561e95c55"/></dir><file name="Page.php" hash="bc75dcc060c6e56d659975118bc8a5ab"/></dir><dir name="Ajax"><file name="Footer.php" hash="30d014dfa368e84fbeae73d94e3f3e92"/></dir><dir name="Wrapper"><file name="Cart.php" hash="9c3873ffd6a894a5a3d93b1cab9cce69"/><file name="Compare.php" hash="1941899975dcee55bdcd381f49ff3140"/><file name="Compared.php" hash="122ab287e12f8ab1473150cb4f6037f3"/><file name="Currency.php" hash="96c85022eaa3f5e395a5869e7fbbdde7"/><file name="Header.php" hash="f048719abfc39335b4f3379b2bfc2216"/><file name="Links.php" hash="119ae74592b98547a98b6b1a4872cfba"/><file name="Messages.php" hash="3b0a40e6d3a4601f9df67ee7d8b5cddd"/><file name="Notices.php" hash="6f53b7aa17d1c83a670d852ce6830aad"/><file name="Poll.php" hash="5e9d25dd1aacfcda04efbb9479d7572d"/><file name="Reorder.php" hash="ab69d47477eda3e56daa974bea467b8b"/><file name="Viewed.php" hash="d0da5654c926dd541676ca700e9224f4"/><file name="Wishlist.php" hash="e034784388774f774ff9fa2304def913"/></dir><file name="Toolbar.php" hash="64d2b4c473ca6870700de551dd2d0c8b"/></dir><dir name="Helper"><file name="Data.php" hash="b5dce15c5359031b8bffbcce8ae092b6"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Page"><file name="Collection.php" hash="d3d773e8c27ddc60c63cbe12f7360338"/></dir><file name="Page.php" hash="e03a3ce511572bd18d9aed788890aef1"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Gzip.php" hash="e52a71ef83d6972248649aa9b827e06f"/><file name="Link.php" hash="4b003f2dc2135d5b09be5054d80b39bc"/><file name="Punch.php" hash="4b31e154673337cc3281338b213274b7"/></dir></dir></dir><file name="Cron.php" hash="17c8e5b1959ca4c097e763c0145e76d3"/><file name="Observer.php" hash="702f19d34cf32beba15e3331239e50e7"/><file name="Page.php" hash="a0f5cb3cd4549707dc7003fe5318317e"/><file name="Url.php" hash="4986c44facb989930f82131f99f8414f"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="EzzoomController.php" hash="5c81b2176a51e988ec936f08df519e54"/></dir><file name="CurrencyController.php" hash="68ac362c5c1e8f3f2c925f872e19096e"/><file name="HoleController.php" hash="f1a95f24d18ae9a2a29f6eb93f93cb66"/></dir><dir name="etc"><file name="config.xml" hash="cf093a84aa854de5d62adb888adf2e33"/><file name="system.xml" hash="8f6c0a8a38734a12f9bb3bba18bd6f85"/></dir><dir name="sql"><dir name="ezzoom_setup"><file name="mysql4-install-0.1.0.php" hash="63a89604c0ea43b1a28c8b26f9162a6e"/><file name="mysql4-upgrade-0.1.0-1.0.0.php" hash="57c130b93a3351029dabc377f6e30c59"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="d4f314a3379a2527e7ddd67be9bae5ae"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="d4f314a3379a2527e7ddd67be9bae5ae"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="d4f314a3379a2527e7ddd67be9bae5ae"/></dir></dir></dir><dir name="Tools"><dir name="Block"><dir name="Adminhtml"><dir name="Dashboard"><file name="Diagrams.php" hash="5ffa3bf435f4c6e1907e1d70e6e69705"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="263cac5371ca195617c819d123a414ba"/></dir><dir name="Model"><file name="Feed.php" hash="fce9f3957e6807689a3777c6a794dcff"/><file name="Observer.php" hash="5bdd5ac6fab2040e1fade493acc8e0ac"/></dir><dir name="etc"><file name="config.xml" hash="1068f96fac68fc2e99002dd791cb481c"/><file name="system.xml" hash="beb6cd0ff0d02d69a3500a4b3fda2b58"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Ezapps_Zoom.xml" hash="6a2c922f7842fbceaf8625badcb7c42d"/><file name="Ezapps_Tools.xml" hash="098bd9ed80008805a76d1646c111a9d6"/></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ezzoom.xml" hash="3690a0172108a4bb81e9deb58cf48bcc"/></dir><dir name="template"><dir name="ezzoom"><dir name="dashboard"><file name="graph.phtml" hash="83bd09191602e5b99cc0e7966bcbb7d2"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ezzoom.xml" hash="bf8e6701c60abc23e0fa511b6ef4dfb0"/></dir><dir name="template"><dir name="ezzoom"><dir name="ajax"><file name="footer.phtml" hash="9cea4281209203f821ccf871faf82de4"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="js"><dir name="ezapps"><file name="ezzoom.js" hash="c2ee3b97eb3df676458298f8ad9c7933"/></dir></dir><dir name="."><file name="ezzoom.php" hash="2cbee8d0be0d61ab75fc3af35fb774b7"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|