その後、Google PicasaWebのサービスとPicasa APIを画像のホスティングとして使用できます
写真をサーバーにアップロードするプロセス
Picasawebの機能
- Googleサービスの信頼性
- 写真をサーバーに便利にアップロードする
- ダウンロードする前に、サイズを選択して画像設定を調整できます
- 1ギガバイトは無料で利用できます。さらに必要な場合は、年間5ドルで20Gを購入できます
- 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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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に感謝します。