This commit is contained in:
Roman Kelesidis 2024-08-31 20:06:20 +07:00
commit 28fe3e1afe
2 changed files with 41 additions and 3 deletions

View file

@ -0,0 +1,36 @@
<?php
/**
* TorrentPier Bull-powered BitTorrent tracker engine
*
* @copyright Copyright (c) 2005-2024 TorrentPier (https://torrentpier.com)
* @link https://github.com/torrentpier/torrentpier for the canonical source repository
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
*/
if (!defined('IN_AJAX')) {
die(basename(__FILE__));
}
global $bb_cfg, $lang;
if (!$bb_cfg['torr_server']['enabled']) {
$this->ajax_die($lang['MODULE_OFF']);
}
if (!$attach_id = (int)$this->request['attach_id']) {
$this->ajax_die($lang['INVALID_ATTACH_ID']);
}
if (!$file_index = (int)$this->request['file_index']) {
$this->ajax_die('Invalid file index');
}
if (!$info_hash = (string)$this->request['info_hash']) {
$this->ajax_die('Invalid info_hash');
}
dump($attach_id);
dump($file_index);
dump($info_hash);
$this->response['ffprobe_data'] = '123';

View file

@ -9,9 +9,6 @@
file_index: file_index
});
};
ajax.callback.ffprobe_info = function (data) {
$('#cache').html(data.cache_html);
}
</script>
<table class="forumline">
@ -26,6 +23,11 @@
<!-- BEGIN m3ulist -->
<tbody>
<tr class="{m3ulist.ROW_CLASS} tCenter">
<script type="text/javascript">
ajax.callback.ffprobe_info = function (data) {
$('#ffprobe_{m3ulist.ROW_NUMBER}').html(data.ffprobe_data);
}
</script>
<td>{m3ulist.ROW_NUMBER}</td>
<td width="40%"><b>{m3ulist.TITLE}</b>
<hr>