if (is_array($watermark_images)) { $watermark_mtime = 0; foreach ($watermark_images as $watermark_image_path) { $watermark_mtime = max($watermark_mtime, filemtime($watermark_image_path)); } } else { $watermark_mtime = 0; } $watermarkedImageMtimeMustBe = max(filemtime($originalImageName), $watermark_mtime); $watermarkedImageName = \common\classes\Images::getFSCatalogImagesPath() . $requested_image; try{ FileHelper::createDirectory(dirname($watermarkedImageName),0777); }catch (\Exception $ex){} $tmp_file = tempnam(dirname($watermarkedImageName), basename($watermarkedImageName)); if ($tmp_file_h = fopen($tmp_file,'wb')) {
foreach ($watermark_images as $watermark_image_path) { $watermark_mtime = max($watermark_mtime, filemtime($watermark_image_path)); } } else { $watermark_mtime = 0; } $watermarkedImageMtimeMustBe = max(filemtime($originalImageName), $watermark_mtime); $watermarkedImageName = \common\classes\Images::getFSCatalogImagesPath() . $requested_image; try{ FileHelper::createDirectory(dirname($watermarkedImageName),0777); }catch (\Exception $ex){}
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
if ($ext::allowed() ) { $ext::registerJsFile($this->getView()); } } } return parent::runAction($id, $params); } protected function setMeta($id, $params) {
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require(__DIR__ . '/../../common/config/main-local.php'), require(__DIR__ . '/../config/main.php'), require(__DIR__ . '/../config/main-local.php') ); $application = new yii\web\Application($config); $application->run();
* * For the full copyright and license information, please view the LICENSE file that was distributed with this source code. */ require('includes/application_top.php'); require(__DIR__ . '/lib/frontend/web/index.php'); require_once('includes/application_bottom.php');
if ( isset($_SERVER['SCRIPT_FILENAME']) ) $_SERVER['SCRIPT_FILENAME'] = str_replace('/images/index.php','/index.php', $_SERVER['SCRIPT_FILENAME']); if ( isset($_SERVER['PHP_SELF']) ) $_SERVER['PHP_SELF'] = str_replace('/images/index.php','/index.php', $_SERVER['PHP_SELF']); if ( isset($_SERVER['SCRIPT_NAME']) ) $_SERVER['SCRIPT_NAME'] = str_replace('/images/index.php','/index.php', $_SERVER['SCRIPT_NAME']); define('IS_NESTED_IMAGE_HANDLER',1); chdir('..'); include('index.php');
$_GET = [ 'r' => 'image/cached', 'image' => 'fly-and-flies/devaux-dvx-pelle-pardo-clear-p-21606/13404/800x800/PARDP01.jpg', ]; $_SESSION = [ '__flash' => [], '_tlStorageId' => '-bZTWS-jLg4nU4TMeo62mLeQBDAZJM3A', 'platform_sattelite' => 0, 'platform_code' => '', '-bZTWS-jLg4nU4TMeo62mLeQBDAZJM3A' => [ 'customer_groups_id' => '1', ], 'language' => 'english', 'primary-settings' => [ 'locale' => 'en_GB', 'languages_id' => '1', 'currency_id' => '2', 'currency' => 'EUR', ], 'SHOW_OUT_OF_STOCK' => 1, 'gl' => 'grid', 'bpObserver' => unserialize('O:48:"common\\models\\promotions\\PromotionsBonusObserver":2:{s:11:"workingDate";s:10:"29-03-2024";s:7:"actions";a:0:{}}'), ];