Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?>
- <div align="center">
- <form enctype="multipart/form-data" action="takeupload.php" method="post">
- <input type="hidden" name="MAX_FILE_SIZE" value="<?=$max_torrent_size?>" />
- <p>The tracker's announce url is <b><?= $announce_urls[0] ?></b></p>
- <?
- begin_frame("Upload",false,10,false);
- begin_table(true);
- tr("Torrent file", "<input type=\"file\" name=\"file\" size=\"80\" />\n", 1);
- tr("Torrent name", "<input type=\"text\" name=\"name\" size=\"80\" /><br />(Taken from filename if not specified. <b>Please use descriptive names.</b>)\n", 1);
- tr("Small Description", "<input type=\"text\" name=\"description\" size=\"80\" /><b></b><br>Small Description for the uploaded file (Example: A good movie!!!)<br>This Description is shown in browse.php under the Torrentname.", 1);
- tr("Poster", "<input type=text name=poster size=80><br>(Direct link for a poster image to be shown on the details page)\n", 1);
- tr("NFO file", "<input type=\"file\" name=\"nfo\" size=\"80\" /><br />(<b>Optional.</b> Can only be viewed by power users.)\n", 1);
- tr("Description", "<textarea name=\"descr\" rows=\"10\" cols=\"80\"></textarea>" .
- "<br />(HTML/BB code is <b>not</b> allowed.)", 1);
- //==== offer dropdown for offer mod from code by S4NE
- $res66 = mysql_query("SELECT id, name, allowed FROM offers WHERE userid = $CURUSER[id] ORDER BY name ASC") or sqlerr(__FILE__, __LINE__);
- if (mysql_num_rows($res66) > 0) {
- $offer = "<select name=offer><option value=0>Your Offers</option>";
- while($row66 = mysql_fetch_array($res66)) {
- if ($row66["allowed"] == 'allowed')
- $offer .= "<option value=\"" . $row66["id"] . "\">" . htmlspecialchars($row66["name"]) . "</option>";
- }
- $offer .= "</select>";
- tr("Offer", $offer."<br> If you are uploading one of your offers please select it here so the voters will be notified." , 1);
- }
- //===end
- $viponly = "<select name=\"VIP\">\n<option value=\"no\">No</option>\n<option value=\"yes\">Yes</option>\n</select>\n";
- tr("VIP", $viponly, 1);
- $cats = genrelist();
- foreach ($cats as $row)
- $s .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["name"]) . "</option>\n";
- $s .= "</select>\n";
- tr("Type", $s, 1);
- ?>
- <tr><td align="center" class="row2" colspan="2"><input type="submit" class="btn" value="Do it!" /></td></tr>
- <? end_table();
- end_frame();
- ?>
- </form>
- </div>
- <?
- stdfoot();
- ?>
Add Comment
Please, Sign In to add comment