APPPATH/classes/CSRF.php [ 90 ]
85 }
86
87 return $token;
88 }
89
90 $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);
91 $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
92
93 if ($encrypt) {
94 $token .= '||' . time();
95 return bin2hex(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, self::_secret_key(), $token, MCRYPT_MODE_ECB, $iv));
-
APPPATH/classes/CSRF.php [ 90 ] » Kohana_Core::error_handler(arguments)
0
integer 8192
1
string(43) "Function mcrypt_get_iv_size() is deprecated"
2
string(74) "/www/ewypozyczalnie_www/www/ewypozyczalnie.pl/application/classes/CSRF.php"
3
integer 90
4
array(2) ( "token" => string(89) "q1w2e3r4t5y6u7i8CCBot/2.0 (https://commoncrawl.org/faq/)17658679536011fcd3c62d89.81353920" "encrypt" => bool TRUE )
85 } 86 87 return $token; 88 } 89 90 $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); 91 $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); 92 93 if ($encrypt) { 94 $token .= '||' . time(); 95 return bin2hex(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, self::_secret_key(), $token, MCRYPT_MODE_ECB, $iv));
-
APPPATH/classes/CSRF.php [ 40 ] » CSRF::encrypt(arguments)
0
string(89) "q1w2e3r4t5y6u7i8CCBot/2.0 (https://commoncrawl.org/faq/)17658679536011fcd3c62d89.81353920"
35 36 if (!$token || (!self::$already_set_token && $new)) { 37 38 $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'No User Agent'; 39 40 $token = self::encrypt(self::_secret_key() . $user_agent . uniqid(rand(), TRUE)); 41 42 Session::instance()->set('csrf-token', $token); 43 } 44 45 self::$already_set_token = TRUE;
-
APPPATH/classes/Form.php [ 38 ] » CSRF::token(arguments)
0
bool TRUE
33 34 $output = '<form' . HTML::attributes($attributes) . '>'; 35 36 // handle CSRF 37 if ($attributes['method'] == 'post') { 38 $output .= '<input type="hidden" name="csrf_token" id="csrf_token" value="' . CSRF::token(TRUE) . '" />'; 39 $output .= CSRF::javascript(); 40 } 41 42 return $output; 43 }
-
APPPATH/views/frontend/contact.php [ 51 ] » Form::open(arguments)
0
string(8) "/kontakt"
1
array(3) ( "method" => string(4) "post" "action" => string(8) "/kontakt" "accept-charset" => string(5) "utf-8" )
46 47 <div class="my-contact-form"> 48 <h4> 49 <?php echo __('Wyślij wiadomość') ?> 50 </h4> 51 <?php echo Form::open('kontakt', array('method' => 'post')) ?> 52 <div class="row"> 53 <div class="col-6"> 54 <input type="text" name="name" value="<?php echo $post['name'] ?>" placeholder="<?php echo __('Imię i nazwisko') ?>"> 55 <?php echo isset($errors['name']) ? '<p class="error">' . $errors['name'] . '</p>' : '' ?> 56 </div>
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(84) "/www/ewypozyczalnie_www/www/ewypozyczalnie.pl/application/views/frontend/contact.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)
0
string(84) "/www/ewypozyczalnie_www/www/ewypozyczalnie.pl/application/views/frontend/contact.php"
1
array(3) ( "item" => array(10) ( "contact_id" => string(1) "1" "contact_address" => string(0) "" "contact_phone" => string(0) "" "contact_email" => string(25) "kontakt@ewypozyczalnie.pl" "contact_text" => string(74) "<p>Zapraszamy do kontaktu z nami.<br />Odpowiemy na wszystkie pytania.</p>" "contact_map_lat" => string(17) "51.24876731545263" "contact_map_lng" => string(17) "22.56344954240683" "contact_map_zoom" => string(2) "12" "contact_create_dt" => NULL "contact_modified_dt" => string(19) "2018-10-25 21:54:17" ) "post" => array(3) ( "name" => string(0) "" "email" => string(0) "" "text" => string(0) "" ) "errors" => array(0) )
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.
-
APPPATH/views/frontend/template.php [ 125 ] » Kohana_View->__toString()
120 </div> 121 </div> 122 </nav> 123 </div> 124 125 <?php echo $content ?> 126 127 <div class="my-footer"> 128 <div class="container"> 129 <div class="row"> 130 <div class="col-12 col-sm-6 col-lg-3">
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(85) "/www/ewypozyczalnie_www/www/ewypozyczalnie.pl/application/views/frontend/template.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)
0
string(85) "/www/ewypozyczalnie_www/www/ewypozyczalnie.pl/application/views/frontend/template.php"
1
array(1) ( "content" => object View(2)
{ protected _file => string(84) "/www/ewypozyczalnie_www/www/ewypozyczalnie.pl/application/views/frontend/contact.php" protected _data => array(3) ( "item" => array(10) ( "contact_id" => string(1) "1" "contact_address" => string(0) "" "contact_phone" => string(0) "" "contact_email" => string(25) "kontakt@ewypozyczalnie.pl" "contact_text" => string(74) "<p>Zapraszamy do kontaktu z nami.<br />Odpowiemy na wszystkie pytania.</p>" "contact_map_lat" => string(17) "51.24876731545263" "contact_map_lng" => string(17) "22.56344954240683" "contact_map_zoom" => string(2) "12" "contact_create_dt" => NULL "contact_modified_dt" => string(19) "2018-10-25 21:54:17" ) "post" => array(3) ( "name" => string(0) "" "email" => string(0) "" "text" => string(0) "" ) "errors" => array(0) ) }
)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/Controller/Template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49
-
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Frontend_Contact(4)
{ public template => object View(2)
{ protected _file => string(85) "/www/ewypozyczalnie_www/www/ewypozyczalnie.pl/application/views/frontend/template.php" protected _data => array(1) ( "content" => object View(2)
public auto_render => bool TRUE public request => object Request(19){ protected _file => string(84) "/www/ewypozyczalnie_www/www/ewypozyczalnie.pl/application/views/frontend/contact.php" protected _data => array(3) ( "item" => array(10) ( "contact_id" => string(1) "1" "contact_address" => string(0) "" "contact_phone" => string(0) "" "contact_email" => string(25) "kontakt@ewypozyczalnie.pl" "contact_text" => string(74) "<p>Zapraszamy do kontaktu z nami.<br />Odpowiemy na wszystkie pytania.</p>" "contact_map_lat" => string(17) "51.24876731545263" "contact_map_lng" => string(17) "22.56344954240683" "contact_map_zoom" => string(2) "12" "contact_create_dt" => NULL "contact_modified_dt" => string(19) "2018-10-25 21:54:17" ) "post" => array(3) ( "name" => string(0) "" "email" => string(0) "" "text" => string(0) "" ) "errors" => array(0) ) }
) }{ 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(0) protected _uri => string(7) "kontakt" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(8) "frontend" "controller" => string(7) "contact" "action" => string(5) "index" ) protected _route_regex => string(13) "#^kontakt$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(8) "Frontend" protected _controller => string(7) "Contact" protected _action => string(5) "index" protected _uri => string(7) "kontakt" protected _external => bool FALSE protected _params => array(0) 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)
}{ }
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 => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(7) "kontakt" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(8) "frontend" "controller" => string(7) "contact" "action" => string(5) "index" ) protected _route_regex => string(13) "#^kontakt$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(8) "Frontend" protected _controller => string(7) "Contact" protected _action => string(5) "index" protected _uri => string(7) "kontakt" protected _external => bool FALSE protected _params => array(0) 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 => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(7) "kontakt" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(8) "frontend" "controller" => string(7) "contact" "action" => string(5) "index" ) protected _route_regex => string(13) "#^kontakt$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(8) "Frontend" protected _controller => string(7) "Contact" protected _action => string(5) "index" protected _uri => string(7) "kontakt" protected _external => bool FALSE protected _params => array(0) 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/public/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, [], FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }