Hey all, I am new to the forum, so I apologize if this post is out of place.
I downloaded code for a flash image gallery from http://www.flash-gallery.org/download.html. Everything works fine, but for some reason it will only load 20 images. I am streaming the images from flicker.I have all most 500 images in one folder on flickr.
My question is, does the problem lie in the flashgallery.swf file? If so how to I open it and edit it.
Or is it in the flashgallery.php file?
This is what the php looks like:
Line number On/Off
Code: Select all
- <?php
- $allowed_formats = array("jpg", "jpeg", "JPG", "JPEG", "png", "PNG");
- $exclude_files = array(
- "_derived",
- "_private",
- "_vti_cnf",
- "_vti_pvt",
- "vti_script",
- "_vti_txt"
- ); // add any other folders or files you wish to exclude from the gallery.
- $path = array();
- if(isset($_GET['file_dir'])){
- $file_dir = $_GET['file_dir'];
- $dir=opendir($file_dir);
- while ($file=readdir($dir))
- {
- $ext = substr($file, strpos($file, ".")+1);
- if(array_search($file, $exclude_files)===false && array_search($ext, $allowed_formats)!==false){
- $f=$file_dir.'/'.$file;
- $path []=$f;
- }
- }
- closedir($dir);
- }
- natcasesort($path);
- print '<?xml version="1.0" encoding="iso-8859-1"?>';
- print '<pics';
- print '>';
- $directory= $_SERVER['HTTP_HOST'] .$_SERVER['PHP_SELF'];
- $directory=dirname($directory);
- foreach ($path as $val) print '<pic src="'.'http://'.$directory.'/'.$val.'" title="'.$val.'" />';;
- print "</pics>";
- ?>
O here is the site by the way. http://autographfan.com/More_pages/Sports.htm Please excuse the mess of names below, I haven't finished the list yet.
Any help would be greatly appreciated!
Thanks, Devin
|