12.10.2016 1.0.1 fix reading sitemap url with user/pass
fix checking sitemap object
Dieser Commit ist enthalten in:
Ursprung
7acb57980d
Commit
5d8ba32d82
@ -20,7 +20,10 @@ Installation
|
||||
|
||||
Changelog
|
||||
|
||||
25.08.2016 1.0.0 module release
|
||||
12.10.2016 1.0.1 fix reading sitemap url with user/pass
|
||||
fix checking sitemap object
|
||||
|
||||
25.08.2016 1.0.0 module release for oxid 4.7, 4.8, 4.9, 4.10
|
||||
|
||||
|
||||
License
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @copyright (c) Proud Sourcing GmbH | 2016
|
||||
* @link www.proudcommerce.com
|
||||
* @package psCacheWarmer
|
||||
* @version 1.0.0
|
||||
* @version 1.0.1
|
||||
**/
|
||||
class psCacheWarmer extends oxUBase
|
||||
{
|
||||
@ -63,8 +63,12 @@ class psCacheWarmer extends oxUBase
|
||||
$sSitemapUrl = $this->_getSitemapUrl();
|
||||
}
|
||||
|
||||
$sUsername = oxRegistry::getConfig()->getShopConfVar('psCacheWarmerUser');
|
||||
$sPassword = oxRegistry::getConfig()->getShopConfVar('psCacheWarmerPass');
|
||||
$sSitemapUrl = str_replace("://", "://".$sUsername.":".$sPassword."@", $sSitemapUrl);
|
||||
|
||||
$sSitemapXmlData = @file_get_contents($sSitemapUrl);
|
||||
if(($oSitemap = @simplexml_load_string($sSitemapXmlData)) != false) {
|
||||
if($oSitemap = @simplexml_load_string($sSitemapXmlData)) {
|
||||
if (count($oSitemap->sitemap) > 0) {
|
||||
foreach ($oSitemap->sitemap as $oSubSitemap) {
|
||||
$sNextSitemapUrl = (string)$oSubSitemap->loc;
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @copyright (c) Proud Sourcing GmbH | 2016
|
||||
* @link www.proudcommerce.com
|
||||
* @package psCacheWarmer
|
||||
* @version 1.0.0
|
||||
* @version 1.0.1
|
||||
**/
|
||||
$sLangName = "Deutsch";
|
||||
// -------------------------------
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @copyright (c) Proud Sourcing GmbH | 2016
|
||||
* @link www.proudcommerce.com
|
||||
* @package psCacheWarmer
|
||||
* @version 1.0.0
|
||||
* @version 1.0.1
|
||||
**/
|
||||
|
||||
/**
|
||||
@ -29,7 +29,7 @@ $aModule = array(
|
||||
<b>URL:</b> <a href="'.oxRegistry::getConfig()->getConfigParam('sShopURL').'?cl=psCacheWarmer&key='.oxRegistry::getConfig()->getShopConfVar('psCacheWarmerKey', oxRegistry::getConfig()->getShopId()).'" target="_blank">'.oxRegistry::getConfig()->getConfigParam('sShopURL').'?cl=psCacheWarmer&key='.oxRegistry::getConfig()->getShopConfVar('psCacheWarmerKey', oxRegistry::getConfig()->getShopId()).'</a>',
|
||||
),
|
||||
'thumbnail' => 'logo.jpg',
|
||||
'version' => '1.0.0',
|
||||
'version' => '1.0.1',
|
||||
'author' => 'Proud Sourcing GmbH',
|
||||
'url' => 'http://www.proudcommerce.com/',
|
||||
'email' => 'support@proudcommerce.com',
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @copyright (c) Proud Sourcing GmbH | 2016
|
||||
* @link www.proudcommerce.com
|
||||
* @package psCacheWarmer
|
||||
* @version 1.0.0
|
||||
* @version 1.0.1
|
||||
**/
|
||||
$sLangName = "Deutsch";
|
||||
// -------------------------------
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren