<?
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();
}
?>
|