From 5a5733cf0b8d07cf6833853dc3dd05fbf4c1b849 Mon Sep 17 00:00:00 2001 From: xiaomlove <353856593@qq.com> Date: Tue, 22 Jun 2021 15:55:52 +0800 Subject: [PATCH] getusertorrentlistajax make_table() return array --- public/getusertorrentlistajax.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/getusertorrentlistajax.php b/public/getusertorrentlistajax.php index 8ec54bed..d00e95d0 100644 --- a/public/getusertorrentlistajax.php +++ b/public/getusertorrentlistajax.php @@ -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("Cache-Control: no-cache, must-revalidate" ); 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') { global $lang_getusertorrentlistajax,$CURUSER,$smalldescription_main; @@ -106,7 +106,6 @@ function maketable($res, $mode = 'seeding') } $hrImg = get_hr_img($arr); - //torrent name $dispname = $nametitle = htmlspecialchars($arr["torrentname"]); $count_dispname=mb_strlen($dispname,"UTF-8"); @@ -170,7 +169,7 @@ function maketable($res, $mode = 'seeding') } $ret .= "\n"; - return $ret; + return [$ret, $total_size]; } $id = intval($_GET['userid'] ?? 0);