Filename must use the same characters as the directories

git-svn-id: http://piwigo.org/svn/trunk@161 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2003-09-23 21:37:04 +00:00
parent 1d7758f029
commit 8f1394a7b7
+9 -1
View File
@@ -19,7 +19,7 @@ $end = strrpos( $_SERVER['PHP_SELF'], '/' ) + 1;
$local_folder = substr( $_SERVER['PHP_SELF'], 0, $end );
$url = 'http://'.$_SERVER['HTTP_HOST'].$local_folder;
$listing.= "<url>$url</url>";
$listing.= '<url>'.$url.'</url>';
// get_dirs retourne un tableau contenant tous les sous-répertoires d'un
// répertoire
@@ -138,6 +138,14 @@ function get_pictures( $rep, $indent )
$picture['height'] = $image_size[1];
array_push( $pictures, $picture );
if ( !preg_match( '/^[a-zA-Z0-9-_.]+$/', $file ) )
{
echo '<span style="color:red;">"'.$file.'" : ';
echo 'The name of the picture should be composed of ';
echo 'letters, figures, "-", "_" or "." ONLY';
echo '</span><br />';
}
}
}
}