
I wszyscy sobie pomagają, więc może i mi ktosik pomoże...
Mam taki szablon stronki ...
oraz mam śliczną galeryjkę 35mm Slide Gallery

Skrypt działa w ten sposób, że otwiera się osobno w nowym oknie i katalogi z galeriami musza byc w tym samym katalogu co sam plik index.php
BARDZO mi zależy aby galeria otwierała się w tym samym miejscu co inne podstrony (jako podstrona) i żeby katalogii galerii znajdowały sie w zbiorczym katalogu "galeria"
Ma on taki kod:
### plik confif.php
<?php //Slide gallery variables $place = \".\"; //directory of the slide mount images, no need to change $col = 3; //no. of columns in a page $maxrow = 2; //no. of rows in a page $dir=\".\"; //directory for this script, no need to change $thumb = true ; //setting it to TRUE will generate real thumbnails on-the-fly, supports jpg file only and requires GD library. Setting it to FALSE will re if thumbnails don't show properly. $croptofit = true ; //TRUE will crop the thumbnail to fit the aspect ratio of the slide mount if they ren't the same. False won't crop the thumbnail but it will be distorted if both aspect ratios are not the ame. $rollover = true ; //thumbnail rollover effect for IE only //Upload/Delete Module variables $LOGIN = \"admin\"; $PASSWORD = \"admin\"; $abpath = \"/usr/local/apache/vhosts\"; //Absolute path to where images are uploaded. No trailing slash $sizelim = \"no\"; //Size limit, yes or no $size = \"2500000\"; //Size limit if there is one $number_of_uploads = 5; //Maximum number of uploads in one time ?>
### plik header.php
<?php <html> <head> <title>35mm Slide Gallery</title> <link rel=\"stylesheet\" type=\"text/css\" href=\"gallery.css\"> </head> <div id=\"header\"><h1>35mm Slide Gallery --demo--</h1><div align=\"right\"><font size=\"1\">powered by <a href=\"http://www.andymack.com/freescripts/\">35mm Slide Gallery</a></font></div></div> <body bgcolor=\"#666666\"> ?>
### plik index.php
<?php $imgdir = $_GET['imgdir']; $page = $_GET['page']; include(\"header.inc\"); require('config.php'); if ($rollover) { include('rollover.txt'); } ///// for captioning function caption($filename) { $is_captioned = check_perms($filename); if ($is_captioned) { print\"<br><font face='Arial, Helvetica, sans-serif' size=2 color='#999999'>\"; include($filename); print\"</font>\"; } } ///// for album description function album($filename) { $is_captioned = check_perms($filename); if ($is_captioned) { print\"<font face='Arial, Helvetica, sans-serif' size=3 color='#cccccc'>\"; include($filename); print\"</font><br>\"; } } ////check file permission function check_perms($filename) { $isreadable = $fileperms & 4; // pictures, thumbnails, config files and comments only need to be readable if (! $isreadable) { } return $isreadable; } // galleries need to be both readable and executable $isexecutable = $fileperms & 1; if (! $isreadable || ! $isexecutable) return ( $isreadable && $isexecutable); // ($dirperms & 5) == 5 ? } // default behavior: the filename does not exist return false; } { if ($file != \".\" && $file != \"..\" && is_dir($file)) {$dname[] = $file; } } print \"function MM_jumpMenu(targ,selObj,restore){eval(targ+\".location='\"+selObj.options[selObj.selectedIndex].value+\"'\");\"; $u=0; foreach($dname as $key=>$val) { if($dname[$u]) $u++; } } if ($imgdir ==\"\") {$imgdir = $dname[0]; } { if( (substr($imgfile,-3)==\"gif\") || (substr($imgfile,-3)==\"jpg\") || (substr($imgfile,-3)==\"JPG\") || (substr($imgfile,-3)==\"GIF\") ) { } } $totxpage = $col*$maxrow; // images x page $totpages = ($totimg%$totxpage==0)?((int)$totimg/$totxpage):((int)($totimg/$totxpage)+1); // number of total pages if($totimg == false) print \"<br><font size=2 face=verdana>No Images available in your \"IMAGES\" directory yet!!</font><br>\"; else { ///print album description $album_name = \"$imgdir/album.txt\"; album($album_name); llspacing=3>n\"; // start page if($page==\"\" || $page==1) { $x=0; $page = 1; } else $x = (($page-1)*($totxpage)); $r=0; // print of table foreach($a_img as $key=>$val) { $caption_name = \"$imgdir/$a_img[$x].txt\"; if(($x%$col)==0) print \"<tr>n\"; if($a_img[$x]) { $size = getimagesize (\"$imgdir/$a_img[$x]\"); $halfw = round($size[0]/2); $halfh = round($size[1]/2); $quarterw = round($size[0]/4); $quarterh = round($size[1]/4); if($size[1] < $size[0]) { $height = 86; $width = 130; $imgnumber = ($x+1); if(\"$imgdir/$a_img[$x]\" !=\"\") if ($thumb){ $thumbnail = \"thumbs.php?image=$imgdir/$a_img[$x]&newheight=86&newwidth=130&width=$size[0]&height=$size[1]\"; } else { $thumbnail = \"$imgdir/$a_img[$x]\"; } print \"<td align=center valign=top>\"; print \"<TABLE WIDTH=198 BORDER=0 CELLPADDING=0 CELLSPACING=0>\"; print \"<TR><TD COLSPAN=3><IMG SRC=\"$place/slide_01.gif\" WIDTH=198 HEIGHT=47></TD></TR>\"; print \"<TR><TD><IMG SRC=\"$place/slide_02.gif\" WIDTH=33 HEIGHT=86></TD>\"; print \"<TD><a href='#' onclick=\"window.open('popup.php?img=$imgdir/$a_img[$x]&w=$size[0]&h=$size[1]&t=$imgdir $imgnumber','$x','width=$size[0],height=$size[1],directories=no,location=no,menubar=no,scrollbars=
no,status=no,toolbar=no,re izable=no');return false\" target=\"_blank\"><img src=\"$thumbnail\" height=$height width=$width border=0 alt='$a_img[$x]' style=\"filter:alpha(opacity=100)\" onmouseout=\"gradualfade(this,100,30,4)\" onmouseover=\"gradualfade(this,40,50,100)\"></a></TD>\"; print \"<TD><IMG SRC=\"$place/slide_04.gif\" WIDTH=35 HEIGHT=86></TD></TR><TR>\"; print \"<TD COLSPAN=3><IMG SRC=\"$place/slide_05.gif\" WIDTH=198 HEIGHT=56><br><font size=\"1\"><a href='#' onclick=\"window.open('popup.php?img=$imgdir/$a_img[$x]&w=$size[0]&h=$size[1]&t=$imgdir $imgnumber','$x','width=$size[0],height=$size[1],directories=no,location=no,menubar=no,scrollbars=
no,status=no,toolbar=no,re izable=no');return false\" target=\"_blank\">$size[0] x $size[1]</a> | <a href='#' onclick=\"window.open('popup.php?img=$imgdir/$a_img[$x]&w=$halfw&h=$halfh&t=$imgdir $imgnumber','$x','width=$halfw,height=$halfh,directories=no,location=no,menubar=no,scrollbars=no,s atus=no,toolbar=no,resizable=no');return false\" target=\"_blank\">1/2</a> | <a href='#' onclick=\"window.open('popup.php?img=$imgdir/$a_img[$x]&w=$quarterw&h=$quarterh&t=$imgdir $imgnumber','$x','width=$quarterw,height=$quarterh,directories=no,location=no,menubar=no,scrollbar =no,status=no,toolbar=no,resizable=no');return false\" target=\"_blank\">1/4 size</a></font>\"; caption($caption_name); print \"</TD></TR>\"; print \"</TABLE></center>\"; print \"</td>n\"; } else { $height = 130; $width = 86; if ($thumb){ $thumbnail = \"thumbs.php?image=$imgdir/$a_img[$x]&newheight=130&newwidth=86&width=$size[0]&height=$size[1]\"; } else { $thumbnail = \"$imgdir/$a_img[$x]\"; } $imgnumber = ($x+1); if(\"$imgdir/$a_img[$x]\" !=\"\") print \"<td align=center valign=top>\"; print \"<TABLE WIDTH=198 BORDER=0 CELLPADDING=0 CELLSPACING=0>\"; print \"<TR><TD COLSPAN=3><IMG SRC=\"$place/slidev_01.gif\" WIDTH=198 HEIGHT=28></TD></TR>\"; print \"<TR><TD><IMG SRC=\"$place/slidev_02.gif\" WIDTH=56 HEIGHT=130></TD>\"; print \"<TD><a href='#' onclick=\"window.open('popup.php?img=$imgdir/$a_img[$x]&w=$size[0]&h=$size[1]&t=$imgdir $imgnumber','$x','width=$size[0],height=$size[1],directories=no,location=no,menubar=no,scrollbars=
no,status=no,toolbar=no,re izable=no');return false\" target=\"_blank\"><img src=\"$thumbnail\" height=$height width=$width border=0 alt='$a_img[$x]' style=\"filter:alpha(opacity=100)\" onmouseout=\"gradualfade(this,100,30,4)\" onmouseover=\"gradualfade(this,40,50,100)\"></a></TD>\"; print \"<TD><IMG SRC=\"$place/slidev_04.gif\" WIDTH=56 HEIGHT=130></TD></TR><TR>\"; print \"<TD COLSPAN=3><IMG SRC=\"$place/slidev_05.gif\" WIDTH=198 HEIGHT=31><br><font size=\"1\"><a href='#' onclick=\"window.open('popup.php?img=$imgdir/$a_img[$x]&w=$size[0]&h=$size[1]&t=$imgdir $imgnumber','$x','width=$size[0],height=$size[1],directories=no,location=no,menubar=no,scrollbars=
no,status=no,toolbar=no,re izable=no');return false\" target=\"_blank\">$size[0] x $size[1]</a> | <a href='#' onclick=\"window.open('popup.php?img=$imgdir/$a_img[$x]&w=$halfw&h=$halfh&t=$imgdir $imgnumber','$x','width=$halfw,height=$halfh,directories=no,location=no,menubar=no,scrollbars=no,s atus=no,toolbar=no,resizable=no');return false\" target=\"_blank\">1/2</a> | <a href='#' onclick=\"window.open('popup.php?img=$imgdir/$a_img[$x]&w=$quarterw&h=$quarterh&t=$imgdir $imgnumber','$x','width=$quarterw,height=$quarterh,directories=no,location=no,menubar=no,scrollbar =no,status=no,toolbar=no,resizable=no');return false\" target=\"_blank\">1/4 size</a></font>\"; caption($caption_name); print \"</TD></TR>\"; print \"</TABLE>\"; print \"</td>n\"; } } if(($x%$col) == ($col-1)) { print \"</tr>n\"; $r++; } // print \"r=$r - maxrow=$maxrow<br>\"; if($r==$maxrow) { break; } else $x++; } print \"</table>n\"; } // page break $imgdir = str_replace(\" \", \"%20\", $imgdir); //page number print \"<p><font size=2 face=verdana>\"; if($totimg>$totxpage) { if($totpages>$page) { $next = $page+1; $back = ($page>1)?($page-1):\"1\"; if($page>1) { $back = $page-1; print \"<a href=index.php?imgdir=$imgdir&page=1>first page</a> | <a href=index.php?imgdir=$imgdir&page=$back><< back </a>\"; } print \" <b>page $page of $totpages</b> <a href=index.php?imgdir=$imgdir&page=$next>next >></a> | <a href=index.php?imgdir=$imgdir&page=$totpages>last page</a>\"; } else { $next = (($page-1)==0)?\"1\":($page-1); print \"<a href=index.php?imgdir=$imgdir&page=1>first page</a> | <a href=index.php?imgdir=$imgdir&page=$next><< back</a> <b>page $page of $totpages</b> \"; print \"</center>\"; } } include(\"footer.inc\"); ?>
### plik popup.php
<?php $img = $_GET['img']; $w = $_GET['w']; $h = $_GET['h']; $t = $_GET['t']; print \"<body bgcolor=\"Black\" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onblur=\"self.close();\" onload=\"self.focus();\">\"; ?>
### plik rollover.txt
<script> gradualfadeObjects = new Object(); gradualfadeTimers = new Object(); function gradualfade(object, final, speed, change){ if (!document.all) return if (object != "[object]"){ setTimeout("gradualfade("+object+","+final+","+speed+","+change+")",0); return; } clearTimeout(gradualfadeTimers[object.sourceIndex]); diff = final-object.filters.alpha.opacity; direction = 1; if (object.filters.alpha.opacity > final){ direction = -1; } change=Math.min(direction*diff,change); object.filters.alpha.opacity+=direction*change; if (object.filters.alpha.opacity != final){ gradualfadeObjects[object.sourceIndex]=object; gradualfadeTimers[object.sourceIndex]=setTimeout("gradualfade(gradualfadeObjects["+object.sourceIndex+"],"+final+","+speed+","+change+")",speed); gradualfadeTimers[object.sourceIndex]=setTimeout("gradualfade(gradualfadeObjects["+object.sourceIndex+"],"+final+","+speed+","+change+")",speed); } } </script>
...uff...
Nie mam bladego pojęcia jak zmodyfikować ten kod, by dopasować go do moich potrzeb. Musze się przyznać, ze próbowałam co nieco go zmieniać, ale naprawdę nikt nie chce wiedzieć z jakimi skutkami

BARDZO bym prosiła o pomoc, czyli o modyfikacje skryptu lub chociaż jego wytłumaczenie

Ja wiem, że pewnie zmiany o które mi chodzi sa banalne, ale ja NAPRAWD nie wiem jak go zmienić... chlip..
POMOŻECIE :?: