Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

upload.php 983B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?
  2. // echo out the slice of the form needed for the selected upload type ($_GET['section']).
  3. // Include the necessary form class
  4. include(SERVER_ROOT.'/classes/torrent_form.class.php');
  5. $TorrentForm = new TORRENT_FORM();
  6. $GenreTags = $Cache->get_value('genre_tags');
  7. if (!$GenreTags) {
  8. $DB->query('
  9. SELECT Name
  10. FROM tags
  11. WHERE TagType=\'genre\'
  12. ORDER BY Name');
  13. $GenreTags = $DB->collect('Name');
  14. $Cache->cache_value('genre_tags', $GenreTags, 3600 * 24);
  15. }
  16. $UploadForm = $Categories[$_GET['categoryid']];
  17. switch ($UploadForm) {
  18. case 'Movies':
  19. $TorrentForm->movies_form($GenreTags);
  20. break;
  21. case 'Anime':
  22. $TorrentForm->anime_form($_GET['categoryid']);
  23. break;
  24. case 'Manga':
  25. $TorrentForm->manga_form($_GET['categoryid']);
  26. break;
  27. case 'Games':
  28. $TorrentForm->game_form($_GET['categoryid']);
  29. break;
  30. case 'Other':
  31. $TorrentForm->simple_form($_GET['categoryid']);
  32. break;
  33. default:
  34. echo 'Invalid action!';
  35. }
  36. ?>