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)
0string(4) "http"1bool TRUE
2NULL
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() -
MODPATH/mosite-base/classes/URL.php [ 30 ] » Kohana_URL::site(arguments)
0string(0) ""1string(4) "http"2bool TRUE
3NULL
25 }; 26 27 $uri = preg_replace_callback('/<(.*?)>/', $callback, $uri); 28 } 29 30 return parent::site($uri, $protocol, $index, $subdomain); 31 } 32 } -
APPPATH/views/2019/qrcode.php [ 41 ] » URL::site(arguments)
0string(0) ""1string(4) "http"36 </a> 37 </div> 38 39 <p style="color: #000;"> 40 <a href="javascript:void(0);" onclick="window.history.back()"><strong>Voltar</strong></a> | 41 <a href="<?= URL::site('', 'http') ?>"><strong>Ir ao site</strong></a> | 42 <a href="javascript:void(0);" onclick="window.location.reload()">Atualizar</a> 43 </p> 44 </body> 45 46 </html> -
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0string(58) "/home/consorciofenix/www/application/views/2019/qrcode.php"57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)
0string(58) "/home/consorciofenix/www/application/views/2019/qrcode.php"1array(1) ( "qrcode" => object Model_Qrcode(36)
{ protected _table_name => string(7) "qrcodes" protected _has_one => array(0) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(4) ( "id" => string(1) "4" "nome" => string(5) "Si.GO" "link_play_store" => string(84) "https://play.google.com/store/apps/details?id=br.com.henkoti.empresa1.smpay&hl=pt_BR" "link_app_store" => string(48) "https://apps.apple.com/br/app/si-go/id1489198504" ) protected _changed => array(0) protected _original_values => array(4) ( "id" => string(1) "4" "nome" => string(5) "Si.GO" "link_play_store" => string(84) "https://play.google.com/store/apps/details?id=br.com.henkoti.empresa1.smpay&hl=pt_BR" "link_app_store" => string(48) "https://apps.apple.com/br/app/si-go/id1489198504" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(6) "qrcode" protected _object_plural => string(7) "qrcodes" protected _table_columns => array(4) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "nome" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "nome" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb4_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "link_play_store" => array(12) ( "type" => string(6) "string" "column_name" => string(15) "link_play_store" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb4_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "link_app_store" => array(12) ( "type" => string(6) "string" "column_name" => string(14) "link_app_store" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb4_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "4" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQLi(6)){ protected _connection_id => string(40) "2fd69817df9ba037c50d90b9ccdbab61f13e0ba6" protected _identifier => string(1) "`" public last_query => string(212) "SELECT `qrcode`.`id` AS `id`, `qrcode`.`nome` AS `nome`, `qrcode`.`link_play_store` AS `link_play_store`, `qrcode`.`link_app_sto …" protected _instance => string(7) "default" protected _connection => object mysqli(18)protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(6) "qrcode" protected _behaviors => array(0) protected _private_columns => bool FALSE }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(4) ( "hostname" => string(27) "mysql.consorciofenix.com.br" "database" => string(14) "consorciofenix" "persistent" => bool TRUE "ssl" => NULL ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool TRUE ) }354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 } -
SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()
231 */ 232 public function __toString() 233 { 234 try 235 { 236 return $this->render(); 237 } 238 catch (Exception $e) 239 { 240 /** 241 * Display the exception message. -
SYSPATH/classes/Kohana/Response.php [ 169 ] » Kohana_View->__toString()
164 public function body($content = NULL) 165 { 166 if ($content === NULL) 167 return $this->_body; 168 169 $this->_body = (string) $content; 170 return $this; 171 } 172 173 /** 174 * Gets or sets the HTTP protocol. The standard protocol to use -
APPPATH/classes/controller/qrcode.php [ 54 ] » Kohana_Response->body(arguments)
0object View(2)
{ protected _file => string(58) "/home/consorciofenix/www/application/views/2019/qrcode.php" protected _data => array(1) ( "qrcode" => object Model_Qrcode(36){ protected _table_name => string(7) "qrcodes" protected _has_one => array(0) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(4) ( "id" => string(1) "4" "nome" => string(5) "Si.GO" "link_play_store" => string(84) "https://play.google.com/store/apps/details?id=br.com.henkoti.empresa1.smpay&hl=pt_BR" "link_app_store" => string(48) "https://apps.apple.com/br/app/si-go/id1489198504" ) protected _changed => array(0) protected _original_values => array(4) ( "id" => string(1) "4" "nome" => string(5) "Si.GO" "link_play_store" => string(84) "https://play.google.com/store/apps/details?id=br.com.henkoti.empresa1.smpay&hl=pt_BR" "link_app_store" => string(48) "https://apps.apple.com/br/app/si-go/id1489198504" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(6) "qrcode" protected _object_plural => string(7) "qrcodes" protected _table_columns => array(4) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "nome" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "nome" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb4_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "link_play_store" => array(12) ( "type" => string(6) "string" "column_name" => string(15) "link_play_store" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb4_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "link_app_store" => array(12) ( "type" => string(6) "string" "column_name" => string(14) "link_app_store" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb4_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "4" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQLi(6)) }{ protected _connection_id => string(40) "2fd69817df9ba037c50d90b9ccdbab61f13e0ba6" protected _identifier => string(1) "`" public last_query => string(212) "SELECT `qrcode`.`id` AS `id`, `qrcode`.`nome` AS `nome`, `qrcode`.`link_play_store` AS `link_play_store`, `qrcode`.`link_app_sto …" protected _instance => string(7) "default" protected _connection => object mysqli(18)protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(6) "qrcode" protected _behaviors => array(0) protected _private_columns => bool FALSE }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(4) ( "hostname" => string(27) "mysql.consorciofenix.com.br" "database" => string(14) "consorciofenix" "persistent" => bool TRUE "ssl" => NULL ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool TRUE ) }49 if ($is_ios) { 50 $this->redirect($qrcode->link_app_store); 51 } 52 53 $this->response->body( 54 new View('2019/qrcode', ['qrcode' => $qrcode]) 55 ); 56 } 57 } 58 59 class QRCode { -
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Qrcode->action_redirect()
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 [ 99 ] » ReflectionMethod->invoke(arguments)
0object Controller_Qrcode(2)
{ public request => 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 => NULL protected _route => object Route(5)public response => object Response(5){ protected _filters => array(1) ( 0 => array(2) ( 0 => string(5) "Route" 1 => string(11) "_filter_all" ) ) protected _uri => string(39) "(<controller>(/<action>(/<id>)))(.html)" protected _regex => array(1) ( "lang" => string(7) "(en|es)" ) protected _defaults => array(3) ( "controller" => string(5) "index" "action" => string(5) "index" "lang" => string(0) "" ) protected _route_regex => string(106) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?(?:\.html)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Qrcode" protected _action => string(8) "redirect" protected _uri => string(17) "qrcode/redirect/4" protected _external => bool FALSE protected _params => array(2) ( "id" => string(1) "4" "lang" => string(0) "" ) protected _get => array(1) ( 2019 => integer 1 ) 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)}{ }protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }94 95 // Create a new instance of the controller 96 $controller = $class->newInstance($request, $response); 97 98 // Run the controller's execute() method 99 $response = $class->getMethod('execute')->invoke($controller); 100 101 if ( ! $response instanceof Response) 102 { 103 // Controller failed to return a Response. 104 throw new Kohana_Exception('Controller failed to return a Response'); -
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5){ protected _filters => array(1) ( 0 => array(2) ( 0 => string(5) "Route" 1 => string(11) "_filter_all" ) ) protected _uri => string(39) "(<controller>(/<action>(/<id>)))(.html)" protected _regex => array(1) ( "lang" => string(7) "(en|es)" ) protected _defaults => array(3) ( "controller" => string(5) "index" "action" => string(5) "index" "lang" => string(0) "" ) protected _route_regex => string(106) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?(?:\.html)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Qrcode" protected _action => string(8) "redirect" protected _uri => string(17) "qrcode/redirect/4" protected _external => bool FALSE protected _params => array(2) ( "id" => string(1) "4" "lang" => string(0) "" ) protected _get => array(1) ( 2019 => integer 1 ) 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) }}1object 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 [ 1005 ] » Kohana_Request_Client->execute(arguments)
0object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5){ protected _filters => array(1) ( 0 => array(2) ( 0 => string(5) "Route" 1 => string(11) "_filter_all" ) ) protected _uri => string(39) "(<controller>(/<action>(/<id>)))(.html)" protected _regex => array(1) ( "lang" => string(7) "(en|es)" ) protected _defaults => array(3) ( "controller" => string(5) "index" "action" => string(5) "index" "lang" => string(0) "" ) protected _route_regex => string(106) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?(?:\.html)?$#uD" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Qrcode" protected _action => string(8) "redirect" protected _uri => string(17) "qrcode/redirect/4" protected _external => bool FALSE protected _params => array(2) ( "id" => string(1) "4" "lang" => string(0) "" ) protected _get => array(1) ( 2019 => integer 1 ) 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) }}1000 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 1001 ':uri' => $this->_uri, 1002 ]); 1003 } 1004 1005 return $this->_client->execute($this); 1006 } 1007 1008 /** 1009 * Returns whether this request is the initial request Kohana received. 1010 * Can be used to test for sub requests. -
DOCROOT/index.php [ 131 ] » Kohana_Request->execute()
126 * If no source is specified, the URI will be automatically detected. 127 */ 128 $request = Request::factory(TRUE, [], FALSE); 129 130 $uri = $request->uri(); 131 $response = $request->execute(); 132 133 echo $response->send_headers(TRUE)->body(); 134 135 $time = ((microtime(TRUE) - KO7_START_TIME) / 1000) . 's'; 136 $memory = (memory_get_peak_usage(TRUE) / (1024 * 1024)) . 'MB';