APPPATH/classes/imageproc.php [ 138 ]
133 }
134 if ($thumbnail_width > 550 || $thumbnail_height > 420) {
135 $process = self::addWatermarkText($process, $text, $addWatermark);
136 }
137
138 imagejpeg($process, $dstImg, 95);
139 imagedestroy($process);
140 imagedestroy($myImage);
141
142 }
143
-
{PHP internal call} » Kohana_Core::error_handler(arguments)
code
integer 2
error
string(78) "imagejpeg(images/no_avatar_240x.jpg): failed to open stream: Permission denied"
file
string(45) "/opt/serwer/application/classes/imageproc.php"
line
integer 138
4
array(17) ( "imgSrc" => string(20) "images/no_avatar.jpg" "dstImg" => string(25) "images/no_avatar_240x.jpg" "thumbnail_width" => string(3) "240" "thumbnail_height" => string(0) "" "text" => string(0) "" "addWatermark" => bool TRUE "info" => array(7) ( 0 => integer 115 1 => integer 115 2 => integer 2 3 => string(24) "width="115" height="115"" "bits" => integer 8 "channels" => integer 3 "mime" => string(10) "image/jpeg" ) "width_orig" => integer 115 "height_orig" => integer 115 "mime" => string(10) "image/jpeg" "ext" => string(3) "jpg" "myImage" => resource(gd) "ratio_orig" => integer 1 "new_width" => string(3) "240" "new_height" => float 240 "process" => resource(gd) "bg" => integer 16777215 )
-
APPPATH/classes/imageproc.php [ 138 ] » imagejpeg(arguments)
im
resource(gd)
to
string(25) "images/no_avatar_240x.jpg"
quality
integer 95
133 } 134 if ($thumbnail_width > 550 || $thumbnail_height > 420) { 135 $process = self::addWatermarkText($process, $text, $addWatermark); 136 } 137 138 imagejpeg($process, $dstImg, 95); 139 imagedestroy($process); 140 imagedestroy($myImage); 141 142 } 143
-
APPPATH/classes/model/user.php [ 92 ] » ImageProc::scale(arguments)
imgSrc
string(20) "images/no_avatar.jpg"
dstImg
string(25) "images/no_avatar_240x.jpg"
thumbnail_width
string(3) "240"
thumbnail_height
string(0) ""
87 88 list($width, $height) = explode('x', $size); 89 if ($width && $height) { 90 ImageProc::crop($pathFullSize, $filePathLocal, $width, $height); 91 } else { 92 ImageProc::scale($pathFullSize, $filePathLocal, $width, $height); 93 } 94 return $filePath; 95 } 96 } 97 }
-
APPPATH/views/classified/show.php [ 74 ] » Model_User->getAvatarUrl(arguments)
size
string(4) "240x"
69 70 <div class="i-right"> 71 <div class="box box-25 autor typ-2"> 72 <div class="inbox"> 73 <h2 class="upper">Ogłoszeniodawca</h2> 74 <img src="<?php echo $classified->author->getAvatarUrl('240x'); ?>" alt="#" class="img"> 75 <div class="cb"> 76 <span class="name"><a href="<?php echo $classified->author->url(); ?>"><?php echo $classified->author->name(); ?></a></span> 77 </div> 78 <p>ogłoszenie bezpośrednie</p> 79 <div class="al">
-
SYSPATH/classes/kohana/view.php [ 49 ] » include(arguments)
0
string(49) "/opt/serwer/application/views/classified/show.php"
44 ob_start(); 45 46 try 47 { 48 // Load the view within the current scope 49 include $kohana_view_filename; 50 } 51 catch (Exception $e) 52 { 53 // Delete the output buffer 54 ob_end_clean();
-
SYSPATH/classes/kohana/view.php [ 303 ] » Kohana_View::capture(arguments)
kohana_view_filename
string(49) "/opt/serwer/application/views/classified/show.php"
kohana_view_data
array(2) ( "classified" => object Model_Classified(34)
{ protected _table_name => string(10) "classified" protected _primary_key => string(13) "classified_id" protected _belongs_to => array(2) ( "author" => array(2) ( "model" => string(4) "user" "foreign_key" => string(10) "creator_id" ) "category" => array(2) ( "model" => string(18) "classifiedcategory" "foreign_key" => string(11) "category_id" ) ) protected _has_many => array(1) ( "images" => array(4) ( "model" => string(15) "classifiedimage" "foreign_key" => string(13) "classified_id" "through" => NULL "far_key" => string(8) "image_id" ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validate => NULL protected _rules => array(0) protected _callbacks => array(0) protected _filters => array(0) protected _labels => array(0) protected _object => array(17) ( "classified_id" => string(3) "134" "category_id" => string(2) "48" "datetime" => string(19) "2018-09-02 08:51:53" "creator_id" => string(6) "242048" "ip" => string(11) "31.0.125.93" "phone" => string(9) "601923839" "mail" => string(24) "biuro@pcsystem-krakow.pl" "type" => string(11) "service_let" "title" => string(16) "PC System Kraków" "content" => string(520) "Witam<br>Wykonywanie instalacji elektryczne, alarm, monitoring, domofon, ppoż, oddymianie. Firma z Krakowa wykonuje zlecenia z K …" "city" => string(6) "kraków" "valid_till" => string(10) "2019-07-31" "views" => string(3) "143" "premium_valid" => string(10) "0000-00-00" "avatar_ext" => string(3) "jpg" "observing_cnt" => string(1) "1" "active" => string(1) "1" ) protected _changed => array(0) protected _related => array(2) ( "category" => object Model_Classifiedcategory(34)
"global" => array(1) ( "is_mobile" => bool FALSE ) ){ protected _table_name => string(18) "classifiedcategory" protected _primary_key => string(11) "category_id" protected _rules => array(1) ( "name" => array(1) ( ... ) ) protected _belongs_to => array(1) ( "parent" => array(2) ( ... ) ) protected _has_many => array(1) ( "categories" => array(4) ( ... ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validate => NULL protected _callbacks => array(0) protected _filters => array(0) protected _labels => array(0) protected _object => array(3) ( "category_id" => string(2) "48" "parent_id" => string(1) "7" "name" => string(11) "Elektryczne" ) protected _changed => array(0) protected _related => array(0) protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => array(1) ( "category_id" => string(3) "ASC" ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(18) "classifiedcategory" protected _object_plural => string(20) "classifiedcategories" protected _table_columns => array(3) ( "category_id" => integer 0 "parent_id" => integer 1 "name" => integer 2 ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_val => string(4) "name" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_PDO(5)
"author" => object Model_User(34){ protected _identifier => string(1) "`" public last_query => string(95) "SELECT `user`.* FROM `user` WHERE `user`.`user_id` = '242048' ORDER BY user.user_id ASC LIMIT 1" protected _instance => string(7) "default" protected _connection => object PDO(0)
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 _preload_data => array(0) }{ }
protected _config => array(5) ( ... ) }{ protected _table_name => string(4) "user" protected _primary_key => string(7) "user_id" protected _rules => array(2) ( "login" => array(1) ( ... ) "password" => array(1) ( ... ) ) protected _belongs_to => array(2) ( "company" => array(2) ( ... ) "ownerUser" => array(2) ( ... ) ) protected _has_many => array(2) ( "posts" => array(4) ( ... ) "companies" => array(4) ( ... ) ) protected _has_one => array(1) ( "companyUser" => array(2) ( ... ) ) protected _load_with => array(0) protected _validate => NULL protected _callbacks => array(0) protected _filters => array(0) protected _labels => array(0) protected _object => array(35) ( "user_id" => string(6) "242048" "company_id" => string(1) "0" "login" => string(9) "PC System" "password" => string(66) "2|479583ad23113c53cb85a7f401681141d0f63ded0da04564f86ac27868a3599c" "mail" => string(24) "biuro@pcsystem-krakow.pl" "rank" => string(4) "user" "first_name" => string(0) "" "last_name" => string(0) "" "www" => NULL "about" => NULL "description" => NULL "phone" => NULL "street" => NULL "street_number" => NULL "appartment_number" => NULL "city" => string(17) "Kraków Jodłowa 46" "post_code" => NULL "marketing" => string(1) "0" "notifications" => NULL "observing" => string(40) "a:1:{s:10:"classified";a:1:{i:134;b:1;}}" "blog_title" => NULL "registration_datetime" => string(19) "2018-09-01 14:38:46" "investments_count" => string(1) "0" "posts_count" => string(1) "0" "images_count" => string(1) "0" "articles_count" => string(1) "0" "classifieds_count" => string(1) "0" "observing_cnt" => string(1) "0" "premium_valid" => NULL "avatar_ext" => string(0) "" "fb" => string(1) "0" "active" => string(1) "1" "last_activity_check" => NULL "rodo" => string(1) "1" "avatar" => NULL ) protected _changed => array(0) protected _related => array(0) protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => array(1) ( "user_id" => string(3) "ASC" ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(4) "user" protected _object_plural => string(5) "users" protected _table_columns => array(35) ( "user_id" => integer 0 "company_id" => integer 1 "login" => integer 2 "password" => integer 3 "mail" => integer 4 "rank" => integer 5 "first_name" => integer 6 "last_name" => integer 7 "www" => integer 8 "about" => integer 9 "description" => integer 10 "phone" => integer 11 "street" => integer 12 "street_number" => integer 13 "appartment_number" => integer 14 "city" => integer 15 "post_code" => integer 16 "marketing" => integer 17 "notifications" => integer 18 "observing" => integer 19 "blog_title" => integer 20 "registration_datetime" => integer 21 "investments_count" => integer 22 "posts_count" => integer 23 "images_count" => integer 24 "articles_count" => integer 25 "classifieds_count" => integer 26 "observing_cnt" => integer 27 "premium_valid" => integer 28 "avatar_ext" => integer 29 "fb" => integer 30 "active" => integer 31 "last_activity_check" => integer 32 "rodo" => integer 33 "avatar" => integer 34 ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_val => string(4) "name" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_PDO(5)
) protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => array(1) ( "classified_id" => string(3) "ASC" ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(10) "classified" protected _object_plural => string(11) "classifieds" protected _table_columns => array(17) ( "classified_id" => integer 0 "category_id" => integer 1 "datetime" => integer 2 "creator_id" => integer 3 "ip" => integer 4 "phone" => integer 5 "mail" => integer 6 "type" => integer 7 "title" => integer 8 "content" => integer 9 "city" => integer 10 "valid_till" => integer 11 "views" => integer 12 "premium_valid" => integer 13 "avatar_ext" => integer 14 "observing_cnt" => integer 15 "active" => integer 16 ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_val => string(4) "name" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_PDO(5){ protected _identifier => string(1) "`" public last_query => string(95) "SELECT `user`.* FROM `user` WHERE `user`.`user_id` = '242048' ORDER BY user.user_id ASC LIMIT 1" protected _instance => string(7) "default" protected _connection => object PDO(0)
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 _preload_data => array(0) }{ }
protected _config => array(5) ( ... ) }{ protected _identifier => string(1) "`" public last_query => string(95) "SELECT `user`.* FROM `user` WHERE `user`.`user_id` = '242048' ORDER BY user.user_id ASC LIMIT 1" protected _instance => string(7) "default" protected _connection => object PDO(0)
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 _preload_data => array(0) }{ }
protected _config => array(5) ( "type" => string(3) "pdo" "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool TRUE "profiling" => bool TRUE ) }298 { 299 throw new Kohana_View_Exception('You must set the file to use within your view before rendering'); 300 } 301 302 // Combine local and global data and capture the output 303 return View::capture($this->_file, $this->_data + View::$_global_data); 304 } 305 306 } // End View
-
SYSPATH/classes/kohana/view.php [ 193 ] » Kohana_View->render()
188 */ 189 public function __toString() 190 { 191 try 192 { 193 return $this->render(); 194 } 195 catch (Exception $e) 196 { 197 // Display the exception message 198 Kohana::exception_handler($e);
-
APPPATH/views/_layouts/main.php [ 147 ] » Kohana_View->__toString()
142 143 <?php /* 754604057987918 */?> 144 <div class="bin"> 145 <?php $subTab = isset($subTab) ? $subTab : ''; ?> 146 <?php echo Partials::top($topTab, $subTab); ?> 147 <?php echo $content; ?> 148 <?php echo Partials::footer(); ?> 149 </div> 150 <?php /* 151 <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-54ec85aa1ce3f6b6" async="async"></script> 152 */ ?>
-
SYSPATH/classes/kohana/view.php [ 49 ] » include(arguments)
0
string(47) "/opt/serwer/application/views/_layouts/main.php"
44 ob_start(); 45 46 try 47 { 48 // Load the view within the current scope 49 include $kohana_view_filename; 50 } 51 catch (Exception $e) 52 { 53 // Delete the output buffer 54 ob_end_clean();
-
SYSPATH/classes/kohana/view.php [ 303 ] » Kohana_View::capture(arguments)
kohana_view_filename
string(47) "/opt/serwer/application/views/_layouts/main.php"
kohana_view_data
array(8) ( "global" => array(1) ( "is_mobile" => bool FALSE ) "controller" => string(10) "classified" "action" => string(4) "show" "path" => array(1) ( 0 => array(2) ( "title" => string(12) "investmap.pl" "url" => string(1) "/" ) ) "displayRodoPopup" => bool FALSE "topTab" => string(11) "classifieds" "content" => object View(2)
{ protected _file => string(49) "/opt/serwer/application/views/classified/show.php" protected _data => array(2) ( "classified" => object Model_Classified(34)
"title" => string(29) "PC System Kraków - Ogłoszenia" ){ protected _table_name => string(10) "classified" protected _primary_key => string(13) "classified_id" protected _belongs_to => array(2) ( "author" => array(2) ( ... ) "category" => array(2) ( ... ) ) protected _has_many => array(1) ( "images" => array(4) ( ... ) ) protected _has_one => array(0) protected _load_with => array(0) protected _validate => NULL protected _rules => array(0) protected _callbacks => array(0) protected _filters => array(0) protected _labels => array(0) protected _object => array(17) ( "classified_id" => string(3) "134" "category_id" => string(2) "48" "datetime" => string(19) "2018-09-02 08:51:53" "creator_id" => string(6) "242048" "ip" => string(11) "31.0.125.93" "phone" => string(9) "601923839" "mail" => string(24) "biuro@pcsystem-krakow.pl" "type" => string(11) "service_let" "title" => string(16) "PC System Kraków" "content" => string(520) "Witam<br>Wykonywanie instalacji elektryczne, alarm, monitoring, domofon, ppoż, oddymianie. Firma z Krakowa wykonuje zlecenia z K …" "city" => string(6) "kraków" "valid_till" => string(10) "2019-07-31" "views" => string(3) "143" "premium_valid" => string(10) "0000-00-00" "avatar_ext" => string(3) "jpg" "observing_cnt" => string(1) "1" "active" => string(1) "1" ) protected _changed => array(0) protected _related => array(2) ( "category" => object Model_Classifiedcategory(34)
"global" => array(1) ( "is_mobile" => bool FALSE ) ) }{ protected _table_name => string(18) "classifiedcategory" protected _primary_key => string(11) "category_id" protected _rules => array(1) ( ... ) protected _belongs_to => array(1) ( ... ) protected _has_many => array(1) ( ... ) protected _has_one => array(0) protected _load_with => array(0) protected _validate => NULL protected _callbacks => array(0) protected _filters => array(0) protected _labels => array(0) protected _object => array(3) ( ... ) protected _changed => array(0) protected _related => array(0) protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => array(1) ( ... ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(18) "classifiedcategory" protected _object_plural => string(20) "classifiedcategories" protected _table_columns => array(3) ( ... ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_val => string(4) "name" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_PDO(5)
"author" => object Model_User(34){ protected _identifier => string(1) "`" public last_query => string(95) "SELECT `user`.* FROM `user` WHERE `user`.`user_id` = '242048' ORDER BY user.user_id ASC LIMIT 1" protected _instance => string(7) "default" protected _connection => object PDO(0)
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 _preload_data => array(0) }{ }
protected _config => array(5) ( ... ) }{ protected _table_name => string(4) "user" protected _primary_key => string(7) "user_id" protected _rules => array(2) ( ... ) protected _belongs_to => array(2) ( ... ) protected _has_many => array(2) ( ... ) protected _has_one => array(1) ( ... ) protected _load_with => array(0) protected _validate => NULL protected _callbacks => array(0) protected _filters => array(0) protected _labels => array(0) protected _object => array(35) ( ... ) protected _changed => array(0) protected _related => array(0) protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => array(1) ( ... ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(4) "user" protected _object_plural => string(5) "users" protected _table_columns => array(35) ( ... ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_val => string(4) "name" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_PDO(5)
) protected _loaded => bool TRUE protected _saved => bool TRUE protected _sorting => array(1) ( "classified_id" => string(3) "ASC" ) protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(10) "classified" protected _object_plural => string(11) "classifieds" protected _table_columns => array(17) ( "classified_id" => integer 0 "category_id" => integer 1 "datetime" => integer 2 "creator_id" => integer 3 "ip" => integer 4 "phone" => integer 5 "mail" => integer 6 "type" => integer 7 "title" => integer 8 "content" => integer 9 "city" => integer 10 "valid_till" => integer 11 "views" => integer 12 "premium_valid" => integer 13 "avatar_ext" => integer 14 "observing_cnt" => integer 15 "active" => integer 16 ) protected _ignored_columns => array(0) protected _updated_column => NULL protected _created_column => NULL protected _primary_val => string(4) "name" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_PDO(5){ protected _identifier => string(1) "`" public last_query => string(95) "SELECT `user`.* FROM `user` WHERE `user`.`user_id` = '242048' ORDER BY user.user_id ASC LIMIT 1" protected _instance => string(7) "default" protected _connection => object PDO(0)
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 _preload_data => array(0) }{ }
protected _config => array(5) ( ... ) }{ protected _identifier => string(1) "`" public last_query => string(95) "SELECT `user`.* FROM `user` WHERE `user`.`user_id` = '242048' ORDER BY user.user_id ASC LIMIT 1" protected _instance => string(7) "default" protected _connection => object PDO(0)
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 _preload_data => array(0) }{ }
protected _config => array(5) ( ... ) }298 { 299 throw new Kohana_View_Exception('You must set the file to use within your view before rendering'); 300 } 301 302 // Combine local and global data and capture the output 303 return View::capture($this->_file, $this->_data + View::$_global_data); 304 } 305 306 } // End View
-
SYSPATH/classes/kohana/view.php [ 193 ] » Kohana_View->render()
188 */ 189 public function __toString() 190 { 191 try 192 { 193 return $this->render(); 194 } 195 catch (Exception $e) 196 { 197 // Display the exception message 198 Kohana::exception_handler($e);
-
APPPATH/bootstrap.php [ 153 ] » Kohana_View->__toString()
148 149 try { 150 $request = Request::instance(); 151 $request->execute(); 152 $request->send_headers(); 153 echo $request->response; 154 //print_r(Profiler::groups()); 155 156 } catch (Exception $e) { 157 if (Kohana::$environment != Kohana::PRODUCTION) { 158 throw $e;
-
DOCROOT/index.php [ 139 ] » require(arguments)
0
string(37) "/opt/serwer/application/bootstrap.php"
134 // Load empty core extension 135 require SYSPATH.'classes/kohana'.EXT; 136 } 137 138 // Bootstrap the application 139 require APPPATH.'bootstrap'.EXT;