is there a real reason why file extentions should be case sensitive?
i modified the following scripts to get rid of that restriction
PWG v 1..4.1
admin/include/functions.php
//line 74
function get_pwg_files($dir)
{
global $conf;
$pictures = array();
if ($opendir = opendir($dir))
{
while ($file = readdir($opendir))
{
if (in_array(strtolower(get_extension($file)), $conf['file_ext']))
{
array_push($pictures, $file);
}
}
}
return $pictures;
}
// line 1285
function get_fs($path, $recursive = true)
else if (isset($conf['flip_file_ext'][strtolower($extension)]))
tool/create_listing_file.php
line 213
function get_pwg_files($dir)
{
global $conf;
$pictures = array();
if ($opendir = opendir($dir))
{
while ($file = readdir($opendir))
{
if (in_array(strtolower(get_extension($file)), $conf['file_ext']))
{
array_push($pictures, $file);
if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $file))
{
echo 'PWG-WARNING-2: "'.$file.'" : ';
echo 'The name of the file should be composed of ';
echo 'letters, figures, "-", "_" or "." ONLY';
echo "\n";
}
}
}
}
return $pictures;
}
if this can help ...
Offline