/var/sites/s/systemthirteen.com/public_html/vendor/rockettheme/toolbox/Session/src/Session.php
// Destroy any existing sessions started with session.auto_start
if (session_id())
{
session_unset();
session_destroy();
}
// Disable transparent sid support
ini_set('session.use_trans_sid', 0);
// Only allow cookies
ini_set('session.use_cookies', 1);
session_name('msF9kJcW');
session_set_cookie_params($lifetime, $path);
register_shutdown_function([$this, 'close']);
session_cache_limiter('nocache');
if (isset($this->count)) {
Arguments
-
"ini_set(): Headers already sent. You cannot change the session module's ini settings at this time"
/var/sites/s/systemthirteen.com/public_html/vendor/rockettheme/toolbox/Session/src/Session.php
// Destroy any existing sessions started with session.auto_start
if (session_id())
{
session_unset();
session_destroy();
}
// Disable transparent sid support
ini_set('session.use_trans_sid', 0);
// Only allow cookies
ini_set('session.use_cookies', 1);
session_name('msF9kJcW');
session_set_cookie_params($lifetime, $path);
register_shutdown_function([$this, 'close']);
session_cache_limiter('nocache');
if (isset($this->count)) {
Arguments
"session.use_trans_sid"
"0"
/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Session.php
substr($current_route, 3, strlen($base)) == $base || //handle language (en)
substr($current_route, 6, strlen($base)) == $base) { //handle region specific language prefix (en-US)
$session_timeout = $config->get('plugins.admin.session.timeout', 1800);
$is_admin = true;
}
}
if ($config->get('system.session.enabled') || $is_admin) {
// Define session service.
parent::__construct($session_timeout, $session_path);
$domain = $uri->host();
if ($domain === 'localhost') {
$domain = '';
}
$secure = $config->get('system.session.secure', false);
$httponly = $config->get('system.session.httponly', true);
$unique_identifier = GRAV_ROOT;
$this->setName($config->get('system.session.name', 'grav_site') . '-' . substr(md5($unique_identifier), 0, 7) . ($is_admin ? '-admin' : ''));
Arguments
/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Processors/InitializeProcessor.php
}
}
// Initialize the timezone.
if ($this->container['config']->get('system.timezone')) {
date_default_timezone_set($this->container['config']->get('system.timezone'));
}
// Initialize uri, session.
$this->container['session']->init();
$this->container['uri']->init();
$this->container->setLocale();
}
}
/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php
public function process()
{
/** @var Debugger $debugger */
$debugger = $this['debugger'];
// process all processors (e.g. config, initialize, assets, ..., render)
foreach ($this->processors as $processor) {
$processor = $this[$processor];
$this->measureTime($processor->id, $processor->title, function () use ($processor) {
$processor->process();
});
}
// Set the header type
$this->header();
echo $this->output;
$debugger->render();
$this->fireEvent('onOutputRendered');
/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php
$container['debugger'] = new Debugger();
$debugger = $container['debugger'];
// closure that measures time by wrapping a function into startTimer and stopTimer
// The debugger can be passed to the closure. Should be more performant
// then to get it from the container all time.
$container->measureTime = function ($timerId, $timerTitle, $callback) use ($debugger) {
$debugger->startTimer($timerId, $timerTitle);
$callback();
$debugger->stopTimer($timerId);
};
$container->measureTime('_services', 'Services', function () use ($container) {
$container->registerServices($container);
});
return $container;
}
/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php
/**
* Magic Catch All Function
* Used to call closures like measureTime on the instance.
* Source: http://stackoverflow.com/questions/419804/closures-as-class-members
*/
public function __call($method, $args)
{
$closure = $this->$method;
call_user_func_array($closure, $args);
}
/**
* Initialize and return a Grav instance
*
* @param array $values
*
* @return static
*/
protected static function load(array $values)
Arguments
"init"
"Initialize"
Closure {
class: "Grav\Common\Grav"
this: Grav { …}
use: {
$processor: InitializeProcessor {}
}
file: "/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php"
line: "120 to 122"
}
/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php
/**
* Magic Catch All Function
* Used to call closures like measureTime on the instance.
* Source: http://stackoverflow.com/questions/419804/closures-as-class-members
*/
public function __call($method, $args)
{
$closure = $this->$method;
call_user_func_array($closure, $args);
}
/**
* Initialize and return a Grav instance
*
* @param array $values
*
* @return static
*/
protected static function load(array $values)
Arguments
Closure {
class: "Grav\Common\Grav"
parameters: {
$timerId: {}
$timerTitle: {}
$callback: {}
}
use: {
$debugger: Debugger {}
}
file: "/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php"
line: "381 to 385"
}
array:3 [
0 => "init"
1 => "Initialize"
2 => Closure {
class: "Grav\Common\Grav"
this: Grav { …}
use: {
$processor: InitializeProcessor {}
}
file: "/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php"
line: "120 to 122"
}
]
/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php
{
/** @var Debugger $debugger */
$debugger = $this['debugger'];
// process all processors (e.g. config, initialize, assets, ..., render)
foreach ($this->processors as $processor) {
$processor = $this[$processor];
$this->measureTime($processor->id, $processor->title, function () use ($processor) {
$processor->process();
});
}
// Set the header type
$this->header();
echo $this->output;
$debugger->render();
$this->fireEvent('onOutputRendered');
Arguments
"measureTime"
array:3 [
0 => "init"
1 => "Initialize"
2 => Closure {
class: "Grav\Common\Grav"
this: Grav { …}
use: {
$processor: InitializeProcessor {}
}
file: "/var/sites/s/systemthirteen.com/public_html/system/src/Grav/Common/Grav.php"
line: "120 to 122"
}
]
/var/sites/s/systemthirteen.com/public_html/index.php
// Get the Grav instance
$grav = Grav::instance(
array(
'loader' => $loader
)
);
// Process the page
try {
$grav->process();
} catch (\Exception $e) {
$grav->fireEvent('onFatalException', new Event(['exception' => $e]));
throw $e;
}