Skip to content

Commit

Permalink
some line changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tabsl committed Jun 5, 2013
1 parent de96740 commit 7234196
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -7,8 +7,9 @@ Free Module for OXID eShop.

Features

- configure different urls for CSS/IMG/JS files in config.inc.php
(info: https://developers.google.com/speed/docs/best-practices/request?hl=de-DE#ServeFromCookielessDomain, https://developers.google.com/speed/docs/best-practices/rtt?hl=de-DE#ParallelizeDownloads)
- configure different URLs/domains in config.inc.php
(https://developers.google.com/speed/docs/best-practices/request?hl=de-DE#ServeFromCookielessDomain)
(https://developers.google.com/speed/docs/best-practices/rtt?hl=de-DE#ParallelizeDownloads)


Installation
Expand Down
14 changes: 8 additions & 6 deletions changed_full/config.inc.php
Expand Up @@ -187,11 +187,13 @@
*/
$this->blUseCron = false;

// psCDN | start
if (!isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != '1' || strtolower($_SERVER['HTTPS']) != 'on')) {
$this->sShopURLPsSrc = 'http://js.yourdomain.com'; // oxstyle
$this->sShopURLPsCss = 'http://css.yourdomain.com'; // oxscript
$this->sShopURLPsImg = 'http://img.yourdomain.com'; // getImageUrl()
$this->sAltImageDir = "http://pics.yourdomain.com/out/pictures"; // article pics
// psCDN | start
// all domains should point on the same as your shop url
if (!isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != '1' || strtolower($_SERVER['HTTPS']) != 'on'))
{
$this->sShopURLPsSrc = 'http://js.yourdomain.com'; // oxstyle
$this->sShopURLPsCss = 'http://css.yourdomain.com'; // oxscript
$this->sShopURLPsImg = 'http://img.yourdomain.com'; // getImageUrl()
$this->sAltImageDir = "http://pics.yourdomain.com/out/pictures"; // article pics
}
// psCDN | end
@@ -1,4 +1,15 @@
<?php
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* @copyright (c) Proud Sourcing GmbH | 2013
* @link www.proudcommerce.com
* @package psCDN
* @version 1.0.0
**/
class pscdn_oxViewConfig extends pscdn_oxViewConfig_parent
{

Expand All @@ -21,7 +32,8 @@ public function getImageUrl( $sFile = null )
// psCDN | start
$sShopImgURL = $this->getConfig()->getConfigParam( 'sShopURLPsImg' );
$sShopURL = $this->getConfig()->getConfigParam( 'sShopURL' );
if(!$this->isAdmin() && !empty($sShopImgURL)) {
if(!$this->isAdmin() && !empty($sShopImgURL))
{
return str_replace($sShopURL, $sShopImgURL.'/', $sValue);
}
// psCDN | end
Expand Down

0 comments on commit 7234196

Please sign in to comment.