1024 && $i<$total;$i++){ $size/=1024; } return round($size,$round).$sizes[$i]; } if(isset($_POST['submit'])){ $mp3_filepath = $_POST['mp3_filepath']; $mp3_filefolder = $_POST['mp3_filefolder']; $mp3_filename = $_POST['mp3_filename']."[TorkMusic.ir].".$_POST['mp3_type']; $mp3_songname = $_POST['mp3_songname']."[تورک موزیک]"; $mp3_comment = $_POST['mp3_comment']."[TorkMusic.ir]"; $mp3_artist = $_POST['mp3_artist']."[TorkMusic.ir]"; $mp3_album = $_POST['mp3_album']."[TorkMusic.ir]"; $mp3_year = $_POST['mp3_year']; $mp3_genre = $_POST['mp3_genre']."[TorkMusic.ir]"; if(filter_var($mp3_filepath,FILTER_VALIDATE_URL)){ if($mp3_filename!=""){ $mp3_filename = str_replace(DIRECTORY_SEPARATOR,"-X-",$mp3_filename); if(strtolower(end(explode(".",basename($mp3_filepath))))!="mp3" && strtolower(end(explode(".",basename($mp3_filepath))))!="m4a"){ exit(""); } $sname = "../".$mp3_filefolder."/".$mp3_filename; if(copy($mp3_filepath,$sname)){ $size = friendly_size(filesize($sname)); $mp3_tagformat = 'UTF-8'; require_once('getid3/getid3.php'); $mp3_handler = new getID3; $mp3_handler->setOption(array('encoding'=>$mp3_tagformat)); require_once('getid3/write.php'); $mp3_writter = new getid3_writetags; $mp3_writter->filename = $sname; $mp3_writter->tagformats = array('id3v1', 'id3v2.3'); $mp3_writter->overwrite_tags = true; $mp3_writter->tag_encoding = $mp3_tagformat; $mp3_writter->remove_other_tags = true; $mp3_data['title'][] = $mp3_songname; $mp3_data['artist'][] = $mp3_artist; $mp3_data['album'][] = $mp3_album; $mp3_data['year'][] = $mp3_year; $mp3_data['genre'][] = $mp3_year; $mp3_data['comment'][] = $mp3_comment; echo"
"; echo '
حله داداچ! اینم لینک آهنگت برو حال کن.
'; echo "
"; if($_FILES['mp3_image']['error']==0 && $_FILES['mp3_image']['size']>0) { if(in_array($_FILES['mp3_image']['type'],array("image/png","image/jpeg","image/gif"))){ $mp3_data['attached_picture'][0]['data'] = file_get_contents($_FILES['mp3_image']['tmp_name']); $mp3_data['attached_picture'][0]['picturetypeid'] = $_FILES['mp3_image']['type']; $mp3_data['attached_picture'][0]['description'] = $_FILES['mp3_image']['name']; $mp3_data['attached_picture'][0]['mime'] = $_FILES['mp3_image']['type']; } else{ echo '
اخطار داداچ عکست مشکل داره
'; } } $mp3_writter->tag_data = $mp3_data; if($mp3_writter->WriteTags()) { } else{ echo"
داداچ تگ رو نتونستم بزنم روش\".implode(\"

\",$mp3_writter->errors)
"; } } else{echo '
شرمندتم داداچ نتونستم فایلو کپی کنم تو هاستت
';} } else{echo"";} } else{echo"";} } if (isset($_POST['zip'])){ $zippy = Zippy::load(); $p=$_POST['path']; $n=$_POST['name']; if ($p=="" || $n==""){ echo "" ; }else{ $archive = $archive = $zippy->create( '../'.$p.'/'.$n.'.zip', array($n => '../'.$p), true); if ($archive){ echo '
حله داداچ! اینم لینک آلبومت فدات شم برو حال کن.
'; echo "
"; } else{ echo "" ; } } } if (isset($_POST['video'])){ $l=$_POST['link']; $na=$_POST['name']; $pa=$_POST['path']; if ($l=="" ||$na=="" ||$pa==""){ }else{ if(strtolower(end(explode(".",basename($l))))=="mp4" || strtolower(end(explode(".",basename($l))))=="mkv" || strtolower(end(explode(".",basename($l))))=="avi" || strtolower(end(explode(".",basename($l))))=="wmv"){ $mm="../".$pa."/".$na; if (copy($l,$mm)){ echo '
حله داداچ! اینم لینک موزیک ویدیوت فدات شم برو حال کن.
'; echo "
"; }else{ echo "" ; } }else{ exit(""); } } } ?>

تگ ادیتور