mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
getusertorrentlistajax make_table() return array
This commit is contained in:
@@ -7,7 +7,7 @@ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
|
|||||||
header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
|
header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
|
||||||
header("Cache-Control: no-cache, must-revalidate" );
|
header("Cache-Control: no-cache, must-revalidate" );
|
||||||
header("Pragma: no-cache" );
|
header("Pragma: no-cache" );
|
||||||
header("Content-Type: text/xml; charset=utf-8");
|
//header("Content-Type: text/xml; charset=utf-8");
|
||||||
function maketable($res, $mode = 'seeding')
|
function maketable($res, $mode = 'seeding')
|
||||||
{
|
{
|
||||||
global $lang_getusertorrentlistajax,$CURUSER,$smalldescription_main;
|
global $lang_getusertorrentlistajax,$CURUSER,$smalldescription_main;
|
||||||
@@ -106,7 +106,6 @@ function maketable($res, $mode = 'seeding')
|
|||||||
}
|
}
|
||||||
|
|
||||||
$hrImg = get_hr_img($arr);
|
$hrImg = get_hr_img($arr);
|
||||||
|
|
||||||
//torrent name
|
//torrent name
|
||||||
$dispname = $nametitle = htmlspecialchars($arr["torrentname"]);
|
$dispname = $nametitle = htmlspecialchars($arr["torrentname"]);
|
||||||
$count_dispname=mb_strlen($dispname,"UTF-8");
|
$count_dispname=mb_strlen($dispname,"UTF-8");
|
||||||
@@ -170,7 +169,7 @@ function maketable($res, $mode = 'seeding')
|
|||||||
|
|
||||||
}
|
}
|
||||||
$ret .= "</table>\n";
|
$ret .= "</table>\n";
|
||||||
return $ret;
|
return [$ret, $total_size];
|
||||||
}
|
}
|
||||||
|
|
||||||
$id = intval($_GET['userid'] ?? 0);
|
$id = intval($_GET['userid'] ?? 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user