Hey, je suis nouveau sur le forum, donc je m'excuse si ce poste n'est pas à sa place.
J'ai téléchargé le code pour une galerie flash image à partir de
http://www.flash-gallery.org/download.html . Tout fonctionne correctement, mais pour une raison quelconque, il ne charge que 20 images. Je suis en continu les images de flicker.I ont le plus de la totalité des 500 images dans un dossier sur flickr.
Ma question, c'est si le problème réside dans le fichier flashgallery.swf? Si oui, comment je à l'ouvrir et l'éditer.
Ou est-ce dans le fichier flashgallery.php?
C'est ce que le PHP ressemble à:
<?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 est ici le site en cours de route.
http://autographfan.com/More_pages/Sports.htm S'il vous plaît excuser le désordre des noms ci-dessous, je n'ai pas fini la liste pour le moment.
Toute aide serait grandement appréciée!
Merci, Devin