Файл: mp3_full/admin/load.php
Строк: 21
<?php
$name = rand(111,999);
$file = 'http://tegos.kz/new/mp3_full/'.$_GET['file'];
$newfile = 'files/muzo_su_'.$name.'_muzo_su.mp3';
copy($file, $newfile);
require 'MP3Tool.class.php';
require 'conf.php';
$mp3 = new MP3Tool();
$info = $mp3->GetMp3Info($newfile);
$cover = 'cover.jpg';
$album = (isset($info['album']) ? $info['album'].' '.$album : $album);
$artist = (isset($info['artist']) ? $info['artist'].' '.$artist : $artist);
$title = (isset($info['title']) ? $info['title'].' '.$title : $title);
$tags = array(
'album' => $album,
'artist' => $artist,
'title' => $title
);
$mp3->Write($newfile, $tags, $cover);
header("Location: $newfile");
ob_flush();
flush();
?>