add missing files
This commit is contained in:
parent
5293ec3c8c
commit
7be4a27826
174
src/Models/d3watermarkImageGenerator.php
Normal file
174
src/Models/d3watermarkImageGenerator.php
Normal file
@ -0,0 +1,174 @@
|
||||
<?php //006ed
|
||||
// This Software is the property of D³ Data Development and is protected by copyright law - it is NOT Freeware. Any unauthorized use of this software without a valid license key is a violation of the license agreement and will be prosecuted by civil and criminal law. Inhaber: Thomas Dartsch Alle Rechte vorbehalten @package Wasserzeichen @version 3.1.0.0 PHP56 (07.06.2019) @author Daniel Seifert support@shopmodule.com @copyright (C) 2019, D3 Data Development @see http://www.shopmodule.com
|
||||
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'<a href="http://www.ioncube.com">ionCube</a>')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>')." for install assistance.\n\n");exit(199);
|
||||
?>
|
||||
HR+cPtU4V4MmIKLhJLJfPi9sDPrGeIXy7y9V+Rcu4fDG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3ZIBRJcSM7jd
|
||||
dQnldizDyxX3ziVJ6vldqOrtr8eoc2U3o8V6npRvf3vVO+FsQ9/PGxBRPVeB8Tm6EbA7iZyQfVZF
|
||||
zJ9IttAt7+IXnziZX2j7G2XqFWECbH6vSeVak6o9UoIxZ7SHxMZt7NdtAxn4gQy4nc8ZZKPnlxIj
|
||||
p2ZQYzAM19wfc9URFZqbS8sEdduvcFhMIiHXb08gO8flnqjsYoJTrnxIjYG4aTs73Yrkfftz4uLQ
|
||||
vj4c13MThFlnqh/7sCzXhAKvBhg5NrjVPW4aW48QOCPZSPUO5yI4v+BonZUuqGXA4uD6ccOnFdrG
|
||||
uIitIrTZ76cmvyZ/wsoQS4i+HqaQG0/nO3QhGJbU/7vb54psmvbepn5hiiZWfVCktaqWpzdBW5fY
|
||||
B+dboaOhc2meXOFLN6Sm1OG5amrHBXjYHbTJAPq0+wWCbAsJaOsgPx9KT8NUf6vBIdORrIfkoDqc
|
||||
068tcLHp7MCUPW5wN9v5o9fMljWZ9Zfk/li4/gxZLA3jC4DF889neL9p3oNSMvMMwtE+MKv8flaQ
|
||||
1+g+4z+L2ixgL5d+osxyRMxjkL5798QH6S2CY8ghnOwZSpj7/drQ1zHRSIskViP9cZ06ehewi2VY
|
||||
qO7P3bAiyM/RSsKE6V9qHe98q1ePU5eoSCElmVW7oROmUJHjLY5RJj7MHFj3ulv4aDgf6hwXnHqB
|
||||
/r61QyU7iTzj3KqzIC5ytzUW189ryJ8rsPT4LfC/L6ja/R9zRsa/GPMOzLIhi5iiedAs4zRHpaoL
|
||||
NCQs6HV4SICaA7dFBBgbDYwkp7KWBx5x/l3DYEkQSgxlcK+zzEHMXzapUJGtzZ3IRC07d5/Xt8Ry
|
||||
vaam1EYxBkXd/h7OlvjqAoIuGuTqM6hfkIvehj8jt6TPnRJE0i1SZMBlUApx/vvCaW==
|
211
src/bin/d3watermark
Normal file
211
src/bin/d3watermark
Normal file
@ -0,0 +1,211 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This Software is the property of Data Development and is protected
|
||||
* by copyright law - it is NOT Freeware.
|
||||
*
|
||||
* Any unauthorized use of this software without a valid license
|
||||
* is a violation of the license agreement and will be prosecuted by
|
||||
* civil and criminal law.
|
||||
*
|
||||
* http://www.shopmodule.com
|
||||
*
|
||||
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
||||
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
||||
* @link http://www.oxidmodule.com
|
||||
*/
|
||||
|
||||
namespace D3\Watermark;
|
||||
|
||||
use D3\ModCfg\Application\Model\Exception\d3_cfg_mod_exception;
|
||||
use D3\ModCfg\Application\Model\Exception\d3ShopCompatibilityAdapterException;
|
||||
use D3\ModCfg\Application\Model\Maintenance\d3clrtmp;
|
||||
use D3\Watermark\Models\d3watermarkImageGenerator;
|
||||
use Dariuszp\CliProgressBar;
|
||||
use Doctrine\DBAL\DBALException;
|
||||
use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException;
|
||||
use OxidEsales\Eshop\Core\Exception\DatabaseErrorException;
|
||||
use OxidEsales\Eshop\Core\Exception\StandardException;
|
||||
use OxidEsales\Eshop\Core\Module\Module;
|
||||
use splitbrain\phpcli\CLI;
|
||||
use splitbrain\phpcli\Options;
|
||||
|
||||
$bootstrapFileName = getenv('ESHOP_BOOTSTRAP_PATH');
|
||||
if (!empty($bootstrapFileName)) {
|
||||
$bootstrapFileName = realpath(trim(getenv('ESHOP_BOOTSTRAP_PATH')));
|
||||
} else {
|
||||
$count = 0;
|
||||
$bootstrapFileName = '../../../../../source/bootstrap.php';
|
||||
$currentDirectory = __DIR__ . '/';
|
||||
while ($count < 5) {
|
||||
$count++;
|
||||
if (file_exists($currentDirectory . $bootstrapFileName)) {
|
||||
$bootstrapFileName = $currentDirectory . $bootstrapFileName;
|
||||
break;
|
||||
}
|
||||
$bootstrapFileName = '../' . $bootstrapFileName;
|
||||
}
|
||||
}
|
||||
|
||||
if (!(file_exists($bootstrapFileName) && !is_dir($bootstrapFileName))) {
|
||||
$items = [
|
||||
"Unable to find eShop bootstrap.php file.",
|
||||
"You can override the path by using ESHOP_BOOTSTRAP_PATH environment variable.",
|
||||
"\n"
|
||||
];
|
||||
|
||||
$message = implode(" ", $items);
|
||||
|
||||
die($message);
|
||||
}
|
||||
|
||||
require_once($bootstrapFileName);
|
||||
|
||||
ini_set('error_reporting', E_ERROR);
|
||||
|
||||
class d3watermark extends CLI
|
||||
{
|
||||
// register options and arguments
|
||||
protected function setup(Options $options)
|
||||
{
|
||||
$options->setHelp('Provides maintenance functions for article images');
|
||||
$options->registerCommand('delete', 'delete generated object images');
|
||||
$options->registerCommand('generate', 'call object images to start generation of not existing one');
|
||||
$options->registerCommand('renew', 'renew object images');
|
||||
$options->registerOption('version', 'print version', 'v');
|
||||
$options->registerArgument('types', 'affected image types - possible types are: '.d3watermarkImageGenerator::ALL.', '.d3watermarkImageGenerator::PRODUCT.', '.d3watermarkImageGenerator::CATEGORY.', '.d3watermarkImageGenerator::MANUFACTURER.', '.d3watermarkImageGenerator::VENDOR.', '.d3watermarkImageGenerator::WRAPPING, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Options $options
|
||||
*
|
||||
* @throws DBALException
|
||||
* @throws DatabaseConnectionException
|
||||
* @throws DatabaseErrorException
|
||||
* @throws StandardException
|
||||
* @throws d3ShopCompatibilityAdapterException
|
||||
* @throws d3_cfg_mod_exception
|
||||
*/
|
||||
protected function main(Options $options)
|
||||
{
|
||||
if ($options->getOpt('version')) {
|
||||
$oModule = oxNew(Module::class);
|
||||
$oModule->load('d3_watermark');
|
||||
$this->info($oModule->getModuleData()['version']);
|
||||
}
|
||||
|
||||
switch ($options->getCmd()) {
|
||||
case 'delete':
|
||||
$this->startDeleting($options);
|
||||
break;
|
||||
case 'generate':
|
||||
$this->startGenerating($options);
|
||||
break;
|
||||
case 'renew':
|
||||
$this->startDeleting($options);
|
||||
$this->startGenerating($options);
|
||||
break;
|
||||
default:
|
||||
echo $options->help();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Options $options
|
||||
*
|
||||
* @throws DBALException
|
||||
* @throws d3ShopCompatibilityAdapterException
|
||||
* @throws d3_cfg_mod_exception
|
||||
* @throws DatabaseConnectionException
|
||||
* @throws DatabaseErrorException
|
||||
* @throws StandardException
|
||||
*/
|
||||
public function startDeleting(Options $options)
|
||||
{
|
||||
/** @var $oClrTmp d3clrtmp */
|
||||
$oClrTmp = oxNew(d3clrtmp::class);
|
||||
switch (trim(strtolower($options->getArgs()[0]))) {
|
||||
case d3watermarkImageGenerator::PRODUCT:
|
||||
$oClrTmp->clearGeneratedProductImgs();
|
||||
$this->info('generated product images are deleted');
|
||||
break;
|
||||
case d3watermarkImageGenerator::CATEGORY:
|
||||
$oClrTmp->clearGeneratedCategoryImgs();
|
||||
$this->info('generated category images are deleted');
|
||||
break;
|
||||
case d3watermarkImageGenerator::MANUFACTURER:
|
||||
$oClrTmp->clearGeneratedManufacturerImgs();
|
||||
$this->info('generated manufacturer images are deleted');
|
||||
break;
|
||||
case d3watermarkImageGenerator::VENDOR:
|
||||
$oClrTmp->clearGeneratedVendorImgs();
|
||||
$this->info('generated vendor images are deleted');
|
||||
break;
|
||||
case d3watermarkImageGenerator::WRAPPING:
|
||||
$oClrTmp->clearGeneratedWrappingImgs();
|
||||
$this->info('generated wrapping images are deleted');
|
||||
break;
|
||||
case d3watermarkImageGenerator::ALL:
|
||||
$oClrTmp->clearGeneratedAllImgs();
|
||||
$this->info('all generated images are deleted');
|
||||
break;
|
||||
default:
|
||||
$this->error('no valid image type specified, check argument "type"');
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Options $options
|
||||
*
|
||||
* @throws DBALException
|
||||
*/
|
||||
public function startGenerating(Options $options)
|
||||
{
|
||||
switch (trim(strtolower($options->getArgs()[0]))) {
|
||||
case d3watermarkImageGenerator::PRODUCT:
|
||||
case d3watermarkImageGenerator::CATEGORY:
|
||||
case d3watermarkImageGenerator::MANUFACTURER:
|
||||
case d3watermarkImageGenerator::VENDOR:
|
||||
case d3watermarkImageGenerator::WRAPPING:
|
||||
case d3watermarkImageGenerator::ALL:
|
||||
$oWMImageGenerator = oxNew( d3watermarkImageGenerator::class, $options->getArgs()[0] );
|
||||
|
||||
$blBar = $this->canShowProgressBar( $options );
|
||||
|
||||
if ( $blBar ) {
|
||||
$bar = new CliProgressBar( $oWMImageGenerator->getImagesListCount(), 0, "processing:" );
|
||||
$bar->display();
|
||||
}
|
||||
|
||||
for ( $i = 0; $i < $oWMImageGenerator->getImagesListCount(); $i ++ ) {
|
||||
if ( $blBar ) {
|
||||
$bar->progress( 1 );
|
||||
}
|
||||
$oWMImageGenerator->generateProductImagesRange( $i );
|
||||
}
|
||||
if ( $blBar ) {
|
||||
$bar->end();
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
$this->error( 'no valid image type specified, check argument "type"' );
|
||||
}
|
||||
}
|
||||
|
||||
public function canShowProgressBar(Options $options)
|
||||
{
|
||||
return in_array(
|
||||
strtolower($options->getOpt('loglevel')),
|
||||
[
|
||||
'',
|
||||
'info',
|
||||
'debug'
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$cli = new d3watermark();
|
||||
$cli->run();
|
11
src/public/.htaccess
Normal file
11
src/public/.htaccess
Normal file
@ -0,0 +1,11 @@
|
||||
<FilesMatch ".*">
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require all granted
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
# Apache 2.2
|
||||
order deny,allow
|
||||
allow from all
|
||||
</IfModule>
|
||||
</FilesMatch>
|
Loading…
Reference in New Issue
Block a user