mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
php 7 future
This commit is contained in:
parent
e5fab725e1
commit
efcd7ae71f
34 changed files with 649 additions and 654 deletions
|
@ -48,18 +48,18 @@ function build_tor_filelist ($file_contents)
|
|||
|
||||
class torrent
|
||||
{
|
||||
var $tor_decoded = array();
|
||||
var $files_ary = array('/' => '');
|
||||
var $multiple = null;
|
||||
var $root_dir = '';
|
||||
var $files_html = '';
|
||||
public $tor_decoded = array();
|
||||
public $files_ary = array('/' => '');
|
||||
public $multiple = null;
|
||||
public $root_dir = '';
|
||||
public $files_html = '';
|
||||
|
||||
function torrent ($decoded_file_contents)
|
||||
public function __construct ($decoded_file_contents)
|
||||
{
|
||||
$this->tor_decoded = $decoded_file_contents;
|
||||
}
|
||||
|
||||
function get_filelist ()
|
||||
public function get_filelist ()
|
||||
{
|
||||
$this->build_filelist_array();
|
||||
|
||||
|
@ -79,7 +79,7 @@ class torrent
|
|||
}
|
||||
}
|
||||
|
||||
function build_filelist_array ()
|
||||
public function build_filelist_array ()
|
||||
{
|
||||
$info = $this->tor_decoded['info'];
|
||||
|
||||
|
@ -154,7 +154,7 @@ class torrent
|
|||
}
|
||||
}
|
||||
|
||||
function build_file_item ($name, $length)
|
||||
public function build_file_item ($name, $length)
|
||||
{
|
||||
global $bb_cfg, $images, $lang;
|
||||
|
||||
|
@ -169,7 +169,7 @@ class torrent
|
|||
return "$name <i>$length</i> $magnet_name $magnet_ext";
|
||||
}
|
||||
|
||||
function build_filelist_html ()
|
||||
public function build_filelist_html ()
|
||||
{
|
||||
global $html;
|
||||
return $html->array2html($this->files_ary);
|
||||
|
@ -183,4 +183,4 @@ function clean_tor_dirname ($dirname)
|
|||
|
||||
if ($bnc_error) $tor_filelist = '<b style="color: #993300;">'.$lang['ERROR_BUILD'].'</b><br /><br />'.$tor_filelist;
|
||||
|
||||
$this->response['html'] = $tor_filelist;
|
||||
$this->response['html'] = $tor_filelist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue