SYSPATH/classes/Kohana/URL.php [ 127 ]
122 }
123
124 // Validate $host, see if it matches trusted hosts
125 if ( ! static::is_trusted_host($host))
126 {
127 throw new Kohana_Exception(
128 'Untrusted host :host. If you trust :host, add it to the trusted hosts in the `url` config file.',
129 [':host' => $host]
130 );
131 }
132
-
SYSPATH/classes/Kohana/URL.php [ 164 ] » Kohana_URL::base(arguments)
0
string(5) "https"
1
bool FALSE
2
NULL
159 // Encode all non-ASCII characters, as per RFC 1738 160 $path = preg_replace_callback('~([^/#]+)~', 'URL::_rawurlencode_callback', $path); 161 } 162 163 // Concat the URL 164 return URL::base($protocol, $index, $subdomain).$path; 165 } 166 167 /** 168 * Callback used for encoding all non-ASCII characters, as per RFC 1738 169 * Used by URL::site()
-
SYSPATH/classes/Kohana/HTTP/Exception/Redirect.php [ 29 ] » Kohana_URL::site(arguments)
0
string(16) "/severni-amerika"
1
bool TRUE
2
bool FALSE
24 return $this->headers('Location'); 25 26 if (strpos($uri, '://') === FALSE) 27 { 28 // Make the URI into a URL 29 $uri = URL::site($uri, TRUE, ! empty(Kohana::$index_file)); 30 } 31 32 $this->headers('Location', $uri); 33 34 return $this;
-
SYSPATH/classes/Kohana/HTTP.php [ 40 ] » Kohana_HTTP_Exception_Redirect->location(arguments)
0
string(16) "/severni-amerika"
35 if ( ! $e instanceof HTTP_Exception_Redirect) 36 throw new Kohana_Exception('Invalid redirect code \':code\'', [ 37 ':code' => $code 38 ]); 39 40 throw $e->location($uri); 41 } 42 43 /** 44 * Checks the browser cache to see the response needs to be returned, 45 * execution will halt and a 304 Not Modified will be sent if the
-
SYSPATH/classes/Kohana/Controller.php [ 127 ] » Kohana_HTTP::redirect(arguments)
0
string(16) "/severni-amerika"
1
integer 301
122 * @param int $code HTTP Status code to use for the redirect 123 * @throws HTTP_Exception 124 */ 125 public static function redirect($uri = '', $code = 302) 126 { 127 return HTTP::redirect( (string) $uri, $code); 128 } 129 130 /** 131 * Checks the browser cache to see the response needs to be returned, 132 * execution will halt and a 304 Not Modified will be sent if the
-
APPPATH/classes/Controller/Country.php [ 21 ] » Kohana_Controller::redirect(arguments)
0
string(16) "/severni-amerika"
1
integer 301
16 { 17 $this->redirect("/",301); 18 } 19 elseif($country_url == 'spojene-staty-americke-usa') 20 { 21 $this->redirect("/severni-amerika",301); 22 } 23 24 if(!empty($country_url)) 25 { 26
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Country->action_detail()
79 [':uri' => $this->request->uri()] 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Country(6)
{ public template => object View(2)
{ protected _file => string(58) "/var/www/atlaszemi.info.www/application/views/template.php" protected _data => array(9) ( "_header" => object View(2)
public auto_render => bool TRUE public request => object Request(19){ protected _file => string(63) "/var/www/atlaszemi.info.www/application/views/static/header.php" protected _data => array(8) ( "_css" => NULL "page_title" => string(14) "Atlaszemi.info" "page_descript" => string(43) "Atlaszemi.info - Inspirace pro vaše cesty." "author" => string(14) "Atlaszemi.info" "site_name" => string(14) "Atlaszemi.info" "title_image" => NULL "keywords" => NULL "_json_ld" => NULL ) }
"_navigation" => object View(2){ protected _file => string(67) "/var/www/atlaszemi.info.www/application/views/static/navigation.php" protected _data => array(5) ( "_active" => string(0) "" "_form_action" => string(0) "" "_form_query" => string(0) "" "q" => string(0) "" "selected" => string(0) "" ) }
"_slot_view" => string(0) "" "_footer_html" => object View(2){ protected _file => string(68) "/var/www/atlaszemi.info.www/application/views/static/footer_html.php" protected _data => array(1) ( "_footer_banner" => NULL ) }
"_footer" => object View(2){ protected _file => string(63) "/var/www/atlaszemi.info.www/application/views/static/footer.php" protected _data => array(1) ( "_scripts" => NULL ) }
"bg_white" => bool TRUE "breadcrumbs" => NULL "_slot_right_col" => object View(2){ protected _file => string(72) "/var/www/atlaszemi.info.www/application/views//static/slot_right_col.php" protected _data => array(2) ( "siteconfig" => array(10) ( "server_url" => string(14) "atlaszemi.info" "imageserver" => string(22) "https://atlaszemi.info" "server_name" => string(14) "Atlaszemi.info" "author" => string(14) "Atlaszemi.info" "description" => string(43) "Atlaszemi.info - Inspirace pro vaše cesty." "site_url" => string(22) "https://Atlaszemi.info" "page_name" => string(14) "Atlaszemi.info" "default_driver" => string(4) "file" "default_lifetime" => integer 60000 "gsm_api_key" => string(39) "AIzaSyDZipmFHYuYdCS-HFeDj1WYuPkVgaGe98Y" ) "continents" => array(6) ( 0 => array(6) ( "cont_code" => string(2) "AF" "name" => string(6) "Afrika" "asciiname" => string(7) "/afrika" "latitude" => string(7) "7.18810" "longitude" => string(8) "21.09375" "countries" => string(2) "28" ) 1 => array(6) ( "cont_code" => string(2) "AS" "name" => string(4) "Asie" "asciiname" => string(5) "/asie" "latitude" => string(8) "29.84064" "longitude" => string(8) "89.29688" "countries" => string(2) "23" ) 2 => array(6) ( "cont_code" => string(2) "EU" "name" => string(6) "Evropa" "asciiname" => string(7) "/evropa" "latitude" => string(8) "48.69096" "longitude" => string(7) "9.14062" "countries" => string(2) "39" ) 3 => array(6) ( "cont_code" => string(2) "NA" "name" => string(7) "Amerika" "asciiname" => string(16) "/severni-amerika" "latitude" => string(8) "46.07323" "longitude" => string(10) "-100.54688" "countries" => string(2) "21" ) 4 => array(6) ( "cont_code" => string(2) "OC" "name" => string(8) "Oceánie" "asciiname" => string(8) "/oceanie" "latitude" => string(9) "-18.31281" "longitude" => string(9) "138.51562" "countries" => string(1) "3" ) 5 => array(6) ( "cont_code" => string(2) "ME" "name" => string(16) "Blízký Východ" "asciiname" => string(14) "/blizky-vychod" "latitude" => string(8) "33.13906" "longitude" => string(8) "35.85869" "countries" => string(1) "5" ) ) ) }
"_prefs" => array(3) ( 0 => array(8) ( "id" => string(3) "110" "name" => string(7) "Itálie" "asciiname" => string(6) "italie" "latitude" => string(8) "42.83333" "longitude" => string(8) "12.83333" "title_image" => string(36) "d09ab277465df98588064adc5e5dc7f4.jpg" "pocet_clanku" => string(3) "258" "c" => array(3) ( 0 => string(13) "220 článků" 1 => string(15) "34 fotogalerií" 2 => string(8) "4 videí" ) ) 1 => array(8) ( "id" => string(2) "13" "name" => string(8) "Rakousko" "asciiname" => string(8) "rakousko" "latitude" => string(8) "47.33333" "longitude" => string(8) "13.33333" "title_image" => string(36) "9df61f8675b2d1bda7aab99cb289faa7.jpg" "pocet_clanku" => string(3) "133" "c" => array(3) ( 0 => string(12) "92 článků" 1 => string(15) "32 fotogalerií" 2 => string(8) "9 videí" ) ) 2 => array(8) ( "id" => string(2) "67" "name" => string(11) "Španělsko" "asciiname" => string(9) "spanelsko" "latitude" => string(8) "40.00000" "longitude" => string(8) "-4.00000" "title_image" => string(36) "273afbc7628df5a6005da625e11177e2.jpg" "pocet_clanku" => string(3) "236" "c" => array(4) ( 0 => string(13) "189 článků" 1 => string(11) "2 cestopisy" 2 => string(15) "40 fotogalerií" 3 => string(8) "5 videí" ) ) ) ) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => string(49) "http://atlaszemi.info/spojene-staty-americke-usa/" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(13) "<country_url>" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(7) "Country" "action" => string(6) "detail" "file" => NULL ) protected _route_regex => string(35) "#^(?P<country_url>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Country" protected _action => string(6) "detail" protected _uri => string(26) "spojene-staty-americke-usa" protected _external => bool FALSE protected _params => array(2) ( "country_url" => string(26) "spojene-staty-americke-usa" "file" => NULL ) 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 200 protected _header => object HTTP_Header(0)
public siteconfig => array(10) ( "server_url" => string(14) "atlaszemi.info" "imageserver" => string(22) "https://atlaszemi.info" "server_name" => string(14) "Atlaszemi.info" "author" => string(14) "Atlaszemi.info" "description" => string(43) "Atlaszemi.info - Inspirace pro vaše cesty." "site_url" => string(22) "https://Atlaszemi.info" "page_name" => string(14) "Atlaszemi.info" "default_driver" => string(4) "file" "default_lifetime" => integer 60000 "gsm_api_key" => string(39) "AIzaSyDZipmFHYuYdCS-HFeDj1WYuPkVgaGe98Y" ) public continents => array(6) ( 0 => array(6) ( "cont_code" => string(2) "AF" "name" => string(6) "Afrika" "asciiname" => string(7) "/afrika" "latitude" => string(7) "7.18810" "longitude" => string(8) "21.09375" "countries" => string(2) "28" ) 1 => array(6) ( "cont_code" => string(2) "AS" "name" => string(4) "Asie" "asciiname" => string(5) "/asie" "latitude" => string(8) "29.84064" "longitude" => string(8) "89.29688" "countries" => string(2) "23" ) 2 => array(6) ( "cont_code" => string(2) "EU" "name" => string(6) "Evropa" "asciiname" => string(7) "/evropa" "latitude" => string(8) "48.69096" "longitude" => string(7) "9.14062" "countries" => string(2) "39" ) 3 => array(6) ( "cont_code" => string(2) "NA" "name" => string(7) "Amerika" "asciiname" => string(16) "/severni-amerika" "latitude" => string(8) "46.07323" "longitude" => string(10) "-100.54688" "countries" => string(2) "21" ) 4 => array(6) ( "cont_code" => string(2) "OC" "name" => string(8) "Oceánie" "asciiname" => string(8) "/oceanie" "latitude" => string(9) "-18.31281" "longitude" => string(9) "138.51562" "countries" => string(1) "3" ) 5 => array(6) ( "cont_code" => string(2) "ME" "name" => string(16) "Blízký Východ" "asciiname" => string(14) "/blizky-vychod" "latitude" => string(8) "33.13906" "longitude" => string(8) "35.85869" "countries" => string(1) "5" ) ) }{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » 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 TRUE protected _referrer => string(49) "http://atlaszemi.info/spojene-staty-americke-usa/" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(13) "<country_url>" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(7) "Country" "action" => string(6) "detail" "file" => NULL ) protected _route_regex => string(35) "#^(?P<country_url>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Country" protected _action => string(6) "detail" protected _uri => string(26) "spojene-staty-americke-usa" protected _external => bool FALSE protected _params => array(2) ( "country_url" => string(26) "spojene-staty-americke-usa" "file" => NULL ) 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 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 1000 ] » 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 TRUE protected _referrer => string(49) "http://atlaszemi.info/spojene-staty-americke-usa/" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(13) "<country_url>" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(7) "Country" "action" => string(6) "detail" "file" => NULL ) protected _route_regex => string(35) "#^(?P<country_url>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Country" protected _action => string(6) "detail" protected _uri => string(26) "spojene-staty-americke-usa" protected _external => bool FALSE protected _params => array(2) ( "country_url" => string(26) "spojene-staty-americke-usa" "file" => NULL ) 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) }
}995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 123 ] » Kohana_Request->execute()
118 /** 119 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 120 * If no source is specified, the URI will be automatically detected. 121 */ 122 echo Request::factory(TRUE, array(), FALSE) 123 ->execute() 124 ->send_headers(TRUE) 125 ->body(); 126 }