Skip to content

Commit

Permalink
use https
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisxrow authored May 16, 2017
1 parent fbc7c86 commit b0159b8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions classes/xrowsitemaptools.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ public static function ping( $hostname = null )
{
$uri = '/sitemaps/index';
eZURI::transformURI( $uri );
$link = 'http://' . $hostname . $uri;
$link = 'https://' . $hostname . $uri;
// google
$url = "http://www.google.com/webmasters/tools/ping?sitemap=" . $link;
$url = "https://www.google.com/webmasters/tools/ping?sitemap=" . $link;
file_get_contents( $url );
// bing
$url = "http://www.bing.com/webmaster/ping.aspx?siteMap=" . $link;
$url = "https://www.bing.com/webmaster/ping.aspx?siteMap=" . $link;
file_get_contents( $url );
}
}
Expand Down Expand Up @@ -307,13 +307,13 @@ public static function addNode( xrowSitemap $sitemap, eZContentObjectTreeNode $n
$ini->hasVariable( 'SitemapSettings', 'MobileSiteAccessName' ) != '' )
{
$mobileSiteAccess = $ini->variable( 'SitemapSettings', 'MobileSiteAccessName' );
$mobileURL = 'http://' . self::domain() . '/' . $mobileSiteAccess . $urlAlias;
$mobileURL = 'https://' . self::domain() . '/' . $mobileSiteAccess . $urlAlias;
}
if ( $ini->hasVariable( 'SitemapSettings', 'MobileDomainName' ) &&
$ini->hasVariable( 'SitemapSettings', 'MobileDomainName' ) != '' )
{
$mobileDomain = $ini->variable( 'SitemapSettings', 'MobileDomainName' );
$mobileURL = 'http://' . $mobileDomain . $urlAlias;
$mobileURL = 'https://' . $mobileDomain . $urlAlias;
}
$extensions[] = new xrowSitemapItemAlternateLink( $mobileURL );
}
Expand All @@ -331,11 +331,11 @@ public static function addNode( xrowSitemap $sitemap, eZContentObjectTreeNode $n
{
if ( $site_ini->variable( 'SiteAccessSettings', 'RemoveSiteAccessIfDefaultAccess' ) == 'enabled' or $ini->variable( 'Settings', 'HideSiteaccessAlways' ) == 'true' )
{
$url = 'http://' . self::domain() . $url;
$url = 'https://' . self::domain() . $url;
}
else
{
$url = 'http://' . self::domain() . '/' . $GLOBALS['eZCurrentAccess']['name'] . $url;
$url = 'https://' . self::domain() . '/' . $GLOBALS['eZCurrentAccess']['name'] . $url;
}
}

Expand Down Expand Up @@ -889,7 +889,7 @@ public static function createNewsSitemap()

$url = $node->attribute( 'url_alias' );
eZURI::transformURI( $url, true );
$url = 'http://' . self::domain() . $url;
$url = 'https://' . self::domain() . $url;
$sitemap->add( $url, $extensions );

if ( isset( $bar ) )
Expand Down Expand Up @@ -1012,7 +1012,7 @@ public static function createMobileSitemap()
}


$url = 'http://' . $mobileDomain . $url;
$url = 'https://' . $mobileDomain . $url;

if ( $meta and $meta->sitemap_use != '0' )
{
Expand Down Expand Up @@ -1050,7 +1050,7 @@ public static function createMobileSitemap()

$url = $subTreeNode->attribute( 'url_alias' );
eZURI::transformURI( $url );
$url = 'http://' . $mobileDomain . $url;
$url = 'https://' . $mobileDomain . $url;

if ( $meta and $meta->sitemap_use != '0' )
{
Expand Down

0 comments on commit b0159b8

Please sign in to comment.