/var
/www
/e012
/plugin
/de.masstisch.engines
/Configurator
/Tpl.php
if (FG_String::isCrawler()) {
return false;
}
if (FG_Page::MODE_DIRECT_EDIT == FG_Page::$cfgMode) {
return false;
}
return true;
}
protected function setActualId($ident)
{
$this->lastId($this->id($this->actualArticleId = $ident));
if (!empty($_REQUEST['p'])) {
$item = MTPlugin_Configuration::getInstance()->getItem($this->actualArticleId);
$p = FG_Item::createFromKeywords($_REQUEST['p']);
$_REQUEST['p'] = null;
$item->setPlain($p->p);
if ($this->shallRelocate()) {
return $this->reLocate();
}
}
// FG_Log::log('$_REQUEST[ident] :: ' . (empty($_REQUEST['ident']) ? 'NULL' : $_REQUEST['ident']));
// FG_Log::log('Ident: ' . $ident);
if (!empty($_REQUEST['ident']) or !empty($_GET['ident']) or !empty($_REQUEST['p'])) {
$_REQUEST['ident'] = null;
$_GET['ident'] = null;
if ($this->shallRelocate()) {
return $this->reLocate();
}
}
}
protected function reLocate()
{
$url = FG_Page_SiteNav::substituteOutgoingEngine($this->actArt_engine);
Arguments
"Call to undefined method stdClass::setPlain()"
/var
/www
/e012
/plugin
/de.masstisch.engines
/Configurator
/Tpl.php
$sessItem = FG_Cart::getInstance()->getItem(FG_Item::muid($item));
if ($sessItem->isFlagged(FG_SessionCart::PROP_REPLACED)) {
$replacedBy = $sessItem->getValue(FG_SessionCart::PROP_REPLACED);
throw new MTEngine_Configurator_Tpl_AlternateIdent($sessItem->getValue(FG_SessionCart::PROP_REPLACED));
} elseif (FG_Page::MODE_STD == FG_Page::$cfgMode and $sessItem->isFlagged(FG_SessionCart::PROP_INBASKET) and !empty($_REQUEST['ident'])) {
$this->cloneArticle($item);
} elseif ($sessItem->isFlagged(FG_SessionCart::PROP_INBASKET) and empty($_REQUEST['ident'])) {
$this->actualArticleId = 'new';
$this->createArticle();
} elseif (!$sessItem->isFlagged(FG_SessionCart::PROP_INBASKET) and !$sessItem->isFlagged(FG_SessionCart::PROP_CLONEOF)) {
FG_Log::log('!inBasket and !Clone');
} elseif (FG_SessionCart::isClone($sessItem)) {
FG_Log::log('Is A Clone');
}
} else {
FG_Log::log('Cart does not have it');
}
}
$r = $this->setActualId(FG_Item::muid($item));
if (is_object($r)) {
return $r;
}
if (true === isset($_REQUEST['Modell']) and method_exists($item, 'changeModell')) {
$item->changeModell(ucfirst(strtolower($_REQUEST['Modell'])));
}
return $item;
} catch (MTEngine_Configurator_Tpl_AlternateIdent $e) {
$_REQUEST['ident'] = $this->actualArticleId = $e->getMessage();
return $this->findActualArticle($sessAppend);
}
}
public function fetch()
{
// if (self::$showDelivery) {
// $Lieferung = MTPlugin_Configuration::getInstance()->getItem('Lieferung');
Arguments
/var
/www
/e012
/plugin
/de.masstisch.engines
/Configurator
/Tpl.php
return false;
}
if (method_exists($this, 'qualifyForActualArticle')) {
if (!$this->qualifyForActualArticle($item)) {
return false;
}
}
return true;
}
protected function findActualArticle()
{
if (!is_null($this->useItem)) {
$this->actualArticleId = FG_Item::muid($this->useItem);
return $this->useItem;
}
$item = $this->_findActualArticle();
$Class = $item->Class;
$tmp = new $Class($item);
$tmp->Ident = FG_Item::muid($item);
$tmp->ForeignIdent = $item->ForeignIdent;
$tmp->setPlain($item);
$this->actualItems[] = $tmp;
return $tmp;
}
private function _findActualArticle()
{
global $app;
try {
if (!empty($_REQUEST['ident']) and $this->session->has('child_map/' . $_REQUEST['ident'])) {
throw new MTEngine_Configurator_Tpl_AlternateIdent($this->session->get('child_map/' . $_REQUEST['ident']));
}
$Config = MTPlugin_Configuration::getInstance();
/var
/www
/e012
/plugin
/de.masstisch.engines
/Configurator
/Bett.php
/**
* @var MTData_Lattenrost
*/
private $articleFrame = null;
private $keepBackVisible = false;
protected $runModels_withBase = false;
public function fetchExtra()
{
}
public function init()
{
parent::init();
$this->Portlets->SetColumns(2);
$Config = MTPlugin_Configuration::getInstance();
$this->actArt_className = MTData_Bett::class;
$this->actArt_engine = 'configurator.bett';
$this->article = $this->findActualArticle();
if (!empty($_REQUEST['loadPid'])) {
$plain = MT_ItemProperties::extractPlain($this->fetchPosition($_REQUEST['loadPid']));
$this->article->setPlain($plain);
$this->article->checkRequest();
}
$identBackrest = $this->actualArticleId . ($identAppendBackrest = '_cushion');
$identPads = $this->actualArticleId . ($identAppendPads = '_pads');
$identMattress = $this->actualArticleId . ($identAppendMattress = '_mattress');
$identFrame = $this->actualArticleId . ($identAppendFrame = '_frame');
$this->articleBackrest = $this->grabChild($this->article, 'MTData_Rueckenlehne', $identAppendBackrest);
$this->articleMatress = $this->grabChild($this->article, 'MTData_Matratze', $identAppendMattress);
$this->articleFrame = $this->grabChild($this->article, 'MTData_Lattenrost', $identAppendFrame);
Configurate::wood($this->article);
if (!empty($_REQUEST['Modell'])) {
$this->article->changeModell(ucfirst(strtolower($_REQUEST['Modell'])));
/var
/www
/e012
/plugin
/de.masstisch.engines
/Configurator
/Tpl.php
$db = MT_DB_COMMON;
return FG_DB::getObject("
SELECT *
FROM {$db}positionen
WHERE id = $pid
");
}
protected function getImgNum()
{
return $this->imgNum++;
}
public function __construct(\Silex\Application $app, $item = null)
{
$this->app = $app;
$this->useItem = $item;
parent::__construct();
$this->init($item);
}
public function __toString()
{
$o = [];
foreach ($this->setUpPortlets() as $plt) {
if (is_string($plt)) {
array_push($o, $plt);
} elseif (method_exists($plt, '__toString')) {
array_push($o, $plt->__toString());
}
}
return implode(' ', $o);
}
public function init()
{
$this->session = $GLOBALS['app']['session'];
$match = [];
Arguments
/var
/www
/e012
/src
/fueg
/Ordering.php
$MI = new MC_MoebelInitializer('from_nav', $_REQUEST, $MDU);
$MI->buildAktKonfig();
$MI->buildFromNav();
}
if (MC_SessionRegistry::getInstance()->aktMoebelUId) {
// $_REQUEST['moebel_uid'] = MC_SessionRegistry::getInstance()->aktMoebelUId;
}
ob_start();
include 'mc/html/konfigurator/moebel/step1.php';
MC_MasterCart::getInstance()->pushToSessionCart();
return $this->app['twig']->render('konfigurator/tisch.twig', [
'content' => ob_get_clean(),
]);
default:
$class = 'MTEngine_Configurator_' . $article;
$eng = new $class($this->app);
return $this->app['twig']->render('konfigurator/tisch.twig', [
'content' => $eng->__toString(),
]);
}
// } catch (RedirectException $ex) {
// $response = $this->app->redirect($ex->getMessage(), $ex->getCode());
// $this->app->terminate($request, $response);
// return $response;
// }
}
public function articleConverter($article)
{
switch ($article) {
case 'tv-board':
$article = TVBOARD;
break;
}
Arguments
/var
/www
/e012
/vendor
/symfony
/http-kernel
/HttpKernel.php
// load controller
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new FilterControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
$event = new FilterControllerArgumentsEvent($this, $controller, $arguments, $request, $type);
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
if ($event->hasResponse()) {
$response = $event->getResponse();
}
if (!$response instanceof Response) {
$msg = sprintf('The controller must return a response (%s given).', $this->varToString($response));
// the user may have forgotten to return something
if (null === $response) {
$msg .= ' Did you forget to add a return statement somewhere in your controller?';
}
throw new \LogicException($msg);
}
}
Arguments
Request {#712
+attributes: ParameterBag {#715}
+request: ParameterBag {#713}
+query: ParameterBag {#714}
+server: ServerBag {#718}
+files: FileBag {#717}
+cookies: ParameterBag {#716}
+headers: HeaderBag {#719}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/konfigurator/bett/"
#requestUri: "/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Session {#675}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
"Bett"
/var
/www
/e012
/vendor
/symfony
/http-kernel
/HttpKernel.php
$this->resolver = $resolver;
$this->requestStack = $requestStack ?: new RequestStack();
$this->argumentResolver = $argumentResolver;
if (null === $this->argumentResolver) {
@trigger_error(sprintf('As of 3.1 an %s is used to resolve arguments. In 4.0 the $argumentResolver becomes the %s if no other is provided instead of using the $resolver argument.', ArgumentResolverInterface::class, ArgumentResolver::class), E_USER_DEPRECATED);
// fallback in case of deprecations
$this->argumentResolver = $resolver;
}
}
/**
* {@inheritdoc}
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->finishRequest($request, $type);
throw $e;
}
return $this->handleException($e, $request, $type);
}
}
/**
* {@inheritdoc}
*/
public function terminate(Request $request, Response $response)
{
$this->dispatcher->dispatch(KernelEvents::TERMINATE, new PostResponseEvent($this, $request, $response));
Arguments
Request {#712
+attributes: ParameterBag {#715}
+request: ParameterBag {#713}
+query: ParameterBag {#714}
+server: ServerBag {#718}
+files: FileBag {#717}
+cookies: ParameterBag {#716}
+headers: HeaderBag {#719}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/konfigurator/bett/"
#requestUri: "/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Session {#675}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
1
/var
/www
/e012
/vendor
/silex
/silex
/src
/Silex
/Application.php
$response = $this->handle($request);
$response->send();
$this->terminate($request, $response);
}
/**
* {@inheritdoc}
*
* If you call this method directly instead of run(), you must call the
* terminate() method yourself if you want the finish filters to be run.
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
if (!$this->booted) {
$this->boot();
}
$this->flush();
return $this['kernel']->handle($request, $type, $catch);
}
/**
* {@inheritdoc}
*/
public function terminate(Request $request, Response $response)
{
$this['kernel']->terminate($request, $response);
}
}
Arguments
Request {#712
+attributes: ParameterBag {#715}
+request: ParameterBag {#713}
+query: ParameterBag {#714}
+server: ServerBag {#718}
+files: FileBag {#717}
+cookies: ParameterBag {#716}
+headers: HeaderBag {#719}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/konfigurator/bett/"
#requestUri: "/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Session {#675}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
1
true
/var
/www
/e012
/vendor
/silex
/silex
/src
/Silex
/Application.php
throw new \LogicException('The "mount" method takes either a "ControllerCollection" instance, "ControllerProviderInterface" instance, or a callable.');
}
$this['controllers']->mount($prefix, $controllers);
return $this;
}
/**
* Handles the request and delivers the response.
*
* @param Request|null $request Request to process
*/
public function run(Request $request = null)
{
if (null === $request) {
$request = Request::createFromGlobals();
}
$response = $this->handle($request);
$response->send();
$this->terminate($request, $response);
}
/**
* {@inheritdoc}
*
* If you call this method directly instead of run(), you must call the
* terminate() method yourself if you want the finish filters to be run.
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
if (!$this->booted) {
$this->boot();
}
$this->flush();
return $this['kernel']->handle($request, $type, $catch);
}
Arguments
Request {#712
+attributes: ParameterBag {#715}
+request: ParameterBag {#713}
+query: ParameterBag {#714}
+server: ServerBag {#718}
+files: FileBag {#717}
+cookies: ParameterBag {#716}
+headers: HeaderBag {#719}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/konfigurator/bett/"
#requestUri: "/konfigurator/bett/?phpsess=0r2vkfb9c8rg5v1tq6554ge9e6&p=ligera%2Ceic"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Session {#675}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var
/www
/e012
/web
/index_dev.php
<?php
use Symfony\Component\Debug\Debug;
require_once __DIR__ . '/../vendor/autoload.php';
$app = require __DIR__ . '/../src/app.php';
require_once __DIR__ . '/../cfg.inc.php';
require_once __DIR__ . '/../src/cfg.ini.php';
Debug::enable(E_ALL, true);
require __DIR__ . '/../config/dev.php';
require __DIR__ . '/../src/controllers.php';
$app->run();
/var
/www
/e012
/web
/index.php
<?php
require_once __DIR__ . '/index_dev.php';
Arguments
"/var/www/e012/web/index_dev.php"