Guest User

Untitled

a guest
Dec 12th, 2021
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function show_upload_errors()
  15. {
  16. global $UploadErrors;
  17. global $lang;
  18. global $BASEURL;
  19. global $pic_base_url;
  20.  
  21. if (0 < count($UploadErrors)) {
  22. $Errors = '';
  23.  
  24. foreach ($UploadErrors as $Error) {
  25. $Errors .= '<img src="' . $pic_base_url . 'error.gif" border="0" alt="" title="" /> ' . $Error . '<br />';
  26. }
  27.  
  28. echo show_notice($Errors, 1, $lang->upload['error']);
  29. unset($Errors);
  30. }
  31. }
  32.  
  33. define('TU_VERSION', '3.0.7 by xam');
  34. define('THIS_SCRIPT', 'upload.php');
  35. require './global.php';
  36.  
  37. if (!isset($CURUSER)) {
  38. print_no_permission();
  39. }
  40.  
  41. @ini_set('upload_max_filesize', 1000 < $max_torrent_size ? $max_torrent_size : 10485760);
  42. @ini_set('memory_limit', '20000M');
  43. $lang->load('upload');
  44. $TSSEConfig->TSLoadConfig('ANNOUNCE');
  45. require_once INC_PATH . '/editor.php';
  46. $ModerateTorrent = ($usergroups['canupload'] == 'moderate' ? true : false);
  47. $CanUploadExternalTorrent = (($usergroups['canexternal'] == 'yes') && ($externalscrape == 'yes') ? true : false);
  48. $AnnounceURL = trim($xbt_active == 'yes' ? $xbt_announce_url . '/' . $CURUSER['torrent_pass'] . '/announce' : $announce_urls[0] . '?passkey=' . $CURUSER['torrent_pass']);
  49. $postoptions = '';
  50. $postoptionstitle = '';
  51. $UploadErrors = [];
  52. if (isset($_GET['id']) && is_valid_id($_GET['id'])) {
  53. if ($EditTorrentID = intval(TS_Global('id'))) {
  54. $Query = sql_query('SELECT * FROM torrents WHERE id = ' . sqlesc($EditTorrentID));
  55.  
  56. if (mysqli_num_rows($Query)) {
  57. $EditTorrent = mysqli_fetch_assoc($Query);
  58. if (($EditTorrent['owner'] != $CURUSER['id']) && !$is_mod) {
  59. print_no_permission(true);
  60. }
  61.  
  62. $name = $EditTorrent['name'];
  63. $descr = $EditTorrent['descr'];
  64. $IsExternalTorrent = (($EditTorrent['ts_external'] == 'yes') && $CanUploadExternalTorrent ? true : false);
  65. $category = intval($EditTorrent['category']);
  66. $t_image_url = $EditTorrent['t_image'];
  67. $t_link = $EditTorrent['t_link'];
  68.  
  69. if ($t_link) {
  70. preg_match('@https://www.imdb.com/title/(.*)/@Us', $t_link, $result);
  71. if ($result && isset($result[1]) && $result[1]) {
  72. $t_link = 'https://www.imdb.com/title/' . $result[1];
  73. }
  74.  
  75. unset($result);
  76. }
  77.  
  78. $offensive = $EditTorrent['offensive'];
  79. $anonymous = $EditTorrent['anonymous'];
  80. $free = $EditTorrent['free'];
  81. $silver = $EditTorrent['silver'];
  82. $doubleupload = $EditTorrent['doubleupload'];
  83. $allowcomments = $EditTorrent['allowcomments'];
  84. $sticky = $EditTorrent['sticky'];
  85. $isrequest = $EditTorrent['isrequest'];
  86. $isnuked = $EditTorrent['isnuked'];
  87. $WhyNuked = $EditTorrent['WhyNuked'];
  88.  
  89. if ($usergroups['canuploadddl'] == 'yes') {
  90. $directdownloadlink = $EditTorrent['directdownloadlink'];
  91. }
  92.  
  93. if ($use_torrent_details == 'yes') {
  94. $query = sql_query('SELECT video_info,audio_info FROM ts_torrents_details WHERE tid = ' . sqlesc($EditTorrentID));
  95.  
  96. if (mysqli_num_rows($query)) {
  97. $Result = mysqli_fetch_assoc($query);
  98. $videot = explode('~', $Result['video_info']);
  99. $video['codec'] = (isset($videot[0]) ? $videot[0] : '');
  100. $video['bitrate'] = (isset($videot[1]) ? $videot[1] : '');
  101. $video['resulation'] = (isset($videot[2]) ? $videot[2] : '');
  102. $video['length'] = (isset($videot[3]) ? $videot[3] : '');
  103. $video['quality'] = (isset($videot[4]) ? $videot[4] : '');
  104. $audiot = explode('~', $Result['audio_info']);
  105. $audio['codec'] = (isset($audiot[0]) ? $audiot[0] : '');
  106. $audio['bitrate'] = (isset($audiot[1]) ? $audiot[1] : '');
  107. $audio['frequency'] = (isset($audiot[2]) ? $audiot[2] : '');
  108. $audio['language'] = (isset($audiot[3]) ? $audiot[3] : '');
  109. }
  110. }
  111. }
  112. else {
  113. print_no_permission();
  114. }
  115. }
  116. else {
  117. print_no_permission();
  118. }
  119. }
  120.  
  121. if ($usergroups['canupload'] == 'no') {
  122. print_no_permission(false, true, $lang->upload['uploaderform']);
  123. ................................................................................
  124. ...................................................
  125. .................
Add Comment
Please, Sign In to add comment