size_auto( $config['poster_width'], 0 ) ) { $thumb->jpeg_quality( $config['jpeg_quality'] ); if( $config['allow_watermark'] == "yes" ) $thumb->insert_watermark( $config['max_watermark'] ); $thumb->save( ROOT_DIR . "/uploads/covers/thumbs/" . $file_prefix . $image_name ); } @chmod( ROOT_DIR . "/uploads/covers/thumbs/" . $file_prefix . $image_name, 0666 ); if( @file_exists( ROOT_DIR . "/uploads/covers/thumbs/" . $file_prefix . $image_name ) ) { $th = '/covers/thumbs/' . $file_prefix . $image_name; } if( ($config['allow_watermark'] == "yes" ) or $config['max_up_side'] ) { $thumb = new thumbnail( ROOT_DIR . "/uploads/covers/" . $file_prefix . $image_name ); $thumb->jpeg_quality( $config['jpeg_quality'] ); if( $config['max_up_side'] ) $thumb->size_auto( $config['max_up_side'] ); if( $config['allow_watermark'] == "yes" ) $thumb->insert_watermark( $config['max_watermark'] ); $thumb->save( ROOT_DIR . "/uploads/covers/" . $file_prefix . $image_name ); }} if ($url != '') {$db->query("INSERT INTO ".PREFIX."_covers VALUES ('0', '$row', '$url', '$th')");} } ?>