MODPATH/image/classes/Kohana/Image.php [ 107 ]
102 // Ignore all errors while reading the image
103 }
104
105 if (empty($file) OR empty($info))
106 {
107 throw new Kohana_Exception('Not an image or invalid image: :file',
108 array(':file' => Debug::path($file)));
109 }
110
111 // Store the image information
112 $this->file = $file;
-
MODPATH/image/classes/Kohana/Image/Imagick.php [ 48 ] » Kohana_Image->__construct(arguments)
0
string(104) "/var/www/offroadsafari.cz/dev/document_root/files/421-10985348-749617525136160-6816359607741014908-n.jpg"
43 { 44 // Run the install check 45 Image_Imagick::check(); 46 } 47 48 parent::__construct($file); 49 50 $this->im = new Imagick; 51 $this->im->readImage($file); 52 53 if ( ! $this->im->getImageAlphaChannel())
-
MODPATH/image/classes/Kohana/Image.php [ 54 ] » Kohana_Image_Imagick->__construct(arguments)
0
string(104) "/var/www/offroadsafari.cz/dev/document_root/files/421-10985348-749617525136160-6816359607741014908-n.jpg"
49 } 50 51 // Set the class name 52 $class = 'Image_'.$driver; 53 54 return new $class($file); 55 } 56 57 /** 58 * @var string image file path 59 */
-
/var/www/CMS-PRODUCTION/libs/3.1.2/breezy/core/classes/Breezy/Controller/Files.php [ 22 ] » Kohana_Image::factory(arguments)
0
string(104) "/var/www/offroadsafari.cz/dev/document_root/files/421-10985348-749617525136160-6816359607741014908-n.jpg"
17 18 if(!is_writable($dir)){ 19 mkdir(pathinfo($this->_thumb, PATHINFO_DIRNAME), 0777, true); 20 } 21 22 $this->_image = Image::factory($this->_cms_file->get_file_path(true)); 23 } 24 25 $this->_options = CMS::$config->files; 26 } 27
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Breezy_Controller_Files->before()
64 * @return Response 65 */ 66 public function execute() 67 { 68 // Execute the "before action" method 69 $this->before(); 70 71 // Determine the action to use 72 $action = 'action_'.$this->request->action(); 73 74 // If the action doesn't exist, it's a 404
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Files(9)
{ public template => bool FALSE protected _thumb => string(119) "/var/www/offroadsafari.cz/dev/document_root/files/width/1024/768/421-10985348-749617525136160-6816359607741014908-n.jpg" protected _cms_file => object Model_Cms_File(41)
{ protected _prefix_table => bool FALSE protected _hide_quick_create => array(0) protected _formo_sorting => array(0) protected _relationships => NULL protected _update_cms_uri => bool TRUE protected _cms_save => bool TRUE protected _joined => array(0) 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(7) ( "id" => string(3) "421" "cms_created" => string(19) "2015-08-16 19:26:24" "cms_updated" => string(19) "2015-08-16 19:26:25" "cms_uri" => string(53) "421-10985348-749617525136160-6816359607741014908-njpg" "name" => string(54) "421-10985348-749617525136160-6816359607741014908-n.jpg" "size" => string(5) "89772" "type" => string(10) "image/jpeg" ) protected _changed => array(0) protected _original_values => array(7) ( "id" => string(3) "421" "cms_created" => string(19) "2015-08-16 19:26:24" "cms_updated" => string(19) "2015-08-16 19:26:25" "cms_uri" => string(53) "421-10985348-749617525136160-6816359607741014908-njpg" "name" => string(54) "421-10985348-749617525136160-6816359607741014908-n.jpg" "size" => string(5) "89772" "type" => string(10) "image/jpeg" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => array(1) ( "id" => string(4) "DESC" ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(8) "cms_file" protected _object_plural => string(9) "cms_files" protected _table_name => string(9) "cms_files" protected _table_columns => array(7) ( "id" => array(15) ( "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) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" "label" => string(2) "id" "orderable" => bool TRUE ) "cms_created" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "cms_created" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" "label" => string(11) "cms_created" "orderable" => bool TRUE ) "cms_updated" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "cms_updated" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" "label" => string(11) "cms_updated" "orderable" => bool TRUE ) "cms_uri" => array(14) ( "type" => string(6) "string" "column_name" => string(7) "cms_uri" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(3) "155" "collation_name" => string(13) "utf8_czech_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" "label" => string(7) "cms_uri" "orderable" => bool TRUE ) "name" => array(14) ( "type" => string(6) "string" "column_name" => string(4) "name" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(3) "150" "collation_name" => string(13) "utf8_czech_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" "label" => string(4) "name" "orderable" => bool TRUE ) "size" => array(14) ( "type" => string(6) "string" "column_name" => string(4) "size" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "25" "collation_name" => string(13) "utf8_czech_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" "label" => string(4) "size" "orderable" => bool TRUE ) "type" => array(14) ( "type" => string(6) "string" "column_name" => string(4) "type" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(3) "255" "collation_name" => string(13) "utf8_czech_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" "label" => string(4) "type" "orderable" => bool TRUE ) ) protected _updated_column => array(2) ( "column" => string(11) "cms_updated" "format" => string(11) "Y-m-d H:i:s" ) protected _created_column => array(2) ( "column" => string(11) "cms_created" "format" => string(11) "Y-m-d H:i:s" ) protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(3) "421" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
protected _image => NULL protected _options => array(0) protected _layout => string(23) "Template_Layout_Default" protected _default_template => string(12) "Template_APP" public request => object Request(20){ protected _connection_id => string(40) "c511107868c7c990e46c5048ced722ccc37e3ca2" protected _identifier => string(1) "`" public last_query => string(379) "SELECT `cms_file`.`id` AS `id`, `cms_file`.`cms_created` AS `cms_created`, `cms_file`.`cms_updated` AS `cms_updated`, `cms_file` …" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(12) "offroadsaf_d" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
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(8) "cms_file" }{ protected _persistent => array(0) 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 _filters => array(0) protected _uri => string(48) "files(/(<action>(/<width>(/<height>(/<file>)))))" protected _regex => array(1) ( "file" => string(16) "[0-9a-zA-Z-_.]++" ) protected _defaults => array(4) ( "controller" => string(5) "Files" "action" => string(7) "default" "width" => string(3) "500" "height" => string(3) "500" ) protected _route_regex => string(137) "#^files(?:/(?:(?P<action>[^/.,;?\n]++)(?:/(?P<width>[^/.,;?\n]++)(?:/(?P<height>[^/.,;?\n]++)(?:/(?P<file>[0-9a-zA-Z-_.]++))?)?) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Files" protected _action => string(5) "width" protected _uri => string(75) "files/width/1024/768/421-10985348-749617525136160-6816359607741014908-n.jpg" protected _external => bool FALSE protected _params => array(3) ( "width" => string(4) "1024" "height" => string(3) "768" "file" => string(54) "421-10985348-749617525136160-6816359607741014908-n.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" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 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(20)
{ protected _persistent => array(0) 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 _filters => array(0) protected _uri => string(48) "files(/(<action>(/<width>(/<height>(/<file>)))))" protected _regex => array(1) ( "file" => string(16) "[0-9a-zA-Z-_.]++" ) protected _defaults => array(4) ( "controller" => string(5) "Files" "action" => string(7) "default" "width" => string(3) "500" "height" => string(3) "500" ) protected _route_regex => string(137) "#^files(?:/(?:(?P<action>[^/.,;?\n]++)(?:/(?P<width>[^/.,;?\n]++)(?:/(?P<height>[^/.,;?\n]++)(?:/(?P<file>[0-9a-zA-Z-_.]++))?)?) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Files" protected _action => string(5) "width" protected _uri => string(75) "files/width/1024/768/421-10985348-749617525136160-6816359607741014908-n.jpg" protected _external => bool FALSE protected _params => array(3) ( "width" => string(4) "1024" "height" => string(3) "768" "file" => string(54) "421-10985348-749617525136160-6816359607741014908-n.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 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _persistent => array(0) 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 _filters => array(0) protected _uri => string(48) "files(/(<action>(/<width>(/<height>(/<file>)))))" protected _regex => array(1) ( "file" => string(16) "[0-9a-zA-Z-_.]++" ) protected _defaults => array(4) ( "controller" => string(5) "Files" "action" => string(7) "default" "width" => string(3) "500" "height" => string(3) "500" ) protected _route_regex => string(137) "#^files(?:/(?:(?P<action>[^/.,;?\n]++)(?:/(?P<width>[^/.,;?\n]++)(?:/(?P<height>[^/.,;?\n]++)(?:/(?P<file>[0-9a-zA-Z-_.]++))?)?) …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Files" protected _action => string(5) "width" protected _uri => string(75) "files/width/1024/768/421-10985348-749617525136160-6816359607741014908-n.jpg" protected _external => bool FALSE protected _params => array(3) ( "width" => string(4) "1024" "height" => string(3) "768" "file" => string(54) "421-10985348-749617525136160-6816359607741014908-n.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) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
MODPATH/breezy/classes/Breezy/Request.php [ 73 ] » Kohana_Request->execute()
68 } 69 } 70 71 $this->set_persistent(); 72 73 return parent::execute(); 74 } 75 76 public static function current_uri($param = array()){ 77 78 return Request::initial()->route()->uri($param + (Request::initial()->route_param()));
-
DOCROOT/index.php [ 155 ] » Breezy_Request->execute()
150 else{ 151 $uri = CMS::detect_uri(); 152 153 CMS::init(stripos($uri.'/', CMS::$backend_uri) ? 'backend' : 'frontend'); 154 155 echo Request::factory($uri, array(), FALSE)->execute()->send_headers(TRUE)->body(); 156 }