Guest User

Untitled

a guest
Jul 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. ?>
  2. <div align="center">
  3. <form enctype="multipart/form-data" action="takeupload.php" method="post">
  4. <input type="hidden" name="MAX_FILE_SIZE" value="<?=$max_torrent_size?>" />
  5. <p>The tracker's announce url is <b><?= $announce_urls[0] ?></b></p>
  6.  
  7. <?
  8. begin_frame("Upload",false,10,false);
  9. begin_table(true);
  10. tr("Torrent file", "<input type=\"file\" name=\"file\" size=\"80\" />\n", 1);
  11. 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);
  12. 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);
  13. 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);
  14. tr("NFO file", "<input type=\"file\" name=\"nfo\" size=\"80\" /><br />(<b>Optional.</b> Can only be viewed by power users.)\n", 1);
  15. tr("Description", "<textarea name=\"descr\" rows=\"10\" cols=\"80\"></textarea>" .
  16. "<br />(HTML/BB code is <b>not</b> allowed.)", 1);
  17.  
  18. //==== offer dropdown for offer mod from code by S4NE
  19. $res66 = mysql_query("SELECT id, name, allowed FROM offers WHERE userid = $CURUSER[id] ORDER BY name ASC") or sqlerr(__FILE__, __LINE__);
  20. if (mysql_num_rows($res66) > 0) {
  21. $offer = "<select name=offer><option value=0>Your Offers</option>";
  22. while($row66 = mysql_fetch_array($res66)) {
  23. if ($row66["allowed"] == 'allowed')
  24. $offer .= "<option value=\"" . $row66["id"] . "\">" . htmlspecialchars($row66["name"]) . "</option>";
  25. }
  26. $offer .= "</select>";
  27. tr("Offer", $offer."<br> If you are uploading one of your offers please select it here so the voters will be notified." , 1);
  28. }
  29. //===end
  30. $viponly = "<select name=\"VIP\">\n<option value=\"no\">No</option>\n<option value=\"yes\">Yes</option>\n</select>\n";
  31. tr("VIP", $viponly, 1);
  32.  
  33. $cats = genrelist();
  34. foreach ($cats as $row)
  35. $s .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["name"]) . "</option>\n";
  36.  
  37. $s .= "</select>\n";
  38. tr("Type", $s, 1);
  39. ?>
  40. <tr><td align="center" class="row2" colspan="2"><input type="submit" class="btn" value="Do it!" /></td></tr>
  41. <? end_table();
  42. end_frame();
  43. ?>
  44. </form>
  45. </div>
  46. <?
  47.  
  48. stdfoot();
  49.  
  50. ?>
Add Comment
Please, Sign In to add comment