else if ($ras == 'mp3' || $ras == 'ogg')
{
mysql_query("INSERT INTO `groups_files` (`id_user`, `name`, `type`, `ras`, `time`) values ('".$user['id']."', '".my_esc($name)."', '3', '".$ras."', '".$time."')");
$id_f = mysql_insert_id();
if (!@copy($_FILES['p_file_1']['tmp_name'], H.'wearnings/groups/files/post_files/'.$id_f.'.'.$ras.''))
{
mysql_query("DELETE FROM `groups_files` WHERE `id` = '".$id_f."' LIMIT 1");
}
if (class_exists('ffmpeg_movie'))
{
if ($media = new ffmpeg_movie(H.'wearnings/groups/files/post_files/'.$id_f.'.'.$ras))
{
// Ждите обновление ;)
} else {
unlink(H.'wearnings/groups/files/post_files/'.$id_f.'.'.$ras);
mysql_query("DELETE FROM `groups_files` WHERE `id` = '".$id_f."' LIMIT 1");
}
} else {
unlink(H.'wearnings/groups/files/post_files/'.$id_f.'.'.$ras);
mysql_query("DELETE FROM `groups_files` WHERE `id` = '".$id_f."' LIMIT 1");
}
}