Hash Fehler"); exit (); } if ($userUpload == "") $userUpload = "Guest"; $query = "INSERT INTO namemap (info_hash, filename, url, info, category, subcategory, data, size, comment, tinfo,announce_url, uploader,anonymous,registration) VALUES (\"$hash\", \"$filename\", \"$url\", \"$info\",0 + $categoria, $scategoria, NOW(), \"$size\", \"$comment\", \"$tinfo\",\"$announce\",\"$userUpload\",'$anonyme',\"$registration\")"; $result=db_query("SELECT * FROM namemap where info_hash=\"$hash\""); if (mysql_num_rows($result) == 0) { db_query($query); if ($announce == 'http://tracker.germantorrents-reloaded.com:2710/announce') { db_query("insert into xbt_files (info_hash, ctime) values ('". pack("H*", $hash). "', null);"); } move_uploaded_file($_FILES["torrent"]["tmp_name"] , $CFG->torrents ."/" . $hash . ".btf") or die("Error moving torrent..."); //print("
Bitte warten Sie einen Moment...
"); require_once("lib/getscrape.php"); scrape($announce,$hash); echo "
Torrent Upload erfolgreich...Danke!
"; include("$CFG->templatedir/footer.php"); redirect("$CFG->wwwroot/torrents.php?mode=details&id=$hash","file upload succes",0); exit(); } else { echo "Dieses Torrent existiert bereits in der Datenbank"; unlink($_FILES["torrent"]["tmp_name"]); include("$CFG->templatedir/footer.php"); exit(); } } else { ?>