写真ホスティングサービスとしてのpicasawebの使用

サイトで多くの画像を使用する必要がありますか? ホスティングイメージを詰まらせたくないですか? サーバーの負荷を減らしたいですか?

その後、Google PicasaWebのサービスとPicasa APIを画像のホスティングとして使用できます



写真をサーバーにアップロードするプロセス



Picasawebの機能



  1. Googleサービスの信頼性
  2. 写真をサーバーに便利にアップロードする
  3. ダウンロードする前に、サイズを選択して画像設定を調整できます
  4. 1ギガバイトは無料で利用できます。さらに必要な場合は、年間5ドルで20Gを購入できます
  5. APIがあります




理論(picasaプログラムとpicasaweb.google.comサービスに精通している人はスキップできます)



Googleには、コンピューターで画像を検索および編集するためのhttp://picasa.google.com/プログラムがあります。 ブートファイルのサイズが小さいと、プログラムで多くのことができます。 可能性については説明しませんが、試してみることをお勧めします。 ローカルコンピューターからpicasaweb.google.com画像サービスに画像をアップロードすることに関心があります



1. picasaをインストールした後、プログラムがコンピューター上で画像を検出するまでしばらく待ちます

2.目的の画像を選択します





3.コンテキストメニューから[Picasaウェブアルバムにアップロード...]を選択します(英語)





4. Googleアカウントにログインしていない場合は、ユーザー名とパスワードを入力します





5.名前を入力し、画像のサイズを選択します。 ウェブアルバムには640pxで十分です





6.読み込みプロセスがはっきりと見える





練習する





Cameron Hinkleが作成したPicasa Api ライブラリをダウンロードする



ライブラリ機能

1.優れたドキュメントがあります

2.無料

3.ほとんどのpicasa機能をサポート



1.ライブラリが機能するために、include_pathに含まれるライブラリファイルへのパス

2. Picasa.phpファイルで、ライブラリへのパスを変更します



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 ; }







注意! 上記のリンクで、ライブラリが変更されます。 アルバムのIDの代わりに、名前が渡されます。

元のライブラリはここからダウンロードできます。



結果





ライブサイトの写真

picasawebの写真



PS Zend Frameworkのpicas APIを操作するためのクラスがあります



すばらしいライブラリを提供してくれたCameron Hinkleに感謝します。



All Articles