Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function show_upload_errors()
- {
- global $UploadErrors;
- global $lang;
- global $BASEURL;
- global $pic_base_url;
- if (0 < count($UploadErrors)) {
- $Errors = '';
- foreach ($UploadErrors as $Error) {
- $Errors .= '<img src="' . $pic_base_url . 'error.gif" border="0" alt="" title="" /> ' . $Error . '<br />';
- }
- echo show_notice($Errors, 1, $lang->upload['error']);
- unset($Errors);
- }
- }
- define('TU_VERSION', '3.0.7 by xam');
- define('THIS_SCRIPT', 'upload.php');
- require './global.php';
- if (!isset($CURUSER)) {
- print_no_permission();
- }
- @ini_set('upload_max_filesize', 1000 < $max_torrent_size ? $max_torrent_size : 10485760);
- @ini_set('memory_limit', '20000M');
- $lang->load('upload');
- $TSSEConfig->TSLoadConfig('ANNOUNCE');
- require_once INC_PATH . '/editor.php';
- $ModerateTorrent = ($usergroups['canupload'] == 'moderate' ? true : false);
- $CanUploadExternalTorrent = (($usergroups['canexternal'] == 'yes') && ($externalscrape == 'yes') ? true : false);
- $AnnounceURL = trim($xbt_active == 'yes' ? $xbt_announce_url . '/' . $CURUSER['torrent_pass'] . '/announce' : $announce_urls[0] . '?passkey=' . $CURUSER['torrent_pass']);
- $postoptions = '';
- $postoptionstitle = '';
- $UploadErrors = [];
- if (isset($_GET['id']) && is_valid_id($_GET['id'])) {
- if ($EditTorrentID = intval(TS_Global('id'))) {
- $Query = sql_query('SELECT * FROM torrents WHERE id = ' . sqlesc($EditTorrentID));
- if (mysqli_num_rows($Query)) {
- $EditTorrent = mysqli_fetch_assoc($Query);
- if (($EditTorrent['owner'] != $CURUSER['id']) && !$is_mod) {
- print_no_permission(true);
- }
- $name = $EditTorrent['name'];
- $descr = $EditTorrent['descr'];
- $IsExternalTorrent = (($EditTorrent['ts_external'] == 'yes') && $CanUploadExternalTorrent ? true : false);
- $category = intval($EditTorrent['category']);
- $t_image_url = $EditTorrent['t_image'];
- $t_link = $EditTorrent['t_link'];
- if ($t_link) {
- preg_match('@https://www.imdb.com/title/(.*)/@Us', $t_link, $result);
- if ($result && isset($result[1]) && $result[1]) {
- $t_link = 'https://www.imdb.com/title/' . $result[1];
- }
- unset($result);
- }
- $offensive = $EditTorrent['offensive'];
- $anonymous = $EditTorrent['anonymous'];
- $free = $EditTorrent['free'];
- $silver = $EditTorrent['silver'];
- $doubleupload = $EditTorrent['doubleupload'];
- $allowcomments = $EditTorrent['allowcomments'];
- $sticky = $EditTorrent['sticky'];
- $isrequest = $EditTorrent['isrequest'];
- $isnuked = $EditTorrent['isnuked'];
- $WhyNuked = $EditTorrent['WhyNuked'];
- if ($usergroups['canuploadddl'] == 'yes') {
- $directdownloadlink = $EditTorrent['directdownloadlink'];
- }
- if ($use_torrent_details == 'yes') {
- $query = sql_query('SELECT video_info,audio_info FROM ts_torrents_details WHERE tid = ' . sqlesc($EditTorrentID));
- if (mysqli_num_rows($query)) {
- $Result = mysqli_fetch_assoc($query);
- $videot = explode('~', $Result['video_info']);
- $video['codec'] = (isset($videot[0]) ? $videot[0] : '');
- $video['bitrate'] = (isset($videot[1]) ? $videot[1] : '');
- $video['resulation'] = (isset($videot[2]) ? $videot[2] : '');
- $video['length'] = (isset($videot[3]) ? $videot[3] : '');
- $video['quality'] = (isset($videot[4]) ? $videot[4] : '');
- $audiot = explode('~', $Result['audio_info']);
- $audio['codec'] = (isset($audiot[0]) ? $audiot[0] : '');
- $audio['bitrate'] = (isset($audiot[1]) ? $audiot[1] : '');
- $audio['frequency'] = (isset($audiot[2]) ? $audiot[2] : '');
- $audio['language'] = (isset($audiot[3]) ? $audiot[3] : '');
- }
- }
- }
- else {
- print_no_permission();
- }
- }
- else {
- print_no_permission();
- }
- }
- if ($usergroups['canupload'] == 'no') {
- print_no_permission(false, true, $lang->upload['uploaderform']);
- ................................................................................
- ...................................................
- .................
Add Comment
Please, Sign In to add comment