Resolves gh-63 to prevent repeateble field from being created a second time. Resolves gh-62 to insure full encryption of JCB packages.

This commit is contained in:
2017-04-01 15:59:54 +02:00
parent b294af2e7d
commit bd0febd92c
237 changed files with 830 additions and 462 deletions

View File

@ -87,7 +87,7 @@ class Compiler extends Infusion
$this->removeFolder($this->componentPath . '/site');
// clear form component xml
$xmlPath = $this->componentPath . '/'. $this->fileContentStatic['###component###']. '.xml';
$componentXML = JFile::read($xmlPath);
$componentXML = file_get_contents($xmlPath);
$textToSite = ComponentbuilderHelper::getBetween($componentXML,'<files folder="site">','</files>');
$textToSiteLang = ComponentbuilderHelper::getBetween($componentXML,'<languages folder="site">','</languages>');
$componentXML = str_replace(array('<files folder="site">'.$textToSite."</files>", '<languages folder="site">'.$textToSiteLang."</languages>"), array('',''), $componentXML);
@ -156,7 +156,7 @@ class Compiler extends Infusion
// we don't update lang now since we will still posible add custom code
$langCheck = 'en-GB.com_'.$this->fileContentStatic['###component###'].'.';
// get the bom file
$bom = JFile::read($this->bomPath);
$bom = file_get_contents($this->bomPath);
// first we do the static files
foreach ($this->newFiles['static'] as $static)
{
@ -174,7 +174,7 @@ class Compiler extends Infusion
{
$php = "<?php\n";
}
$string = JFile::read($static['path']);
$string = file_get_contents($static['path']);
if (strpos($string,'###BOM###') !== false)
{
list($wast,$code) = explode('###BOM###',$string);
@ -211,7 +211,7 @@ class Compiler extends Infusion
{
$php = "<?php\n";
}
$string = JFile::read($file['path']);
$string = file_get_contents($file['path']);
if (strpos($string,'###BOM###') !== false)
{
list($bin,$code) = explode('###BOM###',$string);
@ -364,7 +364,7 @@ class Compiler extends Infusion
$this->buildReadMeData();
}
// get the file
$string = JFile::read($path);
$string = file_get_contents($path);
// update the file
$answer = $this->setPlaceholders($string, $this->fileContentStatic);
// add to zip array

View File

@ -1085,7 +1085,7 @@ class Infusion extends Interpretation
{
foreach ($this->langFiles as $file)
{
$string = JFile::read($file['path']);
$string = file_get_contents($file['path']);
// load the data
$answer = $this->setPlaceholders($string, $lang, 3);
// add to zip array

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.0
@build 31st March, 2017
@version 2.4.1
@build 1st April, 2017
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.0
@build 31st March, 2017
@version 2.4.1
@build 1st April, 2017
@created 30th April, 2015
@package Component Builder
@subpackage headercheck.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.0
@build 31st March, 2017
@version 2.4.1
@build 1st April, 2017
@created 30th April, 2015
@package Component Builder
@subpackage batch_.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.0
@build 31st March, 2017
@version 2.4.1
@build 1st April, 2017
@created 30th April, 2015
@package Component Builder
@subpackage indenter.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.0
@build 31st March, 2017
@version 2.4.1
@build 1st April, 2017
@created 30th April, 2015
@package Component Builder
@subpackage js.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.0
@build 31st March, 2017
@version 2.4.1
@build 1st April, 2017
@created 30th April, 2015
@package Component Builder
@subpackage minify.php