3x
Code: Alles auswählen
$move_file($image_path, $phpbb_root_path . 'gallery/' . ALBUM_UPLOAD_PATH . $image_filename);
@chmod($phpbb_root_path . 'gallery/' . ALBUM_UPLOAD_PATH . $image_filename, 0777);
if (!$album_config['gd_version'])
{
$move_file($thumbtmp, $phpbb_root_path . 'gallery/'.ALBUM_CACHE_PATH . $image_thumbnail);
@chmod(ALBUM_CACHE_PATH . $image_thumbnail, 0777);
}
Code: Alles auswählen
$src = $read_function($phpbb_root_path . 'gallery/' . ALBUM_UPLOAD_PATH . $image_filename);
Code: Alles auswählen
$dimension_filesize = filesize($phpbb_root_path . 'gallery/' . ALBUM_UPLOAD_PATH . $image_filename);
Code: Alles auswählen
case '.jpg':
@imagejpeg($thumbnail, $phpbb_root_path . 'gallery/' . ALBUM_CACHE_PATH . $image_thumbnail, $album_config['thumbnail_quality']);
break;
case '.png':
@imagepng($thumbnail, $phpbb_root_path . 'gallery/' . ALBUM_CACHE_PATH . $image_thumbnail);
break;
case '.gif':
@imagegif($thumbnail, $phpbb_root_path . 'gallery/' . ALBUM_CACHE_PATH . $image_thumbnail);
break;
Um dann auch per FTP hochgeladene Bilder hinzufügen zu können habe ich fürs erste folgendes geändert:
SUCHE
Code: Alles auswählen
$move_file($image_path, $phpbb_root_path . 'gallery/' . ALBUM_UPLOAD_PATH . $image_filename);
Code: Alles auswählen
if (is_uploaded_file($image_path))
{
$move_file($image_path, $phpbb_root_path . 'gallery/' . ALBUM_UPLOAD_PATH . $image_filename);
}
else
{
$move_file = 'copy';
$move_file($image_path, $phpbb_root_path . 'gallery/' . ALBUM_UPLOAD_PATH . $image_filename);
unlink($image_path);
}