<?

/*
// +--------------------------------------------------------------------------+
// | Project:    NVTracker - NetVision BitTorrent Tracker                     |
// +--------------------------------------------------------------------------+
// | This file is part of NVTracker. NVTracker is based on BTSource,          |
// | originally by RedBeard of TorrentBits, extensively modified by           |
// | Gartenzwerg.                                                             |
// |                                                                          |
// | NVTracker is free software; you can redistribute it and/or modify        |
// | it under the terms of the GNU General Public License as published by     |
// | the Free Software Foundation; either version 2 of the License, or        |
// | (at your option) any later version.                                      |
// |                                                                          |
// | NVTracker is distributed in the hope that it will be useful,             |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of           |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            |
// | GNU General Public License for more details.                             |
// |                                                                          |
// | You should have received a copy of the GNU General Public License        |
// | along with NVTracker; if not, write to the Free Software Foundation,     |
// | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            |
// +--------------------------------------------------------------------------+
// | Obige Zeilen dürfen nicht entfernt werden!    Do not remove above lines! |
// +--------------------------------------------------------------------------+
*/

require_once("include/bittorrent.php");

hit_start();

if (!mkglobal("id"))
	die();

$id = 0 + $id;
if (!$id)
	die();

dbconn();

hit_count();

loggedinorreturn();

$res = mysql_query("SELECT torrents.*,users.class FROM torrents LEFT JOIN users ON torrents.owner=users.id WHERE torrents.id = $id");
$row = mysql_fetch_array($res);
if (!$row)
	die();

$team=$row["team"];
$grpsel="";
if(get_user_class()<UC_MODERATOR)
  $grpres=mysql_query("select distinct teams.id,teams.name from teams, teammembers where teammembers.teamid=teams.id and teammembers.userid=$CURUSER[id] and teams.typ='crew' group by teams.id order by teams.name");
else
  $grpres=mysql_query("select id,name from teams where typ='crew' order by name");
while($grparr=mysql_fetch_assoc($grpres))
{
  $grpsel.="<option value=\"$grparr[id]\"".($grparr["id"]==$team?" selected":"").">$grparr[name]</option>";
}
$grpsel="<select name=\"team\"><option value=\"0\"".($team==0?" selected":"").">---[ Bitte auswählen ]---</option>$grpsel</select>";

stdhead("Torrent \"" . $row["name"] . "\" bearbeiten");

if (!isset($CURUSER) || !($CURUSER["id"] == $row["owner"] || get_user_class() >= UC_MODERATOR || ($row["activated"] == "no" && get_user_class() == UC_MODERATOR && $row["class"] < UC_MODERATOR))) {
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:650px" class="tableinborder">
 <tr class="tabletitle" width="100%">
  <td colspan="10" width="100%"><span class="normalfont"><center><b> Du darfst diesen Torrent nicht bearbeiten </b></center></span></td>
 </tr><tr><td width="100%" class="tablea">Du bist nicht
 der rechtm&auml;&szlig;ige Besitzer, oder Du bist nicht korrekt
 <a href="login.php?returnto=<?=urlencode($_SERVER["REQUEST_URI"])?>&amp;nowarn=1">eingeloggt</a>.
</td></tr></table>
<?
}
else {
	print("<form method=post action=takeedit.php enctype=multipart/form-data>\n");
	print("<input type=\"hidden\" name=\"id\" value=\"$id\">\n");
	if (isset($_GET["returnto"]))
		print("<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($_GET["returnto"]) . "\" />\n");
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:650px" class="tableinborder">
 <tr class="tabletitle" width="100%">
  <td colspan="10" width="100%"><span class="normalfont"><center><b>Torrent bearbeiten</b></center></span></td>
 </tr>
<?
	tr("Torrent Name", "<input type=\"text\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" size=\"80\" />", 1);
         tr("Info Link", "<input type=\"text\" name=\"infourl\" value=\"" . htmlspecialchars($row["infourl"]) . "\" size=\"80\"><br>(Erweiterter Info Link)\n", 1);
tr("You tube Trailer", "<input type=\"text\" name=\"yout\" value=\"" . htmlspecialchars($row["yout"]) . "\" size=\"80\"><br>(Trailer von You Tube)\n", 1);
         
         tr("Poster", "<input type=text name=poster size=80 value='".$row["poster"]."'><br>(Direct link for a poster image to be shown on the details page)\n", 1);
	tr("NFO Datei", "<input type=radio name=nfoaction value='keep' checked>Aktuelle beibehalten<br>".
	"<input type=radio name=nfoaction value='update'>Ändern:<br><input type=file name=nfo size=60>", 1);
if ((strpos($row["ori_descr"], "<") === false) || (strpos($row["ori_descr"], "&lt;") !== false))
  $c = "";
else
  $c = " checked";



	tr("Beschreibung", "<textarea name=\"descr\" rows=\"15\" cols=\"80\">" . htmlspecialchars($row["ori_descr"]) . "</textarea>".
       "<br><input type=\"checkbox\" name=\"stripasciiart\" value=\"1\"> ASCII-Art automatisch entfernen" .
       "<br>(HTML ist <b>nicht</b> erlaubt. Klick <a href=tags.php>hier</a>, f&uuml;r die Ansicht des BB-Codes.)", 1);

if (get_user_class() >= UC_MODERATOR) {
       tr("Highlight", "<input type='checkbox' name='highlight'" . (($row["highlight"] == "yes") ? " checked='checked'" : "" ) . " value='1' />Als Kino Highlight markieren.", 1);
}

	$s = "<select name=\"type\">\n";

	$cats = genrelist();
	foreach ($cats as $subrow) {
		$s .= "<option value=\"" . $subrow["id"] . "\"";
		if ($subrow["id"] == $row["category"])
			$s .= " selected=\"selected\"";
		$s .= ">" . htmlspecialchars($subrow["name"]) . "</option>\n";
	}

	$s .= "</select>\n";
         tr("Group", $grpsel, 1);
	tr("Type", $s, 1);

$ss="<select name=\"Release1\">\n
<option".(($row["Release1"] == "category") ? " selected" : "" ).">(Kategorie)</option>
<option".(($row["Release1"] == "SVCD") ? " selected" : "" ).">SVCD</option>
<option".(($row["Release1"] == "ONE-SVCD") ? " selected" : "" ).">ONE-SVCD</option>
<option".(($row["Release1"] == "M-VCD") ? " selected" : "" ).">M-VCD</option>
<option".(($row["Release1"] == "Xvid") ? " selected" : "" ).">Xvid</option>
<option".(($row["Release1"] == "DivX") ? " selected" : "" ).">DivX</option>
<option".(($row["Release1"] == "MP4") ? " selected" : "" ).">MP4</option>
<option".(($row["Release1"] == "ratDVD") ? " selected" : "" ).">ratDVD</option>
<option".(($row["Release1"] == "---------(TV)---------") ? " selected" : "" ).">---------(TV)---------</option>
<option".(($row["Release1"] == "DVD") ? " selected" : "" ).">DVD</option>
<option".(($row["Release1"] == "HDTV") ? " selected" : "" ).">HDTV</option>
<option".(($row["Release1"] == "Serien") ? " selected" : "" ).">Serien</option>
<option".(($row["Release1"] == "Dokus") ? " selected" : "" ).">Dokus</option>
<option".(($row["Release1"] == "Sport") ? " selected" : "" ).">Sport</option>
<option".(($row["Release1"] == "Shows") ? " selected" : "" ).">Shows</option>
<option".(($row["Release1"] == "Clips") ? " selected" : "" ).">Clips</option>
<option".(($row["Release1"] == "Windows") ? " selected" : "" ).">Windows</option>
<option".(($row["Release1"] == "---------(Spiele)---------") ? " selected" : "" ).">---------(Spiele)---------</option>
<option".(($row["Release1"] == "X-Box") ? " selected" : "" ).">X-Box</option>
<option".(($row["Release1"] == "X-Box 360") ? " selected" : "" ).">X-Box 360</option>
<option".(($row["Release1"] == "Playstation 1") ? " selected" : "" ).">Playstation 1</option>
<option".(($row["Release1"] == "Playstation 2") ? " selected" : "" ).">Playstation 2</option>
<option".(($row["Release1"] == "Playstation PSP") ? " selected" : "" ).">Playstation PSP</option>
<option".(($row["Release1"] == "Gamecube") ? " selected" : "" ).">Gamecube</option>
<option".(($row["Release1"] == "Dreamcast") ? " selected" : "" ).">Dreamcast</option>
<option".(($row["Release1"] == "Linux") ? " selected" : "" ).">Linux</option>
<option".(($row["Release1"] == "Mac") ? " selected" : "" ).">Mac</option>
<option".(($row["Release1"] == "Cracks&Patches") ? " selected" : "" ).">Cracks&Patches</option>
<option".(($row["Release1"] == "Sonstige") ? " selected" : "" ).">Sonstige</option>
<option".(($row["Release1"] == "---------(Programme)---------") ? " selected" : "" ).">---------(Programme)---------</option>
<option".(($row["Release1"] == "Windows") ? " selected" : "" ).">Windows</option>
<option".(($row["Release1"] == "Linux") ? " selected" : "" ).">Linux</option>
<option".(($row["Release1"] == "Mac") ? " selected" : "" ).">Mac</option>
<option".(($row["Release1"] == "Sonstige") ? " selected" : "" ).">Sonstige</option>
<option".(($row["Release1"] == "---------(Musik)---------") ? " selected" : "" ).">---------(Musik)---------</option>
<option".(($row["Release1"] == "Alben") ? " selected" : "" ).">Alben</option>
<option".(($row["Release1"] == "Charts") ? " selected" : "" ).">Charts</option>
<option".(($row["Release1"] == "Sampler") ? " selected" : "" ).">Sampler</option>
<option".(($row["Release1"] == "Singles") ? " selected" : "" ).">Singles</option>
<option".(($row["Release1"] == "Mixe") ? " selected" : "" ).">Mixe</option>
<option".(($row["Release1"] == "Soundtracks") ? " selected" : "" ).">Soundtracks</option>
<option".(($row["Release1"] == "Videos") ? " selected" : "" ).">Videos</option>
<option".(($row["Release1"] == "Sonstige") ? " selected" : "" ).">Sonstige</option>
<option".(($row["Release1"] == "---------(Bücher)---------") ? " selected" : "" ).">---------(Bücher)---------</option>
<option".(($row["Release1"] == "Ebooks") ? " selected" : "" ).">Ebooks</option>
<option".(($row["Release1"] == "Audiobooks") ? " selected" : "" ).">Audiobooks</option>
<option".(($row["Release1"] == "Comics") ? " selected" : "" ).">Comics</option>
<option".(($row["Release1"] == "---------(Anime)---------") ? " selected" : "" ).">---------(Anime)---------</option>
<option".(($row["Release1"] == "Filme") ? " selected" : "" ).">Filme</option>
<option".(($row["Release1"] == "Serien") ? " selected" : "" ).">Serien</option>
<option".(($row["Release1"] == "Bilder") ? " selected" : "" ).">Bilder</option>
<option".(($row["Release1"] == "---------(Erotik)---------") ? " selected" : "" ).">---------(Erotik)---------</option>
<option".(($row["Release1"] == "Filme") ? " selected" : "" ).">Filme</option>
<option".(($row["Release1"] == "Bilder") ? " selected" : "" ).">Bilder</option>
<option".(($row["Release1"] == "---------(Sonstige)---------") ? " selected" : "" ).">---------(Sonstige)---------</option>
<option".(($row["Release1"] == "Trailer") ? " selected" : "" ).">Trailer</option>
<option".(($row["Release1"] == "Tonspuren") ? " selected" : "" ).">Tonspuren</option>
<option".(($row["Release1"] == "Mobile") ? " selected" : "" ).">Mobile</option>
<option".(($row["Release1"] == "Sonstige") ? " selected" : "" ).">Sonstige</option>
</select>
<select name=\"Release2\">\n
<option".(($row["Release2"] == "(Typen)") ? " selected" : "" ).">(Typen)</option>
<option".(($row["Release2"] == "3GP") ? " selected" : "" ).">3GP</option>
<option".(($row["Release2"] == "ACE") ? " selected" : "" ).">ACE</option>
<option".(($row["Release2"] == "APE") ? " selected" : "" ).">APE</option>
<option".(($row["Release2"] == "ASF") ? " selected" : "" ).">ASF</option>
<option".(($row["Release2"] == "AVI") ? " selected" : "" ).">AVI</option>
<option".(($row["Release2"] == "BIN/CUE") ? " selected" : "" ).">BIN/CUE</option>
<option".(($row["Release2"] == "BMP") ? " selected" : "" ).">BMP</option>
<option".(($row["Release2"] == "CCD") ? " selected" : "" ).">CCD</option>
<option".(($row["Release2"] == "CD-Rom") ? " selected" : "" ).">CD-Rom</option>
<option".(($row["Release2"] == "DAT") ? " selected" : "" ).">DAT</option>
<option".(($row["Release2"] == "DMG") ? " selected" : "" ).">DMG</option>
<option".(($row["Release2"] == "DOC") ? " selected" : "" ).">DOC</option>
<option".(($row["Release2"] == "EXE") ? " selected" : "" ).">EXE</option>
<option".(($row["Release2"] == "FLAC") ? " selected" : "" ).">FLAC</option>
<option".(($row["Release2"] == "GIF") ? " selected" : "" ).">GIF</option>
<option".(($row["Release2"] == "IMG") ? " selected" : "" ).">IMG</option>
<option".(($row["Release2"] == "ISO") ? " selected" : "" ).">ISO</option>
<option".(($row["Release2"] == "IZE") ? " selected" : "" ).">IZE</option>
<option".(($row["Release2"] == "JAR") ? " selected" : "" ).">JAR</option>
<option".(($row["Release2"] == "JPG") ? " selected" : "" ).">JPG</option>
<option".(($row["Release2"] == "LZA") ? " selected" : "" ).">LZA</option>
<option".(($row["Release2"] == "M2V") ? " selected" : "" ).">M2V</option>
<option".(($row["Release2"] == "M4A") ? " selected" : "" ).">M4A</option>
<option".(($row["Release2"] == "M4P") ? " selected" : "" ).">M4P</option>
<option".(($row["Release2"] == "MDF") ? " selected" : "" ).">MDF</option>
<option".(($row["Release2"] == "MKA") ? " selected" : "" ).">MKA</option>
<option".(($row["Release2"] == "MKV") ? " selected" : "" ).">MKV</option>
<option".(($row["Release2"] == "MOV") ? " selected" : "" ).">MOV</option>
<option".(($row["Release2"] == "MP3") ? " selected" : "" ).">MP3</option>
<option".(($row["Release2"] == "MP4") ? " selected" : "" ).">MP4</option>
<option".(($row["Release2"] == "MPC") ? " selected" : "" ).">MPC</option>
<option".(($row["Release2"] == "MPEG") ? " selected" : "" ).">MPEG</option>
<option".(($row["Release2"] == "MPG") ? " selected" : "" ).">MPG</option>
<option".(($row["Release2"] == "MPGA") ? " selected" : "" ).">MPGA</option>
<option".(($row["Release2"] == "NRG") ? " selected" : "" ).">NRG</option>
<option".(($row["Release2"] == "OGG") ? " selected" : "" ).">OGG</option>
<option".(($row["Release2"] == "OGM") ? " selected" : "" ).">OGM</option>
<option".(($row["Release2"] == "PDF") ? " selected" : "" ).">PDF</option>
<option".(($row["Release2"] == "RAR") ? " selected" : "" ).">RAR</option>
<option".(($row["Release2"] == "RIP") ? " selected" : "" ).">RIP</option>
<option".(($row["Release2"] == "RM") ? " selected" : "" ).">RM</option>
<option".(($row["Release2"] == "RMVB") ? " selected" : "" ).">RMVB</option>
<option".(($row["Release2"] == "ROM") ? " selected" : "" ).">ROM</option>
<option".(($row["Release2"] == "TXT") ? " selected" : "" ).">TXT</option>
<option".(($row["Release2"] == "UHA") ? " selected" : "" ).">UHA</option>
<option".(($row["Release2"] == "VOB") ? " selected" : "" ).">VOB</option>
<option".(($row["Release2"] == "WAV") ? " selected" : "" ).">WAV</option>
<option".(($row["Release2"] == "WMA") ? " selected" : "" ).">WMA</option>
<option".(($row["Release2"] == "WMV") ? " selected" : "" ).">WMV</option>
<option".(($row["Release2"] == "ZIP") ? " selected" : "" ).">ZIP</option>
</select>
<select name=\"Release3\">\n
<option".(($row["Release3"] == "(VideoSRC)") ? " selected" : "" ).">(VideoSRC)</option>
<option".(($row["Release3"] == "Cam-Rip") ? " selected" : "" ).">Cam-Rip</option>
<option".(($row["Release3"] == "dTV-Rip") ? " selected" : "" ).">dTV-Rip</option>
<option".(($row["Release3"] == "DVB-Rip") ? " selected" : "" ).">DVB-Rip</option>
<option".(($row["Release3"] == "DVD") ? " selected" : "" ).">DVD</option>
<option".(($row["Release3"] == "DVD-Rip") ? " selected" : "" ).">DVD-Rip</option>
<option".(($row["Release3"] == "DVD-Scr") ? " selected" : "" ).">DVD-Scr</option>
<option".(($row["Release3"] == "HDTV") ? " selected" : "" ).">HDTV</option>
<option".(($row["Release3"] == "HDTV-Rip") ? " selected" : "" ).">HDTV-Rip</option>
<option".(($row["Release3"] == "Sat-Rip") ? " selected" : "" ).">Sat-Rip</option>
<option".(($row["Release3"] == "Telecine") ? " selected" : "" ).">Telecine</option>
<option".(($row["Release3"] == "Telesync") ? " selected" : "" ).">Telesync</option>
<option".(($row["Release3"] == "TV-Rip") ? " selected" : "" ).">TV-Rip</option>
<option".(($row["Release3"] == "VHS-Rip") ? " selected" : "" ).">VHS-Rip</option>
<option".(($row["Release3"] == "Workprint") ? " selected" : "" ).">Workprint</option>
</select>
<select name=\"Release4\">\n
<option".(($row["Release4"] == "(SoundSRC)") ? " selected" : "" ).">(SoundSRC)</option>
<option".(($row["Release4"] == "AC3") ? " selected" : "" ).">AC3</option>
<option".(($row["Release4"] == "dTV-Rip") ? " selected" : "" ).">dTV-Rip</option>
<option".(($row["Release4"] == "DVB-Rip") ? " selected" : "" ).">DVB-Rip</option>
<option".(($row["Release4"] == "DVD") ? " selected" : "" ).">DVD</option>
<option".(($row["Release4"] == "DVD-Rip") ? " selected" : "" ).">DVD-Rip</option>
<option".(($row["Release4"] == "Line Dubbed") ? " selected" : "" ).">Line Dubbed</option>
<option".(($row["Release4"] == "Mic Dubbed") ? " selected" : "" ).">Mic Dubbed</option>
<option".(($row["Release4"] == "Sat-Rip") ? " selected" : "" ).">Sat-Rip</option>
<option".(($row["Release4"] == "TV-Rip") ? " selected" : "" ).">TV-Rip</option>
<option".(($row["Release4"] == "VHS-Rip") ? " selected" : "" ).">VHS-Rip</option>
</select>";
tr("Info´s",$ss." Alle Infos angeben",1);

         $ss="<select name=\"seedspeed\">\n
         <option".(($row["seedspeed"] == "12 KB/s") ? " selected" : "" ).">12 KB/s</option>
         <option".(($row["seedspeed"] == "16 KB/s") ? " selected" : "" ).">16 KB/s</option>
         <option".(($row["seedspeed"] == "20 KB/s") ? " selected" : "" ).">20 KB/s</option>
         <option".(($row["seedspeed"] == "28 KB/s") ? " selected" : "" ).">28 KB/s</option>
         <option".(($row["seedspeed"] == "32 KB/s") ? " selected" : "" ).">32 KB/s</option>
         <option".(($row["seedspeed"] == "44 KB/s") ? " selected" : "" ).">44 KB/s</option>
         <option".(($row["seedspeed"] == "50 KB/s") ? " selected" : "" ).">50 KB/s</option>
         <option".(($row["seedspeed"] == "60 KB/s") ? " selected" : "" ).">60 KB/s</option>
         <option".(($row["seedspeed"] == "70 KB/s") ? " selected" : "" ).">70 KB/s</option>
         <option".(($row["seedspeed"] == "80 KB/s") ? " selected" : "" ).">80 KB/s</option>
         <option".(($row["seedspeed"] == "100 KB/s") ? " selected" : "" ).">100 KB/s</option>
         <option".(($row["seedspeed"] == "200 KB/s") ? " selected" : "" ).">200 KB/s</option>
         <option".(($row["seedspeed"] == "300 KB/s") ? " selected" : "" ).">300 KB/s</option>
         <option".(($row["seedspeed"] == "500 KB/s") ? " selected" : "" ).">500 KB/s</option>
         <option".(($row["seedspeed"] == "1 MB/s") ? " selected" : "" ).">1 MB/s</option>
         <option".(($row["seedspeed"] == "1,5 MB/s") ? " selected" : "" ).">1,5 MB/s</option>
         <option".(($row["seedspeed"] == "2 MB/s") ? " selected" : "" ).">2 MB/s</option>
         <option".(($row["seedspeed"] == "2,5 MB/s") ? " selected" : "" ).">2,5 MB/s</option>
         <option".(($row["seedspeed"] == "3 MB/s") ? " selected" : "" ).">3 MB/s</option>
         <option".(($row["seedspeed"] == "3,5 MB/s") ? " selected" : "" ).">3,5 MB/s</option>
         <option".(($row["seedspeed"] == "4 MB/s") ? " selected" : "" ).">4 MB/s</option>
         <option".(($row["seedspeed"] == "4,5 MB/s") ? " selected" : "" ).">4,5 MB/s</option>
         <option".(($row["seedspeed"] == "5 MB/s") ? " selected" : "" ).">5 MB/s</option>
         <option".(($row["seedspeed"] == "&lt;5 MB/s") ? " selected" : "" ).">&lt;5 MB/s</option>
         </select>";
         tr("Seed Speed",$ss."Wie schnell seedest du das Torrent?",1);
//Multiplikatoreintragung by Underworld
         if(get_user_class()>=UC_MODERATOR){
                tr("Multiplikator ", "<input type=\"text\" size=\"20\" name=\"multi\"><br><b><font color=red>Multiplikator als ganze Zahl</font></b> eintragen</b>".
                "<br><input type=\"checkbox\" name=\"nomulti\" value=\"1\"> Multiplikator entfernen", 1);
                }
         //Eof Multiplikatoreintrag

	tr("Visible", "<input type=\"checkbox\" name=\"visible\"" . (($row["visible"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" /> Sichtbar auf der Startseite<br><table border=0 cellspacing=0 cellpadding=0 width=420><tr><td class=embedded>Bedenken Sie, dass der Torrent automatisch sichtbar werden wird, wenn es einen seeder gibt, und automatisch unsichtbar (Tot) werden wird, wenn es eine Zeit lang keine Seeder gibt. Verwenden Sie diesen Schalter, um den Prozess manuell zu beschleunigen. Bedenken Sie auch, dass unsichtbare (tote) Torrents noch angesehen oder gesucht werden können.</td></tr></table>", 1);

	if ($CURUSER["class"] >= UC_MODERATOR)
       {
	tr("Gebannt", "<input type=\"checkbox\" name=\"banned\"" . (($row["banned"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" /> Diesen Torrent bannen", 1);
         tr("VIP Torrent", "<input type='checkbox' name='vip'" . (($row["vip"] == "yes") ? " checked='checked'" : "" ) . " value='1' /> Wenn dieses eingeschaltet ist, können nur VIP und höher den Torrent saugen", 1);
       }

 if (get_user_class() >= UC_USER) {
         tr("Hat dieser Torrent ein Fehler?", "<input type=radio name=nuked" . ($row["nuked"] == "yes" ? " checked" : "") . " value=yes>Ja <input type=radio name=nuked" .  ($row["nuked"] == "no" ? " checked" : "") . " value=no>Nein <input type=radio name=nuked" . ($row["nuked"] == "unnuked" ? " checked" : "") . " value=unnuked>Unnuked<br><font color=red class=small size=1>Wenn etwas mit dem File ist zb ne rar Datei defekt oder laut einem User zb ein Virus drin oder ähnliches</font>",1);
         tr("Welchen Fehler? ", "<input type=\"text\" size=\"50\" name=\"nukedr\" value=\"" . htmlspecialchars($row["nukedr"]) . "\"><b><font color=red> Grund wenn ein File Fehler bzw Unnuked ist</font></b>", 1);
        tr("Sprache", "<input type=radio name=language" . ($row["language"] == "na" ? " checked" : "") . " value=na>N/A <input type=radio name=language" . ($row["language"] == "deutsch" ? " checked" : "") . " value=deutsch>Deutsch <input type=radio name=language" . ($row["language"] == "englisch" ? " checked" : "") . " value=englisch>Englisch <input type=radio name=language" . ($row["language"] == "französisch" ? " checked" : "") . " value=französisch>Französisch <input type=radio name=language" . ($row["language"] == "japanisch" ? " checked" : "") . " value=japanisch>Japanisch <input type=radio name=language" . ($row["language"] == "multi" ? " checked" : "") . " value=multi>Multi",1);

}
         if(get_user_class()>=UC_MODERATOR)
                 tr("Only Upload", "<input type='checkbox' name='free'" . (($row["free"] == "yes") ? " checked='checked'" : "" ) . " value='1' /> Only Upload (Nur die Upload Stats werden gezählt)", 1);

         if(get_user_class()>=UC_MODERATOR)
                 tr("Freeleech Torrent", "<input type='checkbox' name='freeleech'" . (($row["freeleech"] == "yes") ? " checked='checked'" : "" ) . " value='1' /> Freeleech File (Es werden keine Stats gezählt)", 1);

         if (get_user_class() >= UC_MODERATOR)
                 tr("Empfohlene Torrents", "<input type='checkbox' name='recommended'" . (($row["recommended"] == "yes") ? " checked='checked'" : "" ) . " value='1' /> Hier kannst du den Torrent in die liste der Empfohlenen reinsetzen", 1);

                print("<tr><td class=\"tablea\" colspan=\"2\" align=\"center\"><input type=\"submit\" value='Edit it!' style='height: 25px; width: 100px'> <input type=reset value='Revert changes' style='height: 25px; width: 100px'></td></tr>\n");
             print("</table>\n");
             print("</form>\n");
             print("<br>\n");
             print("<form method=\"post\" action=\"delete.php\">\n");
  print("<table border=\"0\" cellspacing=\"1\" cellpadding=\"4\" style=\"width:650px;\" class=\"tableinborder\">\n");
  print("<tr class=\"tabletitle\"><td colspan=\"2\"><span class=\"normalfont\"><center><b>Torrent löschen.</b> Grund:</b></center></span></td></tr>");
  print("<td class=\"tableb\"><input name=\"reasontype\" type=\"radio\" value=\"1\">&nbsp;Tot </td><td class=\"tablea\"> 0 Seeder, 0 Leecher = 0 Peers gesamt</td></tr>\n");
  print("<tr><td class=\"tableb\"><input name=\"reasontype\" type=\"radio\" value=\"2\">&nbsp;Doppelt</td><td class=\"tablea\"><input type=\"text\" size=\"60\" name=\"reason[]\"></td></tr>\n");
  print("<tr><td class=\"tableb\"><input name=\"reasontype\" type=\"radio\" value=\"3\">&nbsp;Nuked</td><td class=\"tablea\"><input type=\"text\" size=\"60\" name=\"reason[]\"></td></tr>\n");
  print("<tr><td class=\"tableb\"><input name=\"reasontype\" type=\"radio\" value=\"4\">&nbsp;Regelbruch</td><td class=\"tablea\"><input type=\"text\" size=\"60\" name=\"reason[]\">(req)</td></tr>");
  print("<tr><td class=\"tableb\"><input name=\"reasontype\" type=\"radio\" value=\"5\" checked>&nbsp;Anderer</td><td class=\"tablea\"><input type=\"text\" size=\"60\" name=\"reason[]\">(req)</td></tr>\n");
	print("<input type=\"hidden\" name=\"id\" value=\"$id\">\n");
	if (isset($_GET["returnto"]))
		print("<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($_GET["returnto"]) . "\" />\n");
  print("<td class=\"tablea\" colspan=\"2\" align=\"center\"><input type=submit value='Löschen!' style='height: 25px'></td></tr>\n");
  print("</table>");
	print("</form>\n");
	print("</p>\n");
}

stdfoot();

hit_end();

?>