APPPATH/classes/controller/reestr.php [ 54 ]
49
50
51 $object = Model::factory('Emap')->object_info($id);
52
53
54 $portalResp = json_decode(file_get_contents('https://tourismportal.net/index.php/api?title='.urlencode($object['title'])));
55
56 if ($portalResp->slug) {
57 header("HTTP/1.1 301 Moved Permanently");
58 header("Location: https://tourismportal.net/object/".$portalResp->slug);
59 exit();
-
{PHP internal call} » Kohana_Core::error_handler(arguments)
0
integer 2
1
string(195) "file_get_contents(https://tourismportal.net/index.php/api?title=%D0%9E%D0%BF%D0%BE%D0%BB%D0%B7%D0%B5%D0%BD%D1%8C): failed to ope …"
2
string(79) "/home/y/yamashc9/geo13.ru/public_html/application/classes/controller/reestr.php"
3
integer 54
4
array(3) ( "id" => string(4) "1525" "object" => array(13) ( "id" => string(4) "1525" "category_id" => string(1) "9" "title" => string(16) "Оползень" "type" => string(5) "Point" "properties_json" => string(250) "{"Абсолютная отметка":"125 м.","Длина":"280 м.","Ширина":"30 м.","Глубина":"4 м.","Экспозиция":"с","Район":"Атяшевский","Населен …" "coordinates_json" => string(29) "[54.7420143314,45.8304135271]" "description" => string(0) "" "icon_id" => string(1) "4" "style_id" => string(1) "2" "description_set" => string(1) "0" "wiki_id" => string(1) "0" "last_update" => string(19) "0000-00-00 00:00:00" "category" => string(14) "Оползни" ) "http_response_header" => array(7) ( 0 => string(34) "HTTP/1.1 500 Internal Server Error" 1 => string(30) "Server: nginx-reuseport/1.21.1" 2 => string(35) "Date: Fri, 29 Mar 2024 13:35:12 GMT" 3 => string(38) "Content-Type: text/html; charset=utf-8" 4 => string(17) "Connection: close" 5 => string(24) "X-Powered-By: PHP/7.4.33" 6 => string(66) "X-Frame-Options: allow-from http://webvisor.com, https://yandex.ru" ) )
-
APPPATH/classes/controller/reestr.php [ 54 ] » file_get_contents(arguments)
filename
string(94) "https://tourismportal.net/index.php/api?title=%D0%9E%D0%BF%D0%BE%D0%BB%D0%B7%D0%B5%D0%BD%D1%8C"
49 50 51 $object = Model::factory('Emap')->object_info($id); 52 53 54 $portalResp = json_decode(file_get_contents('https://tourismportal.net/index.php/api?title='.urlencode($object['title']))); 55 56 if ($portalResp->slug) { 57 header("HTTP/1.1 301 Moved Permanently"); 58 header("Location: https://tourismportal.net/object/".$portalResp->slug); 59 exit();
-
{PHP internal call} » Controller_Reestr->action_object()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Reestr(4)
{ public template => object View(2)
{ protected _file => string(68) "/home/y/yamashc9/geo13.ru/public_html/application/views/template.php" protected _data => array(1) ( "content" => string(0) "" ) }
public auto_render => bool TRUE public request => object Request(20){ 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 _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "Welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "reestr" protected _action => string(6) "object" protected _uri => string(18) "reestr/object/1525" protected _external => bool FALSE protected _params => array(1) ( "id" => string(4) "1525" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ 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" }111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 112 array(':uri' => $request->uri())); 113 } 114 115 $method = $class->getMethod('action_'.$action); 116 $method->invoke($controller); 117 118 // Execute the "after action" method 119 $class->getMethod('after')->invoke($controller); 120 } 121 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ 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 _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "Welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "reestr" protected _action => string(6) "object" protected _uri => string(18) "reestr/object/1525" protected _external => bool FALSE protected _params => array(1) ( "id" => string(4) "1525" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1154 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ 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 _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "Welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "reestr" protected _action => string(6) "object" protected _uri => string(18) "reestr/object/1525" protected _external => bool FALSE protected _params => array(1) ( "id" => string(4) "1525" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1149 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1150 ':uri' => $this->_uri, 1151 )); 1152 } 1153 1154 return $this->_client->execute($this); 1155 } 1156 1157 /** 1158 * Returns whether this request is the initial request Kohana received. 1159 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 109 ] » Kohana_Request->execute()
104 /** 105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */ 108 echo Request::factory() 109 ->execute() 110 ->send_headers(TRUE) 111 ->body();