PHP Classes
elePHPant
Icontem

File: imGallery/example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Arkadiusz Malinski  >  imGallery  >  imGallery/example.php  >  Download  
File: imGallery/example.php
Role: Example script
Content type: text/plain
Description: example
Class: imGallery
Show galleries of images stored on the server
Author: By
Last change: 1
Date: 8 years ago
Size: 812 bytes
 

Contents

Class file image Download
<?
   
try {
       
$galConfig = new imGalleryConfig();
       
$galConfig->addGallery("test1");
       
$galConfig->addGalleryTitle("test1", "First gallery Title");
       
$galConfig->addGalleryFullPath("test1", "testgal/mecz/duze/");
       
$galConfig->addGalleryThumbsPath("test1", "testgal/mecz/male/");

       
$galConfig->addGallery("test2");
       
$galConfig->addGalleryTitle("test2", "Second Gallery Tile");
       
$galConfig->addGalleryFullPath("test2", "testgal/sprzatanie/duze/");
       
$galConfig->addGalleryThumbsPath("test2", "testgal/sprzatanie/male/");
       
       
       
$galeria = new imGallery($galConfig, XHTML_GALLERY);

       
$galeria->setThumbsPerRow(9);
        echo
$galeria->output("test1");
       
       
$galeria->setThumbsPerRow(6);
        echo
$galeria->output("test2");
       
    } catch (
Exception $r) {
        echo
"error: ".$r->getMessage();
    }
?>