Hola a todos, soy nuevo en el foro, así que me disculpo si este mensaje está fuera de lugar.
He descargado el código de una galería de imágenes de flash
http://www.flash-gallery.org/download.html . Todo funciona bien, pero por alguna razón, sólo se carga 20 imágenes. Yo soy de transmisión de las imágenes de todos los flicker.I tienen más de 500 imágenes en una carpeta en Flickr.
Mi pregunta es, ¿el problema reside en el archivo flashgallery.swf? Si es así ¿Cómo puedo abrir y editar.
¿O es que en el archivo flashgallery.php?
Esto es lo que PHP es así:
<?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>";
?>
- <?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 aquí es el sitio por el camino.
http://autographfan.com/More_pages/Sports.htm Disculpe el desorden de los nombres más adelante, no he terminado la lista todavía.
Cualquier ayuda sería muy apreciada!
Gracias, Devin