MODPATH/image/classes/Kohana/Image.php [ 106 ]
101 } catch (Exception $e) {
102 // Ignore all errors while reading the image
103 }
104
105 if (empty($file) OR empty($info)) {
106 throw new Kohana_Exception('Not an image or invalid image: :file',
107 array(':file' => Debug::path($file)));
108 }
109
110 // Store the image information
111 $this->file = $file;
-
MODPATH/image/classes/Kohana/Image/GD.php [ 86 ] » Kohana_Image->__construct( arguments )
0
string(120) "/home/dobrydom.prod.app/dobry-dom.pl/shared/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg"
81 if (!Image_GD::$_checked) { 82 // Run the install check 83 Image_GD::check(); 84 } 85 86 parent::__construct($file); 87 88 // Set the image creation function name 89 switch ($this->type) { 90 case IMAGETYPE_JPEG: 91 $create = 'imagecreatefromjpeg';
-
MODPATH/image/classes/Kohana/Image.php [ 57 ] » Kohana_Image_GD->__construct( arguments )
0
string(137) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszma …"
52 } 53 54 // Set the class name 55 $class = 'Image_' . $driver; 56 57 return new $class($file); 58 } 59 60 /** 61 * @var string image file path 62 */
-
APPPATH/classes/Controller/Catalog/Image.php [ 52 ] » Kohana_Image::factory( arguments )
0
string(137) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszma …"
47 $dir . 48 strtolower($this->request->action()) . DIRECTORY_SEPARATOR . 49 $this->request->param('size') . DIRECTORY_SEPARATOR . 50 $name; 51 52 $this->image = Image::factory($this->target); 53 } 54 55 } 56 57 /**
-
SYSPATH/classes/Kohana/Controller.php [ 71 ] » Controller_Catalog_Image->before( )
66 * @throws HTTP_Exception_404 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_Catalog_Image(10)
{ protected target => string(137) "/home/dobrydom.prod.app/dobry-dom.pl/releases/20240327203412/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszma …" protected cache => string(155) "cache/f0/3a/82/5d/36/1e/02/56/70/6c/1f/92/54/3f/09/e7/419c20498dc3c6d63b51aeeed4f1c371-82/normal/max/dd_files-image-projekty-atr …" protected width => NULL protected height => NULL protected size => string(3) "max" protected imgUri => string(87) "normal/max/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" protected image => NULL protected config => array(4) ( "cache_expire" => integer 604800 "cache_dir" => string(6) "cache/" "quality" => integer 85 "size" => array(6) ( "max" => array(2) ( 0 => NULL 1 => NULL ) "l" => array(2) ( 0 => integer 1185 1 => integer 800 ) "min" => array(2) ( 0 => integer 508 1 => integer 285 ) "m" => array(2) ( 0 => integer 332 1 => integer 246 ) "s" => array(2) ( 0 => integer 198 1 => integer 180 ) "xs" => array(2) ( 0 => integer 128 1 => integer 116 ) ) ) 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 => string(113) "http://dobry-dom.pl/image/normal/max/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(33) "image/<action>/<size>/<imagepath>" protected _regex => array(2) ( "imagepath" => string(2) ".*" "size" => string(16) "max|l|min|m|s|xs" ) protected _defaults => array(3) ( "directory" => string(7) "Catalog" "controller" => string(5) "Image" "action" => string(6) "normal" ) protected _route_regex => string(81) "#^image/(?P<action>[^/.,;?\n]++)/(?P<size>max|l|min|m|s|xs)/(?P<imagepath>.*)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Catalog" protected _controller => string(5) "Image" protected _action => string(6) "normal" protected _uri => string(93) "image/normal/max/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" protected _external => bool FALSE protected _params => array(2) ( "size" => string(3) "max" "imagepath" => string(76) "xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" ) 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" }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 [ 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(113) "http://dobry-dom.pl/image/normal/max/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(33) "image/<action>/<size>/<imagepath>" protected _regex => array(2) ( "imagepath" => string(2) ".*" "size" => string(16) "max|l|min|m|s|xs" ) protected _defaults => array(3) ( "directory" => string(7) "Catalog" "controller" => string(5) "Image" "action" => string(6) "normal" ) protected _route_regex => string(81) "#^image/(?P<action>[^/.,;?\n]++)/(?P<size>max|l|min|m|s|xs)/(?P<imagepath>.*)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Catalog" protected _controller => string(5) "Image" protected _action => string(6) "normal" protected _uri => string(93) "image/normal/max/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" protected _external => bool FALSE protected _params => array(2) ( "size" => string(3) "max" "imagepath" => string(76) "xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" ) 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(array('_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 if ($response->headers($header)) { 119 $cb_result = call_user_func($callback, $request, $response, $this);
-
SYSPATH/classes/Kohana/Request.php [ 927 ] » 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(113) "http://dobry-dom.pl/image/normal/max/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(33) "image/<action>/<size>/<imagepath>" protected _regex => array(2) ( "imagepath" => string(2) ".*" "size" => string(16) "max|l|min|m|s|xs" ) protected _defaults => array(3) ( "directory" => string(7) "Catalog" "controller" => string(5) "Image" "action" => string(6) "normal" ) protected _route_regex => string(81) "#^image/(?P<action>[^/.,;?\n]++)/(?P<size>max|l|min|m|s|xs)/(?P<imagepath>.*)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Catalog" protected _controller => string(5) "Image" protected _action => string(6) "normal" protected _uri => string(93) "image/normal/max/xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" protected _external => bool FALSE protected _params => array(2) ( "size" => string(3) "max" "imagepath" => string(76) "xml-orig-img/13/30789/dd_files-image-projekty-atreuszmaly-atreuszmaly_p2.jpg" ) 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) }
}922 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 923 ':uri' => $this->_uri, 924 )); 925 } 926 927 return $this->_client->execute($this); 928 } 929 930 /** 931 * Returns whether this request is the initial request Kohana received. 932 * Can be used to test for sub requests.
-
DOCROOT/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, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 // Debug::pre_dump_die( $response ); 122 }