print "<br /><br /><b>ATTENTION</b>: Max. Torrent Size not set. Please contact the administrator about this problem!"; } ?> </td> </tr> <?php tr($lang_upload['row_torrent_file'] . "<font color=\"red\">*</font>", "<input type=\"file\" class=\"file\" id=\"torrent\" name=\"file\" onchange=\"getname()\" />\n", 1); if ($altname_main == 'yes') { tr($lang_upload['row_torrent_name'], "<b>" . $lang_upload['text_english_title'] . "</b> <input type=\"text\" style=\"width: 250px;\" name=\"name\" /> \n<b>" . $lang_upload['text_chinese_title'] . "</b> <input type=\"text\" style=\"width: 250px\" name=\"cnname\"><br /><font class=\"medium\">" . $lang_upload['text_titles_note'] . "</font>", 1); } else { tr($lang_upload['row_torrent_name'], "<input type=\"text\" style=\"width: 650px;\" id=\"name\" name=\"name\" /><br /><font class=\"medium\">" . $lang_upload['text_torrent_name_note'] . "</font>", 1); } if ($smalldescription_main == 'yes') { tr($lang_upload['row_small_description'], "<input type=\"text\" style=\"width: 650px;\" name=\"small_descr\" /><br /><font class=\"medium\">" . $lang_upload['text_small_description_note'] . "</font>", 1); } get_external_tr(); if ($enablenfo_main == 'yes') { tr($lang_upload['row_nfo_file'], "<input type=\"file\" class=\"file\" name=\"nfo\" /><br /><font class=\"medium\">" . $lang_upload['text_only_viewed_by'] . get_user_class_name($viewnfo_class, false, true, true) . $lang_upload['text_or_above'] . "</font>", 1); } print "<tr><td class=\"rowhead\" style='padding: 3px' valign=\"top\">" . $lang_upload['row_description'] . "<font color=\"red\">*</font></td><td class=\"rowfollow\">"; textbbcode("upload", "descr", "", false); print "</td></tr>\n"; if ($allowtorrents) { $disablespecial = " onchange=\"disableother('browsecat','specialcat')\""; $s = "<select name=\"type\" id=\"browsecat\" " . ($allowtwosec ? $disablespecial : "") . ">\n<option value=\"0\">" . $lang_upload['select_choose_one'] . "</option>\n"; $cats = genrelist($browsecatmode); foreach ($cats as $row) { $s .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["name"]) . "</option>\n"; } $s .= "</select>\n"; } else {
} ?> </td> </tr> <?php tr($lang_upload['row_torrent_file'] . "<font color=\"red\">*</font>", "<input type=\"file\" class=\"file\" id=\"torrent\" name=\"file\" onchange=\"getname()\" />\n", 1); if ($altname_main == 'yes') { tr($lang_upload['row_torrent_name'], "<b>" . $lang_upload['text_english_title'] . "</b> <input type=\"text\" style=\"width: 250px;\" name=\"name\" /> \n<b>" . $lang_upload['text_chinese_title'] . "</b> <input type=\"text\" style=\"width: 250px\" name=\"cnname\"><br /><font class=\"medium\">" . $lang_upload['text_titles_note'] . "</font>", 1); } else { tr($lang_upload['row_torrent_name'], "<input type=\"text\" style=\"width: 650px;\" id=\"name\" name=\"name\" /><br /><font class=\"medium\">" . $lang_upload['text_torrent_name_note'] . "</font>", 1); } if ($smalldescription_main == 'yes') { tr($lang_upload['row_small_description'], "<input type=\"text\" style=\"width: 650px;\" name=\"small_descr\" /><br /><font class=\"medium\">" . $lang_upload['text_small_description_note'] . "</font>", 1); } get_external_tr(); get_external_tr("", "douban"); if ($enablenfo_main == 'yes') { tr($lang_upload['row_nfo_file'], "<input type=\"file\" class=\"file\" name=\"nfo\" /><br /><font class=\"medium\">" . $lang_upload['text_only_viewed_by'] . get_user_class_name($viewnfo_class, false, true, true) . $lang_upload['text_or_above'] . "</font>", 1); } print "<tr><td class=\"rowhead\" style='padding: 3px' valign=\"top\">" . $lang_upload['row_description'] . "<font color=\"red\">*</font></td><td class=\"rowfollow\">"; textbbcode("upload", "descr", "", false); print "</td></tr>\n"; if ($allowtorrents) { $disablespecial = " onchange=\"disableother('browsecat','specialcat')\""; $s = "<select name=\"type\" id=\"browsecat\" " . ($allowtwosec ? $disablespecial : "") . ">\n<option value=\"0\">" . $lang_upload['select_choose_one'] . "</option>\n"; $cats = genrelist($browsecatmode); foreach ($cats as $row) { $s .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["name"]) . "</option>\n"; } $s .= "</select>\n"; } else {
if (!isset($CURUSER) || $CURUSER["id"] != $row["owner"] && get_user_class() < $torrentmanage_class) { print "<h1 align=\"center\">" . $lang_edit['text_cannot_edit_torrent'] . "</h1>"; print "<p>" . $lang_edit['text_cannot_edit_torrent_note'] . "</p>"; } else { print "<form method=\"post\" id=\"compose\" name=\"edittorrent\" action=\"takeedit.php\" enctype=\"multipart/form-data\">"; print "<input type=\"hidden\" name=\"id\" value=\"{$id}\" />"; if (isset($_GET["returnto"])) { print "<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($_GET["returnto"]) . "\" />"; } print "<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\" width=\"940\">\n"; print "<tr><td class='colhead' colspan='2' align='center'>" . htmlspecialchars($row["name"]) . "</td></tr>"; tr($lang_edit['row_torrent_name'] . "<font color=\"red\">*</font>", "<input type=\"text\" style=\"width: 650px;\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" />", 1); if ($smalldescription_main == 'yes') { tr($lang_edit['row_small_description'], "<input type=\"text\" style=\"width: 650px;\" name=\"small_descr\" value=\"" . htmlspecialchars($row["small_descr"]) . "\" />", 1); } get_external_tr($row["url"]); if ($enablenfo_main == 'yes') { tr($lang_edit['row_nfo_file'], "<font class=\"medium\"><input type=\"radio\" name=\"nfoaction\" value=\"keep\" checked=\"checked\" />" . $lang_edit['radio_keep_current'] . "<input type=\"radio\" name=\"nfoaction\" value=\"remove\" />" . $lang_edit['radio_remove'] . "<input id=\"nfoupdate\" type=\"radio\" name=\"nfoaction\" value=\"update\" />" . $lang_edit['radio_update'] . "</font><br /><input type=\"file\" name=\"nfo\" onchange=\"document.getElementById('nfoupdate').checked=true\" />", 1); } print "<tr><td class=\"rowhead\">" . $lang_edit['row_description'] . "<font color=\"red\">*</font></td><td class=\"rowfollow\">"; textbbcode("edittorrent", "descr", $row["descr"], false); print "</td></tr>"; $s = "<select name=\"type\" id=\"oricat\">"; $cats = genrelist($sectionmode); foreach ($cats as $subrow) { $s .= "<option value=\"" . $subrow["id"] . "\""; if ($subrow["id"] == $row["category"]) { $s .= " selected=\"selected\""; } $s .= ">" . htmlspecialchars($subrow["name"]) . "</option>\n"; }
print "<h1 align=\"center\">" . $lang_edit['text_cannot_edit_torrent'] . "</h1>"; print "<p>" . $lang_edit['text_cannot_edit_torrent_note'] . "</p>"; } else { print "<form method=\"post\" id=\"compose\" name=\"edittorrent\" action=\"takeedit.php\" enctype=\"multipart/form-data\">"; print "<input type=\"hidden\" name=\"id\" value=\"{$id}\" />"; if (isset($_GET["returnto"])) { print "<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($_GET["returnto"]) . "\" />"; } print "<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\" width=\"940\">\n"; print "<tr><td class='colhead' colspan='2' align='center'>" . htmlspecialchars($row["name"]) . "</td></tr>"; tr($lang_edit['row_torrent_name'] . "<font color=\"red\">*</font>", "<input type=\"text\" style=\"width: 650px;\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" />", 1); if ($smalldescription_main == 'yes') { tr($lang_edit['row_small_description'], "<input type=\"text\" style=\"width: 650px;\" name=\"small_descr\" value=\"" . htmlspecialchars($row["small_descr"]) . "\" />", 1); } get_external_tr($row["url"], "imdb"); get_external_tr($row["douban_url"], "douban"); if ($enablenfo_main == 'yes') { tr($lang_edit['row_nfo_file'], "<font class=\"medium\"><input type=\"radio\" name=\"nfoaction\" value=\"keep\" checked=\"checked\" />" . $lang_edit['radio_keep_current'] . "<input type=\"radio\" name=\"nfoaction\" value=\"remove\" />" . $lang_edit['radio_remove'] . "<input id=\"nfoupdate\" type=\"radio\" name=\"nfoaction\" value=\"update\" />" . $lang_edit['radio_update'] . "</font><br /><input type=\"file\" name=\"nfo\" onchange=\"document.getElementById('nfoupdate').checked=true\" />", 1); } print "<tr><td class=\"rowhead\">" . $lang_edit['row_description'] . "<font color=\"red\">*</font></td><td class=\"rowfollow\">"; textbbcode("edittorrent", "descr", $row["descr"], false); print "</td></tr>"; $s = "<select name=\"type\" id=\"oricat\">"; $cats = genrelist($sectionmode); foreach ($cats as $subrow) { $s .= "<option value=\"" . $subrow["id"] . "\""; if ($subrow["id"] == $row["category"]) { $s .= " selected=\"selected\""; } $s .= ">" . htmlspecialchars($subrow["name"]) . "</option>\n"; }