Displays a message when directory name contains accentuated characters or

spaces


git-svn-id: http://piwigo.org/svn/trunk@155 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub 2003-09-21 18:01:02 +00:00
parent 2e932eb254
commit fd412dab5b

View file

@ -38,6 +38,13 @@ function get_dirs( $rep, $indent, $level )
and $file != "thumbnail" )
{
$sub_rep[$i++] = $file;
if ( !preg_match( '/^[a-zA-Z0-9-_.]+$/', $file ) )
{
echo '<span style="color:red;">"'.$file.'" : ';
echo 'The name of the directory should be composed of ';
echo 'letters, figures, "-", "_" or "." ONLY';
echo '</span><br />';
}
}
}
}