⬆️ ⬇️

Using picasaweb as a photo hosting site

Need to use a lot of images on the site? Do not want to hammer hosting images? Want to reduce server load?

Then you can use the service from Google picasaweb and Picasa API as a hosting for images



the process of uploading photos to the server



Picasaweb features



  1. Reliability of service from Google
  2. Conveniently upload photos to the server
  3. Before downloading, you can select the size and adjust the image settings.
  4. Free 1 GB available, if you need more, you can buy 20G for $ 5 per year
  5. There is an API




Theory (anyone familiar with the picasa program and the picasaweb.google.com service can be skipped)



Google has a http://picasa.google.com/ program for searching and editing images on a computer. With a small size of the boot file, the program can very much. I will not describe the possibilities, it is better to try. We are interested in downloading images from a local computer to the image service picasaweb.google.com



1. After installing picasa, wait some time when the program finds images on the computer

2. Select the desired images.



')

3. From the context menu, select Upload to Picasa Web Albums ... (in English version)





4. Enter the username and password if you are not logged in Google account





5. Enter the name and select the size of the images. 640 pixels for web albums.





6. Clearly shows the boot process





Practice





Download Picasa Api Library written by Cameron Hinkle



Library features

1. There is excellent documentation.

2. Free

3. Supports most picasa features



1. For the library to work it is necessary that the path to the library files is included in the include_path

2. In the file Picasa.php change the path to the library



ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  1. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  2. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  3. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  4. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  5. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  6. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  7. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  8. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  9. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  10. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  11. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  12. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  13. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  14. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  15. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  16. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  17. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  18. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  19. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  20. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  21. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  22. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  23. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  24. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  25. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  26. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  27. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  28. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  29. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  30. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  31. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  32. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  33. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  34. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  35. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  36. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  37. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  38. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  39. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  40. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  41. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  42. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  43. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  44. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  45. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  46. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  47. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  48. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  49. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }
  50. ini_set ( 'include_path' , ini_get ( 'include_path' ) . '.:' . $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ) ; $library_path = $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/' ; include_once ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/phplib/LightweightPicasaAPIv3/Picasa.php' ) ; // // $user - // $album_name - // : picasaweb.google.com.ua/muzprostir/290110 // $user=muzprostir // $album_name=290110 // function get_picasa_album ( $user , $album_name ) { // , if ( file_exists ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) { $album_data = unserialize ( file_get_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name ) ) ; } else { // API picasa $pic = new Picasa ( ) ; // , . : 72, 144, 200, 320, 400, 512, 576, 640, 720, 800, 912, 1024, 1152, 1280, 1440, 1600 // googlesystem.blogspot.com/2006/12/embed-photos-from-picasa-web-albums.html $album = $pic -> getAlbumById ( $user , $album_name , null , null , null , null , '144,640' ) ; // $images = $album -> getImages ( ) ; foreach ( $images as $image ) { $thumbnails = $image -> getThumbnails ( ) ; $album_data [ 'images' ] [ ] = array ( 'url' => ( string ) $thumbnails [ 1 ] -> getUrl ( ) , 'width' => ( string ) $thumbnails [ 1 ] -> getWidth ( ) , 'height' => ( string ) $thumbnails [ 1 ] -> getHeight ( ) , 'title' => ( string ) $image -> getDescription ( ) , 'tn_url' => ( string ) $thumbnails [ 0 ] -> getUrl ( ) , 'tn_width' => ( string ) $thumbnails [ 0 ] -> getWidth ( ) , 'tn_height' => ( string ) $thumbnails [ 0 ] -> getHeight ( ) , ) ; } // $album_data [ 'url' ] = ( string ) $album -> getIcon ( ) ; $album_data [ 'width' ] = '160' ; $album_data [ 'height' ] = '160' ; $album_data [ 'title' ] = ( string ) $album -> getTitle ( ) ; // if ( ! is_dir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user ) ) mkdir ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user , 0777 ) ; file_put_contents ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/cache/picasa_api_cache/' . $user . '/' . $album_name , serialize ( $album_data ) ) ; } return $album_data ; }




Attention! By the above link, the library is modified. Instead of the album id, the name is transferred.

The original library can be downloaded here.



Result





Photos on the live site

Pictures on picasaweb



PS For Zend Framework there is a class for working with picas API



Special thanks to Cameron Hinkle for the excellent library.

Source: https://habr.com/ru/post/83358/



All Articles