($config['max_file_size'] * 1024) ) { @unlink( ROOT_DIR . "/uploads/torrents/" . $file_prefix . $image_name ); } else { @chmod( ROOT_DIR . "/uploads/torrents/" . $file_prefix . $image_name, 0666 ); //********* Tracker by MSW *** start *********// require_once( ROOT_DIR."/system/classes/torrent.class.php" ); $tr_file = ROOT_DIR."/uploads/torrents/".$file_prefix.$image_name; $torrent = new Torrent($tr_file); if($error = $torrent->errors()){ }else{ $files_size = $torrent->size(); $hash = $torrent->hash_info(); $e_hash = addslashes(pack("H*", $hash)); $tr_fild = ", info_hash, size, ctime"; $tr_info = ", '{$e_hash}', '{$files_size}', '".time()."'"; //********* Tracker by MSW *** stop *********// $db->query( "INSERT INTO " . PREFIX . "_torrents (news_id, name, onserver, author {$tr_fild}) values ('{$row['id']}', '$image_name', '{$file_prefix}{$image_name}', '{$member_id[name]}' {$tr_info})" ); $id_upfile = $db->insert_id(); $full_story .= "
[torrent=$id_upfile]"; $db->query( "UPDATE " . PREFIX . "_post SET full_story='$full_story' where id = '$idpost'" ); } } } } ?>