/home/c59brokersallian/public_html/packages/afixia_seo_redirects/src/Concrete/RedirectNotFound.php
urldecode($config->get('afixia_seo_redirects.ignore_list')));
if(in_array($url,$ignore_list)) {
return;
}
$dh = Core::make('helper/date');
$now = new \DateTime('now', $dh->getTimezone('user'));
// $em = ORM::entityManager();
$em = Core::make(DatabaseManagerORM::class)->entityManager();
$notfound = RedirectNotFound::getByUrl($url);
if (isset($notfound)) {
$notfound->rCount++;
$notfound->rLastUsed = $now;
$em->persist($notfound);
$em->flush();
} else {
$notfound = new RedirectNotFoundEntity();
$notfound->set('rFrom', $url);
$notfound->set('rReferer', $_SERVER['HTTP_REFERER']);
$notfound->set('rCount', 1);
$notfound->set('rLastUsed', $now);
$em->persist($notfound);
$em->flush();
}
}
public static function convert_to_array($json){
$ignore_list_array = json_decode($json, true);
if($ignore_list_array === null) {
$ignore_list_array = json_decode('{"ignore_list":[]}', true);
}
$ret_array = array();
foreach ($ignore_list_array["ignore_list"] as $item) {
$url = $item["url"];
$url = strtolower(trim($url));
array_push($ret_array, $url);
}
return($ret_array);
}
Arguments
"Undefined array key "HTTP_REFERER""
/home/c59brokersallian/public_html/packages/afixia_seo_redirects/src/Concrete/RedirectNotFound.php
urldecode($config->get('afixia_seo_redirects.ignore_list')));
if(in_array($url,$ignore_list)) {
return;
}
$dh = Core::make('helper/date');
$now = new \DateTime('now', $dh->getTimezone('user'));
// $em = ORM::entityManager();
$em = Core::make(DatabaseManagerORM::class)->entityManager();
$notfound = RedirectNotFound::getByUrl($url);
if (isset($notfound)) {
$notfound->rCount++;
$notfound->rLastUsed = $now;
$em->persist($notfound);
$em->flush();
} else {
$notfound = new RedirectNotFoundEntity();
$notfound->set('rFrom', $url);
$notfound->set('rReferer', $_SERVER['HTTP_REFERER']);
$notfound->set('rCount', 1);
$notfound->set('rLastUsed', $now);
$em->persist($notfound);
$em->flush();
}
}
public static function convert_to_array($json){
$ignore_list_array = json_decode($json, true);
if($ignore_list_array === null) {
$ignore_list_array = json_decode('{"ignore_list":[]}', true);
}
$ret_array = array();
foreach ($ignore_list_array["ignore_list"] as $item) {
$url = $item["url"];
$url = strtolower(trim($url));
array_push($ret_array, $url);
}
return($ret_array);
}
Arguments
2
"Undefined array key "HTTP_REFERER""
"/home/c59brokersallian/public_html/packages/afixia_seo_redirects/src/Concrete/RedirectNotFound.php"
85
/home/c59brokersallian/public_html/packages/afixia_seo_redirects/src/Concrete/Service/SeoRedirector.php
if ($this->checkWildcard($request_url, $rule->rFrom)) {
$this->redirectOnRule($rule, $request_url);
return;
}
}
// RegEx Redirects
$rules = RedirectRule::getRegExs();
foreach ($rules as $rule) {
if ($this->checkRegEx($request_url, $rule->rFrom)) {
$this->redirectOnRule($rule, $request_url);
return;
}
}
}
// 404 Page Not Found
if ($is_page_not_found) {
if ($config->get('afixia_seo_redirects.log_urls_not_found')) {
RedirectNotFound::insertOrCount($request_url);
RedirectNotFound::limitCleanup($config->get('afixia_seo_redirects.not_found_limit'));
}
}
}
public function redirectOnRule($rule, $request_url)
{
$config = Core::make(Repository::class);
RedirectRule::incrementCount($rule);
$location_url = '';
// Page
if ($rule->rToCID > 0) {
$page = Page::getByID($rule->rToCID);
if (is_object($page) && !$page->isError()) {
$location_url = $page->getCollectionLink();
} else {
// Error
}
}
Arguments
"/~brokers/our-team/life-team-3/"
/home/c59brokersallian/public_html/packages/afixia_seo_redirects/controller.php
// Listen For CMS Changes
Events::addListener(
'on_file_delete', function ($event) { $this->app->make('afixia_seo_redirects/helper/seo_redirector')->on_file_delete($this, $event); }
);
Events::addListener(
'on_page_delete', function ($event) { $this->app->make('afixia_seo_redirects/helper/seo_redirector')->on_page_delete($this, $event); }
);
Events::addListener(
'on_page_move', function ($event) { $this->app->make('afixia_seo_redirects/helper/seo_redirector')->on_page_move($this, $event); }
);
Events::addListener(
'on_page_move_to_trash', function ($event) { $this->app->make('afixia_seo_redirects/helper/seo_redirector')->on_page_move_to_trash($this, $event); }
);
// Listen For Requests
Events::addListener(
'on_start', function ($event) { $this->app->make('afixia_seo_redirects/helper/seo_redirector')->on_request($this, $event); }
);
// Register Assets
$al = \AssetList::getInstance();
$al->register('javascript', 'afixia_seo_redirects', 'js/afixia_seo_redirects.js', array('minify' => false, 'position' => \Concrete\Core\Asset\Asset::ASSET_POSITION_HEADER, 'local'=>true, 'combine'=> false), 'afixia_seo_redirects');
$al->register('css', 'afixia_seo_redirects', 'css/afixia_seo_redirects.css', array('minify' => false, 'position' => \Concrete\Core\Asset\Asset::ASSET_POSITION_FOOTER, 'local'=>true, 'combine'=> false), 'afixia_seo_redirects');
$al->registerGroup('afixia_seo_redirects', array(
array('css', 'afixia_seo_redirects'),
array('javascript', 'afixia_seo_redirects')
));
}
}
Arguments
Concrete\Package\AfixiaSeoRedirects\Controller {#1387}
Symfony\Component\EventDispatcher\GenericEvent {#2412}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/event-dispatcher/EventDispatcher.php
/**
* Triggers the listeners of an event.
*
* This method can be overridden to add functionality that is executed
* for each listener.
*
* @param callable[] $listeners The event listeners
* @param string $eventName The name of the event to dispatch
* @param object $event The event object to pass to the event handlers/listeners
*/
protected function callListeners(iterable $listeners, string $eventName, object $event)
{
$stoppable = $event instanceof StoppableEventInterface;
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
*/
private function sortListeners(string $eventName)
{
krsort($this->listeners[$eventName]);
$this->sorted[$eventName] = [];
foreach ($this->listeners[$eventName] as &$listeners) {
foreach ($listeners as $k => &$listener) {
if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && 2 >= \count($listener)) {
$listener[0] = $listener[0]();
$listener[1] = $listener[1] ?? '__invoke';
}
$this->sorted[$eventName][] = $listener;
}
}
Arguments
Symfony\Component\EventDispatcher\GenericEvent {#2412}
"on_start"
Symfony\Component\EventDispatcher\EventDispatcher {#101
-listeners: array:29 [
"Symfony\Component\Messenger\Event\WorkerStartedEvent" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\Messenger\MessengerEventSubscriber {#99}
1 => "handleWorkerStartedEvent"
]
]
]
"Symfony\Component\Messenger\Event\WorkerMessageFailedEvent" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\Messenger\MessengerEventSubscriber {#99}
1 => "handleWorkerMessageFailedEvent"
]
]
]
"on_after_user_deactivate" => array:1 [
0 => array:1 [
0 => Closure($e) {#404 …4}
]
]
"on_user_change_password" => array:1 [
0 => array:2 [
0 => Closure($event) {#405 …4}
1 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#394}
1 => "onUserChangePassword"
]
]
]
"on_user_activate" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#394}
1 => "onUserActivate"
]
]
]
"on_user_add" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#394}
1 => "onUserAdd"
]
]
]
"on_user_deactivate" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#394}
1 => "onUserDeactivate"
]
]
]
"on_user_deleted" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#394}
1 => "onUserDeleted"
]
]
]
"on_user_reset_password" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#394}
1 => "onUserResetPassword"
]
]
]
"on_user_update" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\LogSubscriber {#394}
1 => "onUserUpdate"
]
]
]
"on_group_add" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#399}
1 => "onGroupAdd"
]
]
]
"on_group_update" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#399}
1 => "onGroupUpdate"
]
]
]
"on_group_delete" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#399}
1 => "onGroupDelete"
]
]
]
"on_user_enter_group" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#399}
1 => "onUserEnterGroup"
]
]
]
"on_user_exit_group" => array:1 [
0 => array:1 [
0 => array:2 [
0 => Concrete\Core\User\Group\LogSubscriber {#399}
1 => "onUserExitGroup"
]
]
]
"on_page_type_save_composer_form" => array:1 [
0 => array:1 [
0 => Closure($post) {#1480 …4}
]
]
"on_page_type_publish" => array:1 [
0 => array:1 [
0 => Closure($post) {#1481 …4}
]
]
"on_page_version_add" => array:1 [
0 => array:1 [
0 => Closure($post) {#1482 …4}
]
]
"on_page_version_approve" => array:1 [
0 => array:1 [
0 => Closure($post) {#1483 …4}
]
]
"on_before_render" => array:1 [
0 => array:6 [
0 => Closure() {#1484 …4}
1 => Closure() {#1503 …4}
2 => Closure() {#1507 …4}
3 => Closure() {#1506 …4}
4 => array:2 [
0 => "Concrete\Package\PagePassword\Src\Models\PagePasswordModel"
1 => "onPageChange"
]
5 => Closure() {#1502 …4}
]
]
"on_formidable_load" => array:1 [
0 => array:1 [
0 => Closure($event) {#1708 …4}
]
]
"on_formidable_step" => array:1 [
0 => array:1 [
0 => Closure($event) {#1603 …4}
]
]
"on_formidable_submit" => array:1 [
0 => array:1 [
0 => Closure($event) {#1692 …4}
]
]
"on_formidable_result_delete" => array:1 [
0 => array:1 [
0 => Closure($event) {#1694 …4}
]
]
"on_file_delete" => array:1 [
0 => array:1 [
0 => Closure($event) {#1735 …4}
]
]
"on_page_delete" => array:1 [
0 => array:1 [
0 => Closure($event) {#1736 …4}
]
]
"on_page_move" => array:1 [
0 => array:1 [
0 => Closure($event) {#1737 …4}
]
]
"on_page_move_to_trash" => array:1 [
0 => array:1 [
0 => Closure($event) {#1738 …4}
]
]
"on_start" => array:1 [
0 => array:1 [
0 => Closure($event) {#1739 …4}
]
]
]
-sorted: []
-optimized: array:1 [
"on_start" => array:1 [
0 => Closure($event) {#1739 …4}
]
]
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/vendor/symfony/event-dispatcher/EventDispatcher.php
if (__CLASS__ === static::class) {
$this->optimized = [];
}
}
/**
* {@inheritdoc}
*/
public function dispatch(object $event, string $eventName = null): object
{
$eventName = $eventName ?? \get_class($event);
if (null !== $this->optimized) {
$listeners = $this->optimized[$eventName] ?? (empty($this->listeners[$eventName]) ? [] : $this->optimizeListeners($eventName));
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
/**
* {@inheritdoc}
*/
public function getListeners(string $eventName = null)
{
if (null !== $eventName) {
if (empty($this->listeners[$eventName])) {
return [];
}
if (!isset($this->sorted[$eventName])) {
$this->sortListeners($eventName);
}
return $this->sorted[$eventName];
Arguments
array:1 [
0 => Closure($event) {#1739 …4}
]
"on_start"
Symfony\Component\EventDispatcher\GenericEvent {#2412}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Events/EventDispatcher.php
/**
* @var SymfonyEventDispatcher
*/
protected $eventDispatcher;
public function __construct(SymfonyEventDispatcher $eventDispatcher)
{
$this->eventDispatcher = $eventDispatcher;
}
/**
* {@inheritdoc}
*/
public function dispatch($eventName, object $event = null)
{
if (null === $event) {
$event = new Event();
}
return $this->eventDispatcher->dispatch($event, $eventName);
}
public function __call($name, $arguments)
{
return $this->eventDispatcher->$name(...$arguments);
}
/**
* @return SymfonyEventDispatcher
*/
public function getEventDispatcher(): SymfonyEventDispatcher
{
return $this->eventDispatcher;
}
}
Arguments
Symfony\Component\EventDispatcher\GenericEvent {#2412}
"on_start"
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Support/Facade/Facade.php
* @param array $args
*
* @return mixed
*/
public static function __callStatic($method, $args)
{
$instance = static::resolveFacadeInstance(static::getFacadeAccessor());
if (!method_exists($instance, $method) && !method_exists($instance, '__call')) {
throw new \Exception(t('Invalid Method on class %s: %s.', get_class($instance), $method));
}
switch (count($args)) {
case 0:
return $instance->$method();
case 1:
return $instance->$method($args[0]);
case 2:
return $instance->$method($args[0], $args[1]);
case 3:
return $instance->$method($args[0], $args[1], $args[2]);
case 4:
return $instance->$method($args[0], $args[1], $args[2], $args[3]);
default:
return call_user_func_array(array($instance, $method), $args);
}
}
}
Arguments
"on_start"
Symfony\Component\EventDispatcher\GenericEvent {#2412}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/View/View.php
}
$this->setInnerContentFile($innerContentFilePath);
}
if ($this->themeHandle) {
if (is_object($this->controller)) {
$this->controller->setViewObject($this);
$templateFile = $this->controller->getThemeViewTemplate();
} else {
$templateFile = $this->getViewTemplateFile();
}
$this->setViewTemplate($env->getPath(DIRNAME_THEMES.'/'.$this->themeHandle.'/'.$templateFile, $this->themePkgHandle));
}
}
public function startRender()
{
$event = new \Symfony\Component\EventDispatcher\GenericEvent();
$event->setArgument('view', $this);
Events::dispatch('on_start', $event);
parent::startRender();
}
protected function onBeforeGetContents()
{
$this->themeObject->registerAssets();
$event = new \Symfony\Component\EventDispatcher\GenericEvent();
$event->setArgument('view', $this);
Events::dispatch('on_before_render', $event);
}
public function renderViewContents($scopeItems)
{
$contents = '';
// Render the main view file
if ($this->innerContentFile) {
$contents = $this->renderInnerContents($scopeItems);
}
Arguments
"dispatch"
array:2 [
0 => "on_start"
1 => Symfony\Component\EventDispatcher\GenericEvent {#2412}
]
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Page/View/PageView.php
$env->getPath(
DIRNAME_PAGE_TEMPLATES . '/' . $this->c->getPageTemplateHandle() . '.php',
$pTemplatePkgHandle));
$this->setViewTemplate(
$env->getPath(
DIRNAME_THEMES . '/' . $this->themeHandle . '/' . $this->controller->getThemeViewTemplate(),
$this->themePkgHandle));
} else {
$this->setViewTemplate(
$env->getPath(
DIRNAME_THEMES . '/' . $this->themeHandle . '/' . FILENAME_THEMES_DEFAULT,
$this->themePkgHandle));
}
}
}
}
public function startRender()
{
parent::startRender();
$this->c->outputCustomStyleHeaderItems();
// do we have any custom menu plugins?
$cp = new Permissions($this->c);
$this->cp = $cp;
if ($cp->canViewToolbar()) {
$dh = Loader::helper('concrete/dashboard');
if (!$dh->inDashboard()
&& $this->c->getCollectionPath() != '/page_not_found'
&& $this->c->getCollectionPath() != '/download_file'
&& !$this->c->isPageDraft()
&& !$this->c->isMasterCollection()
) {
$app = Application::getFacadeApplication();
$u = $app->make(User::class);
$u->markPreviousFrontendPage($this->c);
}
}
}
public function finishRender($contents)
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/View/AbstractView.php
if (is_object($this->controller)) {
$sets = $this->controller->getSets();
$helpers = $this->controller->getHelperObjects();
$return = array_merge($this->scopeItems, $sets, $helpers);
} else {
$return = $this->scopeItems;
}
$return['view'] = $this;
$return['controller'] = $this->controller;
return $return;
}
public function render($state = false)
{
if ($this instanceof View) {
$this->setRequestInstance($this);
}
$this->start($state);
$this->setupRender();
$this->startRender();
$scopeItems = $this->getScopeItems();
$contents = $this->renderViewContents($scopeItems);
$contents = $this->postProcessViewContents($contents);
$response = $this->finishRender($contents);
if ($this instanceof View) {
$this->revertRequestInstance();
}
return $response;
}
public function renderViewContents($scopeItems)
{
if (file_exists($this->template)) {
extract($scopeItems);
ob_start();
$this->onBeforeGetContents();
include $this->template;
$this->onAfterGetContents();
$contents = ob_get_contents();
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/controllers/single_page/page_not_found.php
<?php
namespace Concrete\Controller\SinglePage;
use Concrete\Core\Http\Response;
use Concrete\Core\Page\Controller\PageController;
use Events;
class PageNotFound extends PageController
{
public function validateRequest()
{
return true;
}
public function view()
{
$view = $this->getViewObject();
$contents = $view->render();
Events::dispatch('on_page_not_found');
return new Response($contents, 404);
}
public function __call($method, $arguments)
{
if (method_exists($this, $method)) {
return call_user_func_array(array($this, $method), $arguments);
}
return $this->view();
}
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Controller/AbstractController.php
public function runTask($action, $parameters)
{
$this->runAction($action, $parameters);
}
/**
* Perform an action of this controller (if shouldRunControllerTask returns true).
*
* @param string $action the action to be performed
* @param array $parameters the action parameters
*
* @return mixed in case the action is executed, you'll receive the result of the action, or NULL otherwise
*/
public function runAction($action, $parameters = [])
{
$this->action = $action;
$this->parameters = $parameters;
if (is_callable([$this, $action])) {
if ($this->shouldRunControllerTask()) {
return call_user_func_array([$this, $action], $parameters);
}
}
}
/**
* Get the whole $_REQUEST array or a specific requested value.
*
* @param string|null $key set to null to get the whole $_REQUEST array, or a string to get a specific value in $_GET or in $_POST
*
* @return mixed
*/
public function request($key = null)
{
return Request::request($key);
}
/**
* Dispatches a command to the command bus.
* @param mixed $command
*/
Arguments
"~brokers"
"our-team"
"life-team-3"
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Controller/AbstractController.php
public function runTask($action, $parameters)
{
$this->runAction($action, $parameters);
}
/**
* Perform an action of this controller (if shouldRunControllerTask returns true).
*
* @param string $action the action to be performed
* @param array $parameters the action parameters
*
* @return mixed in case the action is executed, you'll receive the result of the action, or NULL otherwise
*/
public function runAction($action, $parameters = [])
{
$this->action = $action;
$this->parameters = $parameters;
if (is_callable([$this, $action])) {
if ($this->shouldRunControllerTask()) {
return call_user_func_array([$this, $action], $parameters);
}
}
}
/**
* Get the whole $_REQUEST array or a specific requested value.
*
* @param string|null $key set to null to get the whole $_REQUEST array, or a string to get a specific value in $_GET or in $_POST
*
* @return mixed
*/
public function request($key = null)
{
return Request::request($key);
}
/**
* Dispatches a command to the command bus.
* @param mixed $command
*/
Arguments
array:2 [
0 => Concrete\Controller\SinglePage\PageNotFound {#2415}
1 => "view"
]
array:3 [
0 => "~brokers"
1 => "our-team"
2 => "life-team-3"
]
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/ResponseFactory.php
if ($controller instanceof PageController) {
if ($controller->isReplaced()) {
return $this->controller($controller->getReplacement(), $code, $headers);
}
$controller->setupRequestActionAndParameters($request);
$response = $controller->validateRequest();
// If validaterequest returned a response
if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
return $response;
} else {
// If validateRequest did not return true
if ($response == false) {
return $this->notFound('', Response::HTTP_NOT_FOUND, $headers);
}
}
$requestTask = $controller->getRequestAction();
$requestParameters = $controller->getRequestActionParameters();
$response = $controller->runAction($requestTask, $requestParameters);
if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
return $response;
}
if ($controller->isReplaced()) {
return $this->controller($controller->getReplacement(), $code, $headers);
}
} else {
if ($response = $controller->runAction('view')) {
return $response;
}
}
$view = $controller->getViewObject();
// Mobile theme
if ($this->config->get('concrete.misc.mobile_theme_id') > 0) {
$md = $this->app->make(MobileDetect::class);
if ($md->isMobile()) {
$mobileTheme = Theme::getByID($this->app->config->get('concrete.misc.mobile_theme_id'));
if ($mobileTheme instanceof Theme) {
Arguments
"view"
array:3 [
0 => "~brokers"
1 => "our-team"
2 => "life-team-3"
]
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/ResponseFactory.php
$this->localization->pushActiveContext(Localization::CONTEXT_SITE);
$responseData = [
'error' => t('Page not found'),
'errors' => [t('Page not found')],
];
$this->localization->popActiveContext();
return $this->json($responseData, $code, $headers);
}
$item = '/page_not_found';
$c = Page::getByPath($item);
if (is_object($c) && !$c->isError()) {
// Display not found
$dl = $this->app->make('multilingual/detector');
$dl->setupSiteInterfaceLocalization($c);
$this->request->setCurrentPage($c);
return $this->controller($c->getPageController(), $code, $headers);
}
$cnt = $this->app->make(PageForbidden::class);
return $this->controller($cnt, $code, $headers);
}
/**
* {@inheritdoc}
*/
public function error($content, $code = Response::HTTP_INTERNAL_SERVER_ERROR, $headers = [])
{
return $this->create($content, $code, $headers);
}
/**
* {@inheritdoc}
*/
public function forbidden($requestUrl, $code = Response::HTTP_FORBIDDEN, $headers = [])
{
Arguments
Concrete\Controller\SinglePage\PageNotFound {#2415}
404
[]
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/ResponseFactory.php
{
// if we don't have a path and we're doing cID, then this automatically fires a 404.
if (!$request->getPath() && $request->get('cID')) {
return $this->notFound('', Response::HTTP_NOT_FOUND, $headers);
}
// let's test to see if this is, in fact, the home page,
// and we're routing arguments onto it (which is screwing up the path.)
$home = Page::getByID(Page::getHomePageID());
$request->setCurrentPage($home);
$homeController = $home->getPageController();
$homeController->setupRequestActionAndParameters($request);
$response = $homeController->validateRequest();
if ($response instanceof \Symfony\Component\HttpFoundation\Response) {
return $response;
} elseif ($response === true) {
return $this->controller($homeController);
} else {
return $this->notFound('', Response::HTTP_NOT_FOUND, $headers);
}
}
}
Arguments
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/ResponseFactory.php
return $this->view($view, $code, $headers);
} finally {
$this->localization->popActiveContext();
}
}
/**
* {@inheritdoc}
*/
public function collection(Collection $collection, $code = Response::HTTP_OK, $headers = [])
{
if (!$this->app) {
throw new \RuntimeException('Cannot resolve collections without a reference to the application');
}
$dl = $this->app->make('multilingual/detector');
$request = $this->request;
if ($collection->isError() && $collection->getError() == COLLECTION_NOT_FOUND) {
if ($response = $this->collectionNotFound($collection, $request, $headers)) {
return $response;
}
}
if ($collection->getCollectionPath() != '/page_not_found') {
if (!isset($collection->cPathFetchIsCanonical) || !$collection->cPathFetchIsCanonical) {
// Handle redirect URL (additional page paths)
/** @var Url $url */
$url = $this->app->make('url/manager')->resolve([$collection]);
$query = $url->getQuery();
$query->modify($request->getQueryString());
$url = $url->setQuery($query);
return $this->redirect($url, Response::HTTP_MOVED_PERMANENTLY, $headers);
}
}
// maintenance mode
if ($collection->getCollectionPath() != '/login') {
Arguments
Concrete\Core\Page\Page {#1946}
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
[]
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/DefaultDispatcher.php
new DispatcherDelegate($dispatcher)
);
$stack->setApplication($this->app);
foreach($route->getMiddlewares() as $middleware) {
if (is_string($middleware->getMiddleware())) {
$inflatedMiddleware = $this->app->make($middleware->getMiddleware());
} else {
$inflatedMiddleware = $middleware->getMiddleware();
}
$stack = $stack->withMiddleware(
$inflatedMiddleware,
$middleware->getPriority()
);
}
return $stack->process($request);
} catch (ResourceNotFoundException $e) {
} catch (MethodNotAllowedException $e) {
}
$c = \Page::getFromRequest($request);
$response = $this->app->make(ResponseFactoryInterface::class)->collection($c);
return $response;
}
/**
* @param \Symfony\Component\Routing\RouteCollection $routes
* @param string $path
*
* @return \Symfony\Component\Routing\RouteCollection
*/
private function filterRouteCollectionForPath(RouteCollection $routes, $path)
{
$result = new RouteCollection();
foreach ($routes->getResources() as $resource) {
$result->addResource($resource);
}
foreach ($routes->all() as $name => $route) {
$routePath = $route->getPath();
$p = strpos($routePath, '{');
$skip = false;
Arguments
Concrete\Core\Page\Page {#1946}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/DefaultDispatcher.php
/**
* @param \Symfony\Component\HttpFoundation\Request $request
*
* @return SymfonyResponse
*/
public function dispatch(SymfonyRequest $request)
{
$path = rawurldecode($request->getPathInfo());
if (substr($path, 0, 3) == '../' || substr($path, -3) == '/..' || strpos($path, '/../') ||
substr($path, 0, 3) == '..\\' || substr($path, -3) == '\\..' || strpos($path, '\\..\\')) {
throw new UserMessageException(t('Invalid path traversal. Please make this request with a valid HTTP client.'));
}
$response = null;
if ($this->app->isInstalled()) {
$response = $this->getEarlyDispatchResponse();
}
if ($response === null) {
$response = $this->handleDispatch($request);
}
return $response;
}
private function getEarlyDispatchResponse()
{
$validator = $this->app->make(SessionValidator::class);
if ($validator->hasActiveSession()) {
$session = $this->app['session'];
if (!$session->has('uID')) {
User::verifyAuthTypeCookie();
}
// User may have been logged in, so lets check status again.
if ($session->has('uID') && $session->get('uID') > 0 && $response = $this->validateUser()) {
return $response;
}
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/DispatcherDelegate.php
private $dispatcher;
/**
* DispatcherFrame constructor.
* @param \Concrete\Core\Http\DispatcherInterface $dispatcher
*/
public function __construct(DispatcherInterface $dispatcher)
{
$this->dispatcher = $dispatcher;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
return $this->dispatcher->dispatch($request);
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/FrameOptionsMiddleware.php
private $config;
/**
* @var \Concrete\Core\Utility\Service\Validation\Strings
*/
private $stringValidator;
public function __construct(Repository $config, Strings $stringValidator)
{
$this->config = $config;
$this->stringValidator = $stringValidator;
}
/**
* @param \Concrete\Core\Http\Middleware\DelegateInterface $frame
* @return Response
*/
public function process(Request $request, DelegateInterface $frame)
{
$response = $frame->next($request);
if ($response->headers->has('X-Frame-Options') === false) {
$x_frame_options = $this->config->get('concrete.security.misc.x_frame_options');
if ($this->stringValidator->notempty($x_frame_options)) {
$response->headers->set('X-Frame-Options', $x_frame_options);
}
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\DispatcherDelegate {#1921}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/StrictTransportSecurityMiddleware.php
/**
* @var Strings
*/
private $stringValidator;
public function __construct(Repository $config, Strings $stringValidator)
{
$this->config = $config;
$this->stringValidator = $stringValidator;
}
/**
* @param Request $request
* @param DelegateInterface $frame
*
* @return Response
*/
public function process(Request $request, DelegateInterface $frame)
{
$response = $frame->next($request);
if ($response->headers->has('Strict-Transport-Security') === false) {
$x_frame_options = $this->config->get('concrete.security.misc.strict_transport_security');
if ($this->stringValidator->notempty($x_frame_options)) {
$response->headers->set('Strict-Transport-Security', $x_frame_options);
}
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\MiddlewareDelegate {#1928}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/ContentSecurityPolicyMiddleware.php
/**
* @var Strings
*/
private $stringValidator;
public function __construct(Repository $config, Strings $stringValidator)
{
$this->config = $config;
$this->stringValidator = $stringValidator;
}
/**
* @param Request $request
* @param DelegateInterface $frame
*
* @return Response
*/
public function process(Request $request, DelegateInterface $frame)
{
$response = $frame->next($request);
if ($response->headers->has('Content-Security-Policy') === false) {
$csp = $this->config->get('concrete.security.misc.content_security_policy');
if ((is_array($csp) && count($csp) > 0) || $this->stringValidator->notempty($csp)) {
$response->headers->set('Content-Security-Policy', $csp);
}
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\MiddlewareDelegate {#1930}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/CookieMiddleware.php
* @var \Concrete\Core\Cookie\ResponseCookieJar
*/
private $responseCookieJar;
/**
* @param \Concrete\Core\Cookie\ResponseCookieJar $responseCookieJar
*/
public function __construct(ResponseCookieJar $responseCookieJar)
{
$this->responseCookieJar = $responseCookieJar;
}
/**
* {@inheritdoc}
*
* @see \Concrete\Core\Http\Middleware\MiddlewareInterface::process()
*/
public function process(Request $request, DelegateInterface $frame)
{
$response = $frame->next($request);
$cleared = $this->responseCookieJar->getClearedCookies();
foreach ($cleared as $cookie) {
$response->headers->clearCookie($cookie, DIR_REL . '/');
}
$cookies = $this->responseCookieJar->getCookies();
foreach ($cookies as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\MiddlewareDelegate {#1932}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/ApplicationMiddleware.php
* Middleware for applying state changes to the application
* @package Concrete\Core\Http\Middleware
*/
class ApplicationMiddleware implements MiddlewareInterface, ApplicationAwareInterface
{
use ApplicationAwareTrait;
/**
* Apply the request instance to the request singleton
* @param \Symfony\Component\HttpFoundation\Request $request
* @param \Concrete\Core\Http\Middleware\DelegateInterface $frame
* @return \Symfony\Component\HttpFoundation\Response
*/
public function process(Request $request, DelegateInterface $frame)
{
\Concrete\Core\Http\Request::setInstance($request);
$this->app->instance('Concrete\Core\Http\Request', $request);
return $frame->next($request);
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareDelegate.php
public function __construct(
MiddlewareInterface $middleware,
DelegateInterface $nextDelegate,
HttpFoundationFactory $foundationFactory
) {
$this->middleware = $middleware;
$this->nextDelegate = $nextDelegate;
$this->foundationFactory = $foundationFactory;
}
/**
* Dispatch the next available middleware and return the response.
*
* @param Request $request
* @return Response
*/
public function next(Request $request)
{
$response = $this->middleware->process($request, $this->nextDelegate);
// Negotiate PSR7 responses
if ($response instanceof ResponseInterface) {
return $this->foundationFactory->createResponse($response);
}
return $response;
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
Concrete\Core\Http\Middleware\MiddlewareDelegate {#1934}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/Middleware/MiddlewareStack.php
public function withoutMiddleware(MiddlewareInterface $middleware)
{
$stack = clone $this;
$stack->middleware = array_map(function($priorityGroup) use ($middleware) {
return array_map(function($stackMiddleware) use ($middleware) {
return $middleware === $stackMiddleware ? null : $stackMiddleware;
}, $priorityGroup);
}, $stack->middleware);
return $stack;
}
/**
* @inheritdoc
*/
public function process(Request $request)
{
$stack = $this->getStack();
return $stack->next($request);
}
/**
* Reduce middleware into a stack of functions that each call the next
* @return callable
*/
private function getStack()
{
$processed = [];
foreach ($this->middlewareGenerator() as $middleware) {
$processed[] = $middleware;
}
$middleware = array_reverse($processed);
$stack = array_reduce($middleware, $this->getZipper(), $this->dispatcher);
return $stack;
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Http/DefaultServer.php
*/
public function removeMiddleware(MiddlewareInterface $middleware)
{
$this->stack = $this->stack->withoutMiddleware($middleware);
return $this;
}
/**
* Take a request and pass it through middleware, then return the response
* @param SymfonyRequest $request
* @return SymfonyResponse
*/
public function handleRequest(SymfonyRequest $request)
{
$stack = $this->stack;
if ($stack instanceof MiddlewareStack) {
$stack = $stack->withDispatcher($this->app->make(DispatcherDelegate::class, ['dispatcher' => $this->dispatcher]));
}
return $stack->process($request);
}
}
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Foundation/Runtime/Run/DefaultRunner.php
// Register legacy config values
'registerLegacyConfigValues',
// Handle loading permission keys
'handlePermissionKeys',
// Handle eventing
'handleEventing',
]);
} else {
$this->initializeSystemTimezone();
$this->preloadClassAliases();
}
// Create the request to use
$request = $this->createRequest();
if (!$response) {
$response = $this->server->handleRequest($request);
}
// Prepare and return the response
return $response->prepare($request);
}
/**
* Define the base url if not defined
* This will define `BASE_URL` to whatever is resolved from the resolver.
*
* @deprecated In a future major version this will be part of HTTP middleware
*
* @return Response|void Returns a response if an error occurs
*/
protected function initializeLegacyURLDefinitions()
{
if (!defined('BASE_URL')) {
$resolver = $this->getUrlResolver();
try {
Arguments
Concrete\Core\Http\Request {#1744
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#1913}
+request: Symfony\Component\HttpFoundation\InputBag {#1448}
+query: Symfony\Component\HttpFoundation\InputBag {#1741}
+server: Symfony\Component\HttpFoundation\ServerBag {#1916}
+files: Symfony\Component\HttpFoundation\FileBag {#1915}
+cookies: Symfony\Component\HttpFoundation\InputBag {#1914}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#1917}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: null
#pathInfo: "/~brokers/our-team/life-team-3/"
#requestUri: "/~brokers/our-team/life-team-3/"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
-isSafeContentPreferred: null
#hasCustomRequestUser: null
#customRequestUser: null
#customRequestDateTime: null
#c: Concrete\Core\Page\Page {#2410}
basePath: ""
format: "html"
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/src/Foundation/Runtime/DefaultRuntime.php
$this->status = self::STATUS_ACTIVE;
}
}
/**
* Begin the runtime.
*/
public function run()
{
switch ($this->status) {
case self::STATUS_ENDED:
// We've already ended, lets just return
return;
case self::STATUS_INACTIVE:
throw new \RuntimeException('Runtime has not yet booted.');
}
$runner = $this->getRunner();
$response = $runner->run();
if ($response) {
$this->sendResponse($response);
}
return $response;
}
/**
* The method that handles properly sending a response.
*
* @param \Symfony\Component\HttpFoundation\Response $response
*/
protected function sendResponse(Response $response)
{
$response->send();
// Set the status to ended
$this->status = self::STATUS_ENDED;
}
/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/dispatcher.php
* Include all autoloaders.
* ----------------------------------------------------------------------------
*/
require __DIR__ . '/bootstrap/autoload.php';
/*
* ----------------------------------------------------------------------------
* Begin Concrete startup.
* ----------------------------------------------------------------------------
*/
$app = require __DIR__ . '/bootstrap/start.php';
/** @var \Concrete\Core\Application\Application $app */
/*
* ----------------------------------------------------------------------------
* Run the runtime.
* ----------------------------------------------------------------------------
*/
$runtime = $app->getRuntime();
if ($response = $runtime->run()) {
/*
* ------------------------------------------------------------------------
* Shut it down.
* ------------------------------------------------------------------------
*/
$app->shutdown();
} else {
return $app;
}
/home/c59brokersallian/public_html/concrete/bootstrap/configure.php
defined('DIR_CONFIG_SITE') or define('DIR_CONFIG_SITE', DIR_APPLICATION . '/config');
/*
* ----------------------------------------------------------------------------
* Now that we've had the opportunity to load our config file, we know if we
* have a DIRNAME_CORE_UPDATED constant, which lives in that file, and which
* points to another core. If we have this constant, we exit this file
* immeditely and proceed into the updated core.
* ----------------------------------------------------------------------------
*/
if (!defined('APP_UPDATED_PASSTHRU')) {
$update_file = DIR_CONFIG_SITE . '/update.php';
if (file_exists($update_file)) {
$updates = (array) include $update_file;
if (isset($updates['core'])) {
define('APP_UPDATED_PASSTHRU', true);
define('DIRNAME_APP_UPDATED', $updates['core']);
if (is_dir(DIR_BASE . '/' . DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED)) {
require DIR_BASE . '/' . DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED . '/' . DIRNAME_CORE . '/' . 'dispatcher.php';
} elseif (file_exists(DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED . '/' . DIRNAME_CORE . '/' . 'dispatcher.php')) {
require DIRNAME_UPDATES . '/' . DIRNAME_APP_UPDATED . '/' . DIRNAME_CORE . '/' . 'dispatcher.php';
} else {
die(sprintf('Invalid "%s" defined. Please remove it from %s.', 'update.core', $update_file));
}
exit;
}
}
unset($update_file);
define('APP_UPDATED_PASSTHRU', false);
}
if (!defined('DIRNAME_APP_UPDATED') && isset($updates['core'])) {
define('DIRNAME_APP_UPDATED', $updates['core']);
}
/*
* ----------------------------------------------------------------------------
* ## If we're still here, we're proceeding through this concrete directory,
* and it's time to load the rest of our hard-coded configuration options –
Arguments
"/home/c59brokersallian/public_html/updates/concrete-cms-9.1.3_remote_updater/concrete/dispatcher.php"
/home/c59brokersallian/public_html/concrete/dispatcher.php
<?php
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50509) {
die("concrete5 requires PHP 5.5.9+ to run.\nYou are running PHP " . PHP_VERSION . "\n");
}
/*
* ----------------------------------------------------------------------------
* Set required constants, including directory names, attempt to include site configuration file with database
* information, attempt to determine if we ought to skip to an updated core, etc...
* ----------------------------------------------------------------------------
*/
require __DIR__ . '/bootstrap/configure.php';
/*
* ----------------------------------------------------------------------------
* Make sure you cannot call dispatcher.php directly.
* ----------------------------------------------------------------------------
*/
if (basename($_SERVER['PHP_SELF']) === DISPATCHER_FILENAME_CORE) {
die('Access Denied.');
}
/*
* ----------------------------------------------------------------------------
* Include all autoloaders.
* ----------------------------------------------------------------------------
*/
require __DIR__ . '/bootstrap/autoload.php';
/*
* ----------------------------------------------------------------------------
* Begin concrete5 startup.
* ----------------------------------------------------------------------------
*/
$app = require __DIR__ . '/bootstrap/start.php';
/** @var \Concrete\Core\Application\Application $app */
/*
* ----------------------------------------------------------------------------
Arguments
"/home/c59brokersallian/public_html/concrete/bootstrap/configure.php"
/home/c59brokersallian/public_html/index.php
<?php
//$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST] $_SERVER[REQUEST_URI]";
//if(strpos($actual_link, '%') !== false){
//echo "Word Found!";
// header("Location: https://".$_SERVER[HTTP_HOST]);
//}
require 'concrete/dispatcher.php';
Arguments
"/home/c59brokersallian/public_html/concrete/dispatcher.php"