siedze nad tym skryptem, kombinuje i nic, a sprawa jest taka:
mam fajny skrypt galerii, ktory polega na tym ze generuje galerie z folderow ktore sa w katalogu ze skryptem, a ja chcialbym zeby zdjecia byly w katalogu "galeria/", czyli:
nazwa skryptu galeria.php
zdjecia w katalogu galeria/
nie wiem czy dobrze wytlumaczylem, poni¿ej skrypt i z gory dziekuje za pomoc

<? /* * mmgallery v1.55 * =============== * * Copyright (c) 2004 by madmaz <madmaz@netfriends.it> * * This program is free stware; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ // OPTIONS // If you want to skip some directory rename them with the prefix specified in // $filterprefix (for example use "__"); $filterprefix = ""; // Set to true if you want to show filename below thumbs. $showfilename = false; // Set to true if you want to hide extension in filename. $hidefilenameext = false; /*********************************************************/ /* Counts the number of file in the specified directory. */ /*********************************************************/ function count_files($basedir) { $i = 0; { $file != "thumb.jpg") { $i++; } } return $i; } /*********************************************************/ /* Gets the name of the file number '$index' in the */ /* '$basedir' directory. */ /*********************************************************/ function search_file($basedir, $index) { { $file != "thumb.jpg") { $filelist[] = "$file"; } } return $filelist[$index - 1]; } /*********************************************************/ /* Gets the names of the files in the '$basedir' */ /* directory. */ /*********************************************************/ function list_files($basedir) { { { $filelist[] = "$file"; } } return $filelist; } /*********************************************************/ /* Gets the directory list in the '$basedir' */ /* directory. */ /*********************************************************/ function search_dir($basedir) { { { $filelisting[] = "$file"; } } return $filelisting; } /**************************************************************/ /* Shows one thumb of each gallery in a table with */ /* with '$cols' columns. */ /* '$th_width' and '$th_height' are the dimensions */ /* of the thumbnails. */ /* The thumbnails are picked from each directory and must */ /* be named 'thumb.jpg' */ /* '$cellpadding', '$cellspacing' refer to the table */ /* properties. */ /**************************************************************/ function show_galleries($cols, $th_width, $th_height, $cellpadding, $cellspacing) { echo "<table border='0' cellpadding='$cellpadding' cellspacing='$cellspacing' align='center'>n"; $dirlist = search_dir("./"); $n = 1; { $dir = $dirlist[$i]; $tot = count_files($dir); echo "<table border='0' cellspacing='1' cellpadding='0' bgcolor='#000000'>n"; echo "<img src='$dir/thumb.jpg' width=$th_width height=$th_height border=0><br>n"; { } $n++; } // Powered by mmgallery } /**************************************************************/ /* Shows all thumbs of a gallery in a table with */ /* '$cols' columns. */ /* '$th_width' and '$th_height' are the dimensions */ /* of the thumbnails. */ /* The thumbnails are picked from each directory and must */ /* be named 'thumb.jpg' */ /* '$cellpadding', '$cellspacing' refer to the table */ /* properties. */ /**************************************************************/ function show_thumbs($cols, $th_width, $th_height, $cellpadding, $cellspacing, $perpage) { $dir = $_GET["dir"]; $tot = count_files($dir); $page = $_GET["page"]; } $img = $_GET["img"]; } if ($page == NULL) { } echo "<table border='0' cellpadding='$cellpadding' cellspacing='$cellspacing' align='center'>n"; $filelist = list_files("./$dir/thumbs"); $n = 1; for ($i = (($page - 1) * $perpage); $i < $end; $i++) { echo "<table border='0' cellspacing='1' cellpadding='0' bgcolor='#000000'>n"; "&page=$page'>n"; echo "<img src='$dir/thumbs/$filelist[$i]' width='$th_width' height='$th_height' border='0'><br>n"; if ($showfilename) { if ($hidefilenameext) { } else { } } if (($n % $cols) == 0 && ($n != $perpage)) { } $n++; } // We need to show thumbs in more than one page // Current page if ($page == $j) { } else { } } } ((($page - 1) * $perpage) + 1)."'><font face='verdana' size='1'>start</a> :: "; // Powered by mmgallery } /***********************************************************/ /* Shows the picture and the links related to the position */ /* in the slideshow. */ /***********************************************************/ function show_picture() { $dir = $_GET["dir"]; $tot = $_GET["tot"]; $img = $_GET["img"]; if ($img > 1) { } if ($img < $tot) { } echo "<table border='0' cellspacing='1' cellpadding='0' bgcolor='#000000' align='center'>n"; onLoad='resize(this);' name=foto alt='Click to go to thumbnails page.'>"; if ($img > 1) { } if ($img < $tot) { } 'show.php?dir=$dir&tot=$tot&img=' + document.jump.go.value">"; for ($i = 1; $i <= $tot; $i++) { } // Powered by mmgallery } ?>