Login   Register  
PHP Classes

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Pal Buczko  >  Galleries from Picasa  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example file
Class: Galleries from Picasa
Get image galleries from Picasa Web pictures
Author: By
Last change: Used class has changed
Date: 2 years ago
Size: 1,293 bytes


Class file image Download

require_once 'galleryfrompicasa.class.php';

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

=new GalleryFromPicasa();

        if (isset(
$_GET['pic']) AND $_GET['pic']!="") {
"<img src=\"" $_GET['pic'] . "\" alt=\"\"/>";
        elseif (isset(
$_GET['gal']) AND $_GET['gal']!="") {
            foreach (
$pictures AS $key=>$value) {
"<img src=\"" $value['thumbnail']  . "\" alt=\"" $value['title'] . "\"><a href=\"index.php?pic=" $value['picture'] . "\">" $value['title'] . "</a><br/>\n";
        else {
            foreach (
$albums AS $key=>$value) {
"<img src=\"" $value['thumbnail']  . "\" alt=\"" $value['title'] . "\"><a href=\"index.php?gal=" $key "\">" $value['title'] . "</a><br/>\n";