Exception
Invalid hostname: headbangkids.com Exception thrown with message "Invalid hostname: headbangkids.com" Stacktrace: #22 Exception in /home/jaroslavistok/Sites/diamanager/vendor/buxus/multisite/src/BuxusSiteManager.php:55 #21 Buxus\Site\BuxusSiteManager:detectSite in /home/jaroslavistok/Sites/diamanager/vendor/buxus/multisite/src/BuxusSiteManager.php:16 #20 Buxus\Site\BuxusSiteManager:__construct in [internal]:0 #19 ReflectionClass:newInstanceArgs in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/container/Container.php:779 #18 Illuminate\Container\Container:build in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/container/Container.php:629 #17 Illuminate\Container\Container:make in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/container/Container.php:230 #16 Illuminate\Container\Container:Illuminate\Container\{closure} in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/container/Container.php:731 #15 Illuminate\Container\Container:build in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/container/Container.php:629 #14 Illuminate\Container\Container:make in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/container/Container.php:1178 #13 Illuminate\Container\Container:offsetGet in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/support/Facades/Facade.php:151 #12 Illuminate\Support\Facades\Facade:resolveFacadeInstance in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/support/Facades/Facade.php:120 #11 Illuminate\Support\Facades\Facade:getFacadeRoot in /home/jaroslavistok/Sites/diamanager/vendor/illuminate/support/Facades/Facade.php:207 #10 Illuminate\Support\Facades\Facade:__callStatic in /home/jaroslavistok/Sites/diamanager/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:309 #9 SeoUrlBase:__get in /home/jaroslavistok/Sites/diamanager/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:247 #8 SeoUrlBase:__construct in /home/jaroslavistok/Sites/diamanager/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url_base.class.php:280 #7 SeoUrlBase:getInstance in /home/jaroslavistok/Sites/diamanager/buxus/config/seo_url.php:2 #6 require_once in /home/jaroslavistok/Sites/diamanager/vendor/buxus/config/src/Config.php:156 #5 Buxus\Config\Config:configRequire in /home/jaroslavistok/Sites/diamanager/vendor/buxus/config/src/helpers.php:31 #4 config_require in /home/jaroslavistok/Sites/diamanager/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url.inc.php:4 #3 require_once in /home/jaroslavistok/Sites/diamanager/vendor/buxus/legacy-base/buxus/includes/generate_functions.php:2 #2 require_once in /home/jaroslavistok/Sites/diamanager/vendor/buxus/core/src/handler/generate_page.php:7 #1 include in /home/jaroslavistok/Sites/diamanager/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php:86 #0 Buxus\Router\BuxusRouter:dispatch in /home/jaroslavistok/Sites/diamanager/public/buxus.php:7
Stack frames (23)
22
Exception
/
vendor
/
buxus
/
multisite
/
src
/
BuxusSiteManager.php
55
21
Buxus
\
Site
\
BuxusSiteManager
detectSite
/
vendor
/
buxus
/
multisite
/
src
/
BuxusSiteManager.php
16
20
Buxus
\
Site
\
BuxusSiteManager
__construct
[internal]
0
19
ReflectionClass
newInstanceArgs
/
vendor
/
illuminate
/
container
/
Container.php
779
18
Illuminate
\
Container
\
Container
build
/
vendor
/
illuminate
/
container
/
Container.php
629
17
Illuminate
\
Container
\
Container
make
/
vendor
/
illuminate
/
container
/
Container.php
230
16
Illuminate
\
Container
\
Container
Illuminate
\
Container
\
{closure}
/
vendor
/
illuminate
/
container
/
Container.php
731
15
Illuminate
\
Container
\
Container
build
/
vendor
/
illuminate
/
container
/
Container.php
629
14
Illuminate
\
Container
\
Container
make
/
vendor
/
illuminate
/
container
/
Container.php
1178
13
Illuminate
\
Container
\
Container
offsetGet
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
151
12
Illuminate
\
Support
\
Facades
\
Facade
resolveFacadeInstance
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
120
11
Illuminate
\
Support
\
Facades
\
Facade
getFacadeRoot
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
207
10
Illuminate
\
Support
\
Facades
\
Facade
__callStatic
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
309
9
SeoUrlBase
__get
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
247
8
SeoUrlBase
__construct
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
280
7
SeoUrlBase
getInstance
/
buxus
/
config
/
seo_url.php
2
6
require_once
/
vendor
/
buxus
/
config
/
src
/
Config.php
156
5
Buxus
\
Config
\
Config
configRequire
/
vendor
/
buxus
/
config
/
src
/
helpers.php
31
4
config_require
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url.inc.php
4
3
require_once
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
generate_functions.php
2
2
require_once
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
7
1
include
/
vendor
/
buxus
/
core
/
src
/
Buxus
/
Router
/
BuxusRouter.php
86
0
Buxus
\
Router
\
BuxusRouter
dispatch
/
public
/
buxus.php
7
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
multisite
/
src
/
BuxusSiteManager.php
 
        return null;
    }
 
    protected function detectSite() {
        if (!is_null($this->site)) {
            return;
        }
 
        if (!isset($_SERVER['SERVER_NAME']) || empty($_SERVER['SERVER_NAME'])) {
            $this->site = config('sites.default_site');
            return;
        }
 
        $hostname = $_SERVER['SERVER_NAME'];
 
        $this->site = $this->getSiteByHostname($hostname);
 
        if (is_null($this->site)) {
            throw new Exception('Invalid hostname: ' . $hostname);
        }
    }
 
    protected function getConfig() {
        return config('site-config.' . $this->site);
    }
 
    public function get($name, $default_value = null) {
        return config('site-config.' . $this->site . '.' . $name, $default_value);
    }
 
    public function __get($name) {
        return $this->get($name);
    }
 
    public function __isset($name) {
        $value = config('site-config.' . $this->site . '.' . $name);
        return !empty($value);
    }
 
Arguments
  1. "Invalid hostname: headbangkids.com"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
multisite
/
src
/
BuxusSiteManager.php
<?php
namespace Buxus\Site;
 
use Buxus\Event\BuxusEvent;
use Buxus\Site\Event\SiteSwitchedEvent;
use Exception;
 
class BuxusSiteManager {
 
    protected $site = null;
 
    protected $stored_sites = array();
 
    public function __construct()
    {
        $this->detectSite();
    }
 
    public function getSiteByHostname($hostname)
    {
        $defined_sites = config('sites.sites');
 
        if (config('sites.use_regexp_detection')) {
            foreach ($defined_sites as $site => $site_hostname) {
                if (preg_match($site_hostname, $hostname)) {
                    return $site;
                }
            }
        } else {
            foreach ($defined_sites as $site => $site_hostname) {
                if ($site_hostname == $hostname) {
                    return $site;
                }
            }
        }
 
        return null;
    }
 
    protected function detectSite() {
[internal]
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
container
/
Container.php
 
            return new $concrete;
        }
 
        $dependencies = $constructor->getParameters();
 
        // Once we have all the constructor's parameters we can create each of the
        // dependency instances and then use the reflection instances to make a
        // new instance of this class, injecting the created dependencies in.
        $parameters = $this->keyParametersByArgument(
            $dependencies, $parameters
        );
 
        $instances = $this->getDependencies(
            $dependencies, $parameters
        );
 
        array_pop($this->buildStack);
 
        return $reflector->newInstanceArgs($instances);
    }
 
    /**
     * Resolve all of the dependencies from the ReflectionParameters.
     *
     * @param  array  $parameters
     * @param  array  $primitives
     * @return array
     */
    protected function getDependencies(array $parameters, array $primitives = [])
    {
        $dependencies = [];
 
        foreach ($parameters as $parameter) {
            $dependency = $parameter->getClass();
 
            // If the class is null, it means the dependency is a string or some other
            // primitive type which we can not resolve since it is not a class and
            // we will just bomb out with an error since we have no-where to go.
            if (array_key_exists($parameter->name, $primitives)) {
Arguments
  1. []
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
container
/
Container.php
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        $abstract = $this->getAlias($this->normalize($abstract));
 
        // If an instance of the type is currently being managed as a singleton we'll
        // just return an existing instance instead of instantiating new instances
        // so the developer can keep using the same objects instance every time.
        if (isset($this->instances[$abstract])) {
            return $this->instances[$abstract];
        }
 
        $concrete = $this->getConcrete($abstract);
 
        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete, $parameters);
        } else {
            $object = $this->make($concrete, $parameters);
        }
 
        // If we defined any extenders for this type, we'll need to spin through them
        // and apply them to the object being built. This allows for the extension
        // of services, such as changing configuration or decorating the object.
        foreach ($this->getExtenders($abstract) as $extender) {
            $object = $extender($object, $this);
        }
 
        // If the requested type is registered as a singleton we'll want to cache off
        // the instances in "memory" so we can return it later without creating an
        // entirely new instance of an object on each subsequent request for it.
        if ($this->isShared($abstract)) {
            $this->instances[$abstract] = $object;
        }
 
        $this->fireResolvingCallbacks($abstract, $object);
 
Arguments
  1. "Buxus\Site\BuxusSiteManager"
    
  2. []
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
container
/
Container.php
        // rebound listener so that any objects which have already gotten resolved
        // can have their copy of the object updated via the listener callbacks.
        if ($this->resolved($abstract)) {
            $this->rebound($abstract);
        }
    }
 
    /**
     * Get the Closure to be used when building a type.
     *
     * @param  string  $abstract
     * @param  string  $concrete
     * @return \Closure
     */
    protected function getClosure($abstract, $concrete)
    {
        return function ($c, $parameters = []) use ($abstract, $concrete) {
            $method = ($abstract == $concrete) ? 'build' : 'make';
 
            return $c->$method($concrete, $parameters);
        };
    }
 
    /**
     * Add a contextual binding to the container.
     *
     * @param  string  $concrete
     * @param  string  $abstract
     * @param  \Closure|string  $implementation
     * @return void
     */
    public function addContextualBinding($concrete, $abstract, $implementation)
    {
        $this->contextual[$this->normalize($concrete)][$this->normalize($abstract)] = $this->normalize($implementation);
    }
 
    /**
     * Register a binding if it hasn't already been registered.
     *
     * @param  string  $abstract
Arguments
  1. "Buxus\Site\BuxusSiteManager"
    
  2. []
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
container
/
Container.php
 
        return [];
    }
 
    /**
     * Instantiate a concrete instance of the given type.
     *
     * @param  string  $concrete
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function build($concrete, array $parameters = [])
    {
        // If the concrete type is actually a Closure, we will just execute it and
        // hand back the results of the functions, which allows functions to be
        // used as resolvers for more fine-tuned resolution of these objects.
        if ($concrete instanceof Closure) {
            return $concrete($this, $parameters);
        }
 
        $reflector = new ReflectionClass($concrete);
 
        // If the type is not instantiable, the developer is attempting to resolve
        // an abstract type such as an Interface of Abstract Class and there is
        // no binding registered for the abstractions so we need to bail out.
        if (! $reflector->isInstantiable()) {
            if (! empty($this->buildStack)) {
                $previous = implode(', ', $this->buildStack);
 
                $message = "Target [$concrete] is not instantiable while building [$previous].";
            } else {
                $message = "Target [$concrete] is not instantiable.";
            }
 
            throw new BindingResolutionException($message);
        }
 
        $this->buildStack[] = $concrete;
Arguments
  1. Application {}
    
  2. []
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
container
/
Container.php
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        $abstract = $this->getAlias($this->normalize($abstract));
 
        // If an instance of the type is currently being managed as a singleton we'll
        // just return an existing instance instead of instantiating new instances
        // so the developer can keep using the same objects instance every time.
        if (isset($this->instances[$abstract])) {
            return $this->instances[$abstract];
        }
 
        $concrete = $this->getConcrete($abstract);
 
        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete, $parameters);
        } else {
            $object = $this->make($concrete, $parameters);
        }
 
        // If we defined any extenders for this type, we'll need to spin through them
        // and apply them to the object being built. This allows for the extension
        // of services, such as changing configuration or decorating the object.
        foreach ($this->getExtenders($abstract) as $extender) {
            $object = $extender($object, $this);
        }
 
        // If the requested type is registered as a singleton we'll want to cache off
        // the instances in "memory" so we can return it later without creating an
        // entirely new instance of an object on each subsequent request for it.
        if ($this->isShared($abstract)) {
            $this->instances[$abstract] = $object;
        }
 
        $this->fireResolvingCallbacks($abstract, $object);
 
Arguments
  1. Closure {
      class: "Illuminate\Container\Container"
      this: Application { …}
      parameters: {
        $c: {}
        $parameters: {
          default: []
        }
      }
      use: {
        $abstract: "buxus-site"
        $concrete: "Buxus\Site\BuxusSiteManager"
      }
      file: "/home/jaroslavistok/Sites/diamanager/vendor/illuminate/container/Container.php"
      line: "227 to 231"
    }
    
  2. []
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
container
/
Container.php
    /**
     * Determine if a given offset exists.
     *
     * @param  string  $key
     * @return bool
     */
    public function offsetExists($key)
    {
        return $this->bound($key);
    }
 
    /**
     * Get the value at a given offset.
     *
     * @param  string  $key
     * @return mixed
     */
    public function offsetGet($key)
    {
        return $this->make($key);
    }
 
    /**
     * Set the value at a given offset.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return void
     */
    public function offsetSet($key, $value)
    {
        // If the value is not a Closure, we will make it one. This simply gives
        // more "drop-in" replacement functionality for the Pimple which this
        // container's simplest functions are base modeled and built after.
        if (! $value instanceof Closure) {
            $value = function () use ($value) {
                return $value;
            };
        }
 
Arguments
  1. "buxus-site"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
        throw new RuntimeException('Facade does not implement getFacadeAccessor method.');
    }
 
    /**
     * Resolve the facade root instance from the container.
     *
     * @param  string|object  $name
     * @return mixed
     */
    protected static function resolveFacadeInstance($name)
    {
        if (is_object($name)) {
            return $name;
        }
 
        if (isset(static::$resolvedInstance[$name])) {
            return static::$resolvedInstance[$name];
        }
 
        return static::$resolvedInstance[$name] = static::$app[$name];
    }
 
    /**
     * Clear a resolved facade instance.
     *
     * @param  string  $name
     * @return void
     */
    public static function clearResolvedInstance($name)
    {
        unset(static::$resolvedInstance[$name]);
    }
 
    /**
     * Clear all of the resolved instances.
     *
     * @return void
     */
    public static function clearResolvedInstances()
    {
Arguments
  1. "buxus-site"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
    /**
     * Get the mockable class for the bound instance.
     *
     * @return string|null
     */
    protected static function getMockableClass()
    {
        if ($root = static::getFacadeRoot()) {
            return get_class($root);
        }
    }
 
    /**
     * Get the root object behind the facade.
     *
     * @return mixed
     */
    public static function getFacadeRoot()
    {
        return static::resolveFacadeInstance(static::getFacadeAccessor());
    }
 
    /**
     * Get the registered name of the component.
     *
     * @return string
     *
     * @throws \RuntimeException
     */
    protected static function getFacadeAccessor()
    {
        throw new RuntimeException('Facade does not implement getFacadeAccessor method.');
    }
 
    /**
     * Resolve the facade root instance from the container.
     *
     * @param  string|object  $name
     * @return mixed
     */
Arguments
  1. "buxus-site"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
illuminate
/
support
/
Facades
/
Facade.php
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    public static function setFacadeApplication($app)
    {
        static::$app = $app;
    }
 
    /**
     * Handle dynamic, static calls to the object.
     *
     * @param  string  $method
     * @param  array   $args
     * @return mixed
     *
     * @throws \RuntimeException
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        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([$instance, $method], $args);
        }
    }
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
     * @param string $web_host_name
     */
    public function setWebHostName($web_host_name)
    {
        //$this->web_host_name = $web_host_name;
    }
 
    /**
     * Get host name of web, mostly it has same value like getenv('HOST')
     *
     * @return string
     */
    public function getWebHostName()
    {
        return $this->web_host_name;
    }
 
    public function __get($name) {
        if ($name == 'web_host_name') {
            return \BuxusSite::getHostname();
        }
 
        if ($name == 'active_language') {
            return \Trans::getActiveLanguage();
        }
    }
 
    /**
     * Set home page id
     *
     * @param int $home_page_id
     */
    public function setHomePageId($home_page_id)
    {
        $this->home_page_id = $home_page_id;
    }
 
    /**
     * Set the state for append_page_id
     *
Arguments
  1. "getHostname"
    
  2. []
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
 
        if (BUXUS_SERIES_VERSION == 7) {
            // Set web hostname
//            $this->web_host_name = getenv('HOST');//getenv('HOST');
 
            // Set error page
            $this->error_404_page_id = 5;//GetSystemOption('C_custom_error_page_id');
        } else {
            // Set web hostname
//            $this->web_host_name = getenv('HOST');
 
            // Set error page
            $this->error_404_page_id = GetSystemOption('C_custom_error_page_id');
        }
 
 
 
        if (is_null(self::$virtual_domain))
        {// The virtual domain is not defined
            self::$virtual_domain = $this->web_host_name;
        }
    }
 
    /**
     * @param string $hostname
     * @param string $postfix
     */
    public function addDomain($hostname, $postfix) {
        $this->domains[$hostname] = $postfix;
    }
 
    protected $include_postfixed_property = true;
 
    /**
     * Set instance of SeoUrlBase
     *
     * @param SeoUrlBase $instance
     */
    public static function setInstance(SeoUrlBase $instance)
    {
Arguments
  1. "web_host_name"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url_base.class.php
    /**
     * Set instance of SeoUrlBase
     *
     * @param SeoUrlBase $instance
     */
    public static function setInstance(SeoUrlBase $instance)
    {
        self::$instance = $instance;
    }
 
    /**
     * Retrieves the default instance.
     *
     * @return SeoUrlBase
     */
    public static function getInstance()
    {
        if (is_null(self::$instance))
        {
            $instance = new SeoUrlBase();
            self::setInstance($instance);
        }
 
        return self::$instance;
    }
 
    /**
     * Set host name of web, mostly it has same value like getenv('HOST')
     *
     * @param string $web_host_name
     */
    public function setWebHostName($web_host_name)
    {
        //$this->web_host_name = $web_host_name;
    }
 
    /**
     * Get host name of web, mostly it has same value like getenv('HOST')
     *
     * @return string
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
buxus
/
config
/
seo_url.php
<?php
$seo_url = SeoUrlBase::getInstance();
$seo_url->setUrlPostix('');
$seo_url->setAddingIndex(true);
$seo_url->setAppendPageId(false);
$seo_url->setMemcachedUrls(true);
$seo_url->setIgnoreProtocol(true);
 
// Add page types with SEO URL
try {
    $seo_url->setHomePageId(\Buxus\Util\PageIds::getHomepage());
} catch (Exception $e) {
}
 
$page_types = array(
    'HOMEPAGE_ID',
    'ESHOP_CATEGORY_ID',
    'ESHOP_SUBCATEGORY_ID',
    'ESHOP_PRODUCER_ID',
    'ESHOP_PRODUCT_ID',
    'ESHOP_CATALOG_ID',
    'ARTICLE_ID',
    'RUBRIC_ID',
    'SECTION_ID',
    'SERVICE_PAGE_ID',
    'DYNAMIC_CATEGORY_ID',
    'FIXED_FACET_ID',
    'BLOG_MAIN_PAGE_ID',
    'BLOG_ARTICLE_ID',
    'BLOG_CATEGORY_ID'
//    'FOLDER_ID',
);
 
foreach ($page_types as $page_constant) {
    if (\Buxus\Util\PageTypeID::id($page_constant)) {
        $seo_url->addPageTyp(\Buxus\Util\PageTypeID::id($page_constant));
    }
}
 
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
config
/
src
/
Config.php
 
    public function set($key) {
        $this->repository->set($key);
    }
 
    protected $required_configs = array();
 
    public function configRequire($key) {
        if (!isset($this->required_configs[$key])) {
            if (defined('BASE_BUXUS_DIR')) {
                $path = base_path('/buxus/config/' . $key . '.php');
            } else {
                if (!function_exists('GetSystemOption')) {
                    throw new \Exception('Unable to get root directory for web');
                }
                $path = base_path('buxus/') . 'config/' . $key . '.php';
            }
            $result = null;
            if (file_exists($path)) {
                $result = require_once $path;
            }
            $this->required_configs[$key] = $result;
        }
        return $this->required_configs[$key];
    }
 
    public function offsetExists($offset)
    {
        return $this->repository->offsetExists($offset);
    }
 
    public function offsetGet($offset)
    {
        return $this->get($offset);
    }
 
    public function offsetSet($offset, $value)
    {
        $this->repository->offsetSet($offset, $value);
    }
Arguments
  1. "/home/jaroslavistok/Sites/diamanager/buxus/config/seo_url.php"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
config
/
src
/
helpers.php
            }
 
            return app('config')->get($key, $default);
        }
 
        if (is_null($key)) return \Buxus\Config\Config::getInstance();
 
        if (is_array($key))
        {
            return \Buxus\Config\Config::getInstance()->set($key);
        }
 
        return \Buxus\Config\Config::getInstance()->get($key, $default);
    }
}
 
if (!function_exists('config_require')) {
    function config_require($key)
    {
        return \Buxus\Config\Config::getInstance()->configRequire($key);
    }
}
 
if (!function_exists('config_path')) {
    function config_path($path = '')
    {
        if (BUXUS_SERIES_VERSION == 7) {
            return app()->make('path.config').($path ? DIRECTORY_SEPARATOR.$path : $path);
        }
        return \Buxus\Config\Config::getInstance()->getConfigPath($path);
    }
}
 
 
Arguments
  1. "seo_url"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
seourl-legacy
/
buxus
/
lib
/
seo_url
/
seo_url.inc.php
<?php
require_once 'includes/constants.inc.php';
if (BUXUS_SERIES_VERSION == 6) {
    config_require('seo_url');
}
 
 
Arguments
  1. "seo_url"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
legacy-base
/
buxus
/
includes
/
generate_functions.php
<?php
require_once 'lib/seo_url/seo_url.inc.php';
require_once 'lib/buxus_toolbar/buxus_toolbar.inc.php';
 
function GeneratePage($pageId, $generationLevel = 0)
{
    global $page_id;
    global $property;
    global $child_property;
    global $page_class_id;
    global $page_state_id;
    global $HTTP_USER_AGENT;
    global $gGenerationLevel;
 
    app('buxus:mvc')->registerCurrentPageId($pageId);
 
    $gGenerationLevel = $generationLevel;
 
    $page_id = $pageId;
 
    if ($generationLevel > 1) {
        echo "FATAL ERROR: GENERATION STACK TOO THICK<br>";
        exit;
    }
    try {
        $page = \PageFactory::get($page_id);
    } catch (\Exception $e) {
        $page = null;
    }
 
//    $prop_row = BuxusDB::get()->fetchRow
//    ("SELECT page_id, page_class_id, page_state_id FROM tblPages WHERE page_id= :page_id AND page_class_id<> :page_class_id AND page_class_id<>".C_pc_Item." AND page_class_id<>:page_class_id2",
//        array(':page_id' => $page_id, ':page_class_id' =>C_pc_System_Option, ':page_class_id2' => C_pc_ParentItem));
 
//    if (!(is_array($prop_row)))
    if (!$page) {
        //if custom error page displaying fails
        if (!showCustomError('404')) {
            //show standard non-user-friendly error page
            header('HTTP/1.0 404 Not Found');
Arguments
  1. "/home/jaroslavistok/Sites/diamanager/vendor/buxus/seourl-legacy/buxus/lib/seo_url/seo_url.inc.php"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
core
/
src
/
handler
/
generate_page.php
<?php
define('C_BUXUS_FRONTEND', true);
 
BuxusLocalStrings::getInstance()->add('generate_page');
 
require_once 'includes/generate_page.inc.php';
require_once 'includes/generate_functions.php';
require_once 'includes/mail_functions.inc.php';
require_once 'project_includes/captcha/captcha.config.php';
require_once 'includes/constants.inc.php';
 
if (GetSystemOption('C_include_buxus_functions') == '1') {
    require_once 'includes/functions.external.inc.php';
}
  
// set gzhandler
if (GetSystemOption('C_gzhandler_buxus')) {
    ob_start('ob_gzhandler');
}
 
// SEO URL
global $page_id;
require_once 'lib/seo_url/seo_url.inc.php';
 
$seo_url = SeoUrlBase::getInstance();
$page_id =  $seo_url->getPageId($_SERVER['SERVER_PORT'], $_SERVER['SERVER_NAME'], $_SERVER['REQUEST_URI']);
 
if (!((is_numeric($page_id)) && ($page_id > 0))) {
    //ak nie je nastaveny page_id, hladame page_name
    $page_name = (isset($_GET['page_name']) ? $_GET['page_name'] : '');
        
    if (!empty($page_name)) {
        //funckia skonci, ak nenajde, alebo najde viac
        $page_id = GetPageIdByPageName($page_name);
    } else {
        if (!showCustomError('404')) {
            header('HTTP/1.0 404 Not Found');
              echo 'Wrong page ID specified.';
          }
          exit;
Arguments
  1. "/home/jaroslavistok/Sites/diamanager/vendor/buxus/legacy-base/buxus/includes/generate_functions.php"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
vendor
/
buxus
/
core
/
src
/
Buxus
/
Router
/
BuxusRouter.php
            echo '<html><head><title>maintenance</title></head><body>This BUXUS application is undergoing maintenance. Please try again later</body></html>';
        } else {
            include $template_path;
        }
    }
 
    public function dispatch($request_uri) {
        if ($this->app->isDownForMaintenance()) {
            $this->display503();
            exit;
        }
 
        $script = $this->getScript($request_uri);
 
        foreach ($this->auto_scripts as $auto_script) {
            include($auto_script);
        }
 
        if (!empty($script)) {
            include($script);
        }
 
        if ($this->default_script != $script) {
            include($this->default_script);
        }
 
        header('HTTP/1.0 404 Not Found');
        echo '404 Not Found';
        exit;
    }
}
Arguments
  1. "/home/jaroslavistok/Sites/diamanager/vendor/buxus/core/src/handler/generate_page.php"
    
/
home
/
jaroslavistok
/
Sites
/
diamanager
/
public
/
buxus.php
<?php
define('BASE_BUXUS_DIR', realpath(__DIR__ . '/../'));
require_once __DIR__ . '/../vendor/autoload.php';
require_once CORE_BUXUS_DIR . '/src/buxus_bootstrap.php';
 
$router = app('buxus-router');
$router->dispatch($_SERVER['REQUEST_URI']);
 
Arguments
  1. "/"
    

Environment & details:

empty
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler