Banner Reana
Banner Lorenci Maio/2013 - 2
Banner Intelectus Institucional
Banner Loock Cine Agosto
Banner Segudna Pele Marco 2013
álbuns de fotos
" . $LANG_MISSING_VAR_H1 . "

" . $LANG_MISSING_VAR_H3 . "

"; exit; } #---------------------------------------------------------------------------- # Check if the user agent is iphone #---------------------------------------------------------------------------- if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod')) { $IMGMAX = "320"; $THUMBSIZE = "144"; $meta_tag = "" . "\n"; $content_div = "
" . "\n"; } else { $meta_tag = ""; $content_div = "
" . "\n"; } #---------------------------------------------------------------------------- # VARIABLES #---------------------------------------------------------------------------- if ($REQUIRE_FILTER != "FALSE") { if ((!isset($FILTER)) || ($FILTER == "")) {die($LANG_PERM_FILTER);} } #---------------------------------------------------------------------------- # Request URL for Album list #---------------------------------------------------------------------------- $file = "http://picasaweb.google.com/data/feed/api/user/" . $PICASAWEB_USER . "?kind=album&thumbsize=72&max-results=" . $IMAGES_PER_PAGE; #---------------------------------------------------------------------------- # Curl code to store XML data from PWA in a variable #---------------------------------------------------------------------------- $ch = curl_init(); $timeout = 0; // set to zero for no timeout curl_setopt($ch, CURLOPT_URL, $file); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); # Display only public albums if PUBLIC_ONLY=TRUE in config.php if ($PUBLIC_ONLY == "FALSE") { curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Authorization: AuthSub token="' . $GDATA_TOKEN . '"' )); } $addressData = curl_exec($ch); curl_close($ch); #---------------------------------------------------------------------------- # Parse the XML data into an array #---------------------------------------------------------------------------- $p = xml_parser_create(); xml_parse_into_struct($p, $addressData, $vals, $index); xml_parser_free($p); #---------------------------------------------------------------------------- # Iterate over the array and extract the info we want #---------------------------------------------------------------------------- foreach ($vals as $val) { if ($OPEN != 1) { if ($val["tag"] == "ENTRY") { if ($val["type"] == "open") { $OPEN = 1; } } } else { switch ($val["tag"]) { case "ENTRY": if ($val["type"] == "close") {$OPEN=0;} break; case "MEDIA:THUMBNAIL": $thumb = trim($val["attributes"]["URL"] . "\n"); break; case "MEDIA:DESCRIPTION": $desc = trim($val["value"] . "\n"); break; case "MEDIA:TITLE": $title = trim($val["value"]); break; case "LINK": if ($val["attributes"]["REL"] == "alternate") { $href = trim($val["attributes"]["HREF"]); } break; case "GPHOTO:NUMPHOTOS": $num = trim($val["value"]); break; case "GPHOTO:LOCATION": $loc = trim($val["value"]); break; case "PUBLISHED": $published = trim($val["value"]); $published = substr($published,0,10); break; case "GPHOTO:ACCESS": $access = trim($val["value"]); if ($access == "protected") { $daccess = "Private"; } else { $daccess = "Public"; } break; case "GPHOTO:NAME": $picasa_name = trim($val["value"]); break; } } #---------------------------------------------------------------------------- # Once we have all the pieces of info we want, dump the output #---------------------------------------------------------------------------- if (isset($thumb) && isset($title) && isset($href) && isset($num) && isset($published)) { if ($FILTER != "") { $pos = strlen(strpos($title,$FILTER)); $box = strlen(strpos($title,"Drop Box")); if ($pos > 0) { $pos = 0; #} else if (($box > 0) && ($SHOW_DROP_BOX == "TRUE")) { # Added to allow user to control whether # $pos = 0; # drop box appears in gallery list } else { $pos = 1; } } else { $pos = strlen(strpos($title,"_hide")); } if ($pos == 0) { $thumbwidth = 92; $twstyle="width: " . $galdatasize . "px;"; list($disp_name,$tags) = split('_',$title); # -------------------------------------------------------------------- # Added via issue 7, known problem: long names can break div layout # -------------------------------------------------------------------- if ((strlen($disp_name) > $TRUNCATE_FROM) && ($TRUNCATE_ALBUM_NAME == "TRUE")) { $disp_name = substr($disp_name,0,$TRUNCATE_TO) . "..."; } $album_count++; $total_images = $total_images + $num; $out .= "
\n"; $out .= "
\n"; $out .= "$disp_name"; $out .= "
\n"; $out .= "
\n"; $out .= "

$disp_name

\n"; if ($SHOW_ALBUM_DETAILS == "TRUE") { if ($desc != "") { if (strlen($desc) > 120) { $desc = substr($desc,0,117) . "..."; } $out .= ""; } } $out .= "
"; $out .= "
\n"; $array_albuns[] = $out; unset($out); } #---------------------------------- # Reset the variables #---------------------------------- unset($thumb); unset($title); } } //$new_array = array_reverse($array_albuns); $new_array = $array_albuns; for($i = 0; $i <= count($new_array); $i++){ echo $new_array[$i]; } ?>
você sabia
Início
SC 24 Horas
Rua Visconde de Cairu, 339 - Centro
Florianópolis - SC / 89803-001
E-mail: contato@sc24horas.com.br