close(); require 'class/Download.class.php'; $durl = 'http://slow.az/admin/upload/'.$_GET['id'].'.mp3'; $mpfile = 'download/'.$_GET['ad'].'.mp3'; $m=''.$_GET['ad'].''; $m=str_replace('-',' ', $m); if(!file_exists($mpfile)){ copy($durl, $mpfile); } if (file_exists($mpfile)) { require 'class/MP3Tool.class.php'; $mp3tag = new MP3Tool(); $cover = 'class/cover.jpg'; $site = ''.$m.' - [~Slow.Az~]'; $albom = ''.$m.' - [~Slow.Az~]'; $janr = ''.$m.' - [~Slow.Az~]'; $name = str_replace('-',' - ',$m); $tags = array( 'album' => $albom, 'artist' => $site, 'title' => ''.$name.' | '.$site.'', 'genre' => $janr, 'comment' => $site, 'year' => date('Y') ); $mp3tag -> Write($mpfile, $tags, $cover); } $mp3_ismi=$m.'_[~Slow.Az~].mp3'; $download = new Download($mpfile, $mp3_ismi, TRUE, FALSE); $download->download_file(); ?>