mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-24 23:25:48 -07:00
Updated
This commit is contained in:
parent
c63bf02149
commit
28fe3e1afe
2 changed files with 41 additions and 3 deletions
36
library/ajax/ffprobe_info.php
Normal file
36
library/ajax/ffprobe_info.php
Normal 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';
|
|
@ -9,9 +9,6 @@
|
||||||
file_index: file_index
|
file_index: file_index
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
ajax.callback.ffprobe_info = function (data) {
|
|
||||||
$('#cache').html(data.cache_html);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<table class="forumline">
|
<table class="forumline">
|
||||||
|
@ -26,6 +23,11 @@
|
||||||
<!-- BEGIN m3ulist -->
|
<!-- BEGIN m3ulist -->
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="{m3ulist.ROW_CLASS} tCenter">
|
<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>{m3ulist.ROW_NUMBER}</td>
|
||||||
<td width="40%"><b>{m3ulist.TITLE}</b>
|
<td width="40%"><b>{m3ulist.TITLE}</b>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue