snip
Noticed a little problem with eGallery; If I create a folder from within eGallery I can't upload pictures to it from my FTP. Folders only work if I create them from my FTP client.
function rMkDir ( $path )
{
if ( !is_dir ( $path ) )
{
if ( version_compare ( PHP_VERSION, '5.0.0' ) < 0 )
{
$exp = explode ( DIRECTORY_SEPARATOR, $path );
$way = '';
foreach ( $exp as $n )
{
$way .= $n . DIRECTORY_SEPARATOR;
if ( !file_exists ( $way ) )
{
mkdir ( $way, 0777 );
}
}
}
else
{
mkdir ( $path, 0777, TRUE );
}
}
}
Initial release with Imagemagick, but its not fully complete yet - it doesn't put the borders on, need to rearrange some of the code too.