DOCROOT/non-public/inzite/classes/Inzite/Controller/Template.php [ 68 ]
63 // No locale in URL
64 $sUrl = $this->sRequestUrl;
65 $bDownloadUrl = str_contains($this->sRequestUrl, 'download/getFile');
66
67 if ($bDownloadUrl === false && $this->bLocaleInUrl === false && Config::get('site.locale.in.url') == 'true') {
68 $sLanguage = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
69 $iLocaleId = (int)array_search($sLanguage, $this->aLanguages);
70 if ($iLocaleId === 0) {
71 $iLocaleId = $this->iLocaleIdDefault;
72 }
73 $this->iLocaleId = $iLocaleId;
-
DOCROOT/non-public/inzite/classes/Inzite/Controller/Template.php [ 68 ] » Kohana_Core::error_handler( arguments )
0
integer 8
1
string(37) "Undefined index: HTTP_ACCEPT_LANGUAGE"
2
string(79) "/home/nnkc/public_html/non-public/inzite/classes/Inzite/Controller/Template.php"
3
integer 68
4
array(2) ( "sUrl" => string(27) "http://www.nnkc.nl/page/404" "bDownloadUrl" => bool FALSE )
63 // No locale in URL 64 $sUrl = $this->sRequestUrl; 65 $bDownloadUrl = str_contains($this->sRequestUrl, 'download/getFile'); 66 67 if ($bDownloadUrl === false && $this->bLocaleInUrl === false && Config::get('site.locale.in.url') == 'true') { 68 $sLanguage = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); 69 $iLocaleId = (int)array_search($sLanguage, $this->aLanguages); 70 if ($iLocaleId === 0) { 71 $iLocaleId = $this->iLocaleIdDefault; 72 } 73 $this->iLocaleId = $iLocaleId;
-
APPPATH/classes/Controller/Template.php [ 5 ] » Inzite_Controller_Template->before( )
1 <?php 2 class Controller_Template extends Inzite_Controller_Template { 3 4 public function before() { 5 parent::before(); 6 7 //Add custom scripts and stylesheets 8 9 $this->template->oLocalePage = $this->oPage; 10 $this->template->oFooterPages = Model_Page::getFooterPages();
-
DOCROOT/non-public/inzite/classes/Inzite/Controller/Page.php [ 19 ] » Controller_Template->before( )
14 15 public $_table_name = 'page'; 16 17 public function before() 18 { 19 parent::before(); 20 } 21 22 public function action_index() 23 { 24 $oPage = $this->getPage();
-
SYSPATH/classes/Kohana/Controller.php [ 71 ] » Inzite_Controller_Page->before( )
66 * @return Response 67 */ 68 public function execute() 69 { 70 // Execute the "before action" method 71 $this->before(); 72 73 // Determine the action to use 74 $action = 'action_' . $this->request->action(); 75 76 // If the action doesn't exist, it's a 404
-
{PHP internal call} » Kohana_Controller->execute( )
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 93 ] » ReflectionMethod->invoke( arguments )
0
object Controller_Page(51)
{ public _table_name => string(4) "page" public template => string(16) "template.default" public sContent => NULL public _module => NULL public _controller => string(4) "Page" public _type => string(0) "" public _model => string(4) "Page" public sAction => string(5) "index" public aAcl => array(0) public bMobile => bool FALSE public bSecure => bool FALSE public bCms => bool FALSE public bAjax => bool FALSE public bPreview => bool FALSE public iPageId => integer 101 public aPageIds => array(0) public aPageNames => array(0) public aPageTitles => array(0) public bPageNotFound => bool TRUE public iSubLevels => NULL public iLocaleId => integer 1 public sLocale => string(5) "nl_NL" public iLocaleIdDefault => integer 1 public sLocaleDefault => string(5) "nl_NL" public iLocaleIdDefaultCms => integer 1 public sLocaleDefaultCms => string(5) "nl_NL" public sLanguage => string(2) "nl" public sCountry => string(2) "NL" public bLocaleInUrl => bool FALSE public bUserIsAdmin => bool FALSE public sRequestUrl => string(27) "http://www.nnkc.nl/page/404" public aUrlParts => array(2) ( 0 => string(4) "page" 1 => string(3) "404" ) public aLanguages => array(2) ( 1 => string(2) "nl" 2 => string(2) "en" ) public aLocales => array(2) ( 1 => string(5) "nl_NL" 2 => string(5) "en_GB" ) public aLocalesShort => array(2) ( 1 => string(5) "nl-nl" 2 => string(5) "en-gb" ) public oController => array(0) public aJavaScript => array(1) ( "index" => array(1) ( "scripts" => array(7) ( 0 => string(64) "<script src="/public/js/inzite/MooTools-Core-1.6.0.js"></script>" 1 => string(64) "<script src="/public/js/inzite/MooTools-More-1.6.0.js"></script>" 2 => string(66) "<script src="/public/js/inzite/Site.js?cache=1583158361"></script>" 3 => string(74) "<script src="/public/js/inzite/slideout.min.js?cache=1559820087"></script>" 4 => string(64) "<script src="/public/js/user/site.js?cache=1690802212"></script>" 5 => string(72) "<script src="/public/js/inzite/FormSubmit.js?cache=1606829931"></script>" 6 => string(88) "<script src="/public/js/inzite/chartist/dist/chartist.min.js?cache=1563284376"></script>" ) ) ) public aStyleSheet => array(1) ( "index" => array(12) ( 0 => string(75) "<link href="/public/css/inzite/grid.css?cache=1559820087" rel="stylesheet">" 1 => string(75) "<link href="/public/css/inzite/site.css?cache=1570525401" rel="stylesheet">" 2 => string(77) "<link href="/public/css/inzite/cookie.css?cache=1563796234" rel="stylesheet">" 3 => string(75) "<link href="/public/css/inzite/form.css?cache=1567682117" rel="stylesheet">" 4 => string(81) "<link href="/public/css/inzite/responsive.css?cache=1557219684" rel="stylesheet">" 5 => string(92) "<link rel="stylesheet" href="/public/css/inzite/fontello/css/fontello.css?cache=1642838259">" 6 => string(98) "<link rel="stylesheet" href="/public/css/inzite/fontello/css/fontello-codes.css?cache=1642838259">" 7 => string(101) "<link rel="stylesheet" href="/public/css/inzite/fontello/css/fontello-embedded.css?cache=1642838259">" 8 => string(93) "<link rel="stylesheet" href="/public/css/inzite/fontello/css/animation.css?cache=1557219684">" 9 => string(73) "<link href="/public/css/user/site.css?cache=1684498332" rel="stylesheet">" 10 => string(79) "<link href="/public/css/user/responsive.css?cache=1565791435" rel="stylesheet">" 11 => string(96) "<link rel="stylesheet" href="/public/js/inzite/chartist/dist/chartist.min.css?cache=1563284376">" ) ) public aBreadcrumb => array(0) public aSelects => array(0) public oRows => array(0) public aPages => array(0) public iLimitOrmTable => integer 25 public bInitialized => bool FALSE public auto_render => bool TRUE public request => object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(71) "(<lang>/)(<id>(/<id2>(/<id3>(/<id4>(/<id5>(/<id6>(/<id7>(/<id8>))))))))" protected _regex => array(0) protected _defaults => array(3) ( "lang" => string(2) "nl" "controller" => string(4) "Page" "action" => string(5) "index" ) protected _route_regex => string(248) "#^(?:(?P<lang>[^/.,;?\n]++)/)?(?:(?P<id>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++)(?:/(?P<id4>[^/.,;?\n]++) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Page" protected _action => string(5) "index" protected _uri => string(8) "page/404" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(4) "page" "id" => string(3) "404" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 404 protected _header => object HTTP_Header(0)
public sDomain => string(11) "www.nnkc.nl" public aLocaleDefault => array(1) ( 1 => string(5) "nl_NL" ) public aBrowser => array(5) ( "browser" => bool FALSE "version" => bool FALSE "robot" => bool FALSE "mobile" => bool FALSE "platform" => bool FALSE ) public oPage => NULL }{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }88 89 // Create a new instance of the controller 90 $controller = $class->newInstance($request, $response); 91 92 // Run the controller's execute() method 93 $response = $class->getMethod('execute')->invoke($controller); 94 95 if (!$response instanceof Response) { 96 // Controller failed to return a Response. 97 throw new Kohana_Exception('Controller failed to return a Response'); 98 }
-
SYSPATH/classes/Kohana/Request/Client.php [ 116 ] » Kohana_Request_Client_Internal->execute_request( arguments )
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(71) "(<lang>/)(<id>(/<id2>(/<id3>(/<id4>(/<id5>(/<id6>(/<id7>(/<id8>))))))))" protected _regex => array(0) protected _defaults => array(3) ( "lang" => string(2) "nl" "controller" => string(4) "Page" "action" => string(5) "index" ) protected _route_regex => string(248) "#^(?:(?P<lang>[^/.,;?\n]++)/)?(?:(?P<id>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++)(?:/(?P<id4>[^/.,;?\n]++) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Page" protected _action => string(5) "index" protected _uri => string(8) "page/404" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(4) "page" "id" => string(3) "404" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 404 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }111 112 if (($cache = $this->cache()) instanceof HTTP_Cache) { 113 return $cache->execute($this, $request, $response); 114 } 115 116 $response = $this->execute_request($request, $response); 117 118 // Execute response callbacks 119 foreach ($this->header_callbacks() as $header => $callback) { 120 if ($response->headers($header)) { 121 $cb_result = call_user_func($callback, $request, $response, $this);
-
SYSPATH/classes/Kohana/Request.php [ 933 ] » Kohana_Request_Client->execute( arguments )
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(71) "(<lang>/)(<id>(/<id2>(/<id3>(/<id4>(/<id5>(/<id6>(/<id7>(/<id8>))))))))" protected _regex => array(0) protected _defaults => array(3) ( "lang" => string(2) "nl" "controller" => string(4) "Page" "action" => string(5) "index" ) protected _route_regex => string(248) "#^(?:(?P<lang>[^/.,;?\n]++)/)?(?:(?P<id>[^/.,;?\n]++)(?:/(?P<id2>[^/.,;?\n]++)(?:/(?P<id3>[^/.,;?\n]++)(?:/(?P<id4>[^/.,;?\n]++) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Page" protected _action => string(5) "index" protected _uri => string(8) "page/404" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(4) "page" "id" => string(3) "404" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}928 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 929 ':uri' => $this->_uri, 930 ]); 931 } 932 933 return $this->_client->execute($this); 934 } 935 936 /** 937 * Returns whether this request is the initial request Kohana received. 938 * Can be used to test for sub requests.
-
DOCROOT/non-public/inzite/classes/HTTP/Exception/404.php [ 16 ] » Kohana_Request->execute( )
11 * @return Response 12 */ 13 public function get_response() 14 { 15 $request = Request::factory('page/404'); 16 $response = $request->execute(); 17 18 return $response; 19 } 20 21 }
-
SYSPATH/classes/Kohana/Request.php [ 924 ] » HTTP_Exception_404->get_response( )
919 920 if (!$this->_route instanceof Route) { 921 return HTTP_Exception::factory(404, 'Unable to find a route to match the URI: :uri', [ 922 ':uri' => $this->_uri, 923 ])->request($this) 924 ->get_response(); 925 } 926 927 if (!$this->_client instanceof Request_Client) { 928 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 929 ':uri' => $this->_uri,
-
DOCROOT/public/index.php [ 89 ] » Kohana_Request->execute( )
84 /** 85 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 86 * If no source is specified, the URI will be automatically detected. 87 */ 88 echo Request::factory(TRUE, array(), FALSE) 89 ->execute() 90 ->send_headers(TRUE) 91 ->body(); 92 93 }