From eccc182e33138d09789e923b64473c81b16c925f Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sat, 7 May 2022 22:11:24 +0800 Subject: [PATCH] remove ad id & fix claim pager params --- include/functions.php | 8 ++++---- public/claim.php | 2 +- public/details.php | 2 +- public/forums.php | 4 ++-- public/fun.php | 2 +- public/shoutbox.php | 6 +++--- public/torrents.php | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/functions.php b/include/functions.php index 73eb9c65..222d5207 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2500,7 +2500,7 @@ else enable_ad()){ $headerad=$Advertisement->get_ad('header'); if ($headerad){ - echo "".$headerad[0].""; + echo "".$headerad[0].""; } } if ($enabledonation == 'yes'){?> @@ -2640,7 +2640,7 @@ else { if ($Advertisement->enable_ad()){ $belownavad=$Advertisement->get_ad('belownav'); if ($belownavad) - echo "
".$belownavad[0]."
"; + echo "
".$belownavad[0]."
"; } if ($msgalert) { @@ -2765,7 +2765,7 @@ function stdfoot() { if ($Advertisement->enable_ad()){ $footerad=$Advertisement->get_ad('footer'); if ($footerad) - echo "
".$footerad[0]."
"; + echo "
".$footerad[0]."
"; } print("
"); if ($CURUSER){ @@ -3071,7 +3071,7 @@ function commenttable($rows, $type, $parent_id, $review = false) { if ($Advertisement->enable_ad()){ if (!empty($commentad[$count-1])) - echo "
".$commentad[$count-1]."
"; + echo "
".$commentad[$count-1]."
"; } } print("
#" . $row["id"] . "  ".$lang_functions['text_by'].""); diff --git a/public/claim.php b/public/claim.php index 29106a44..9161020c 100644 --- a/public/claim.php +++ b/public/claim.php @@ -54,7 +54,7 @@ JS; begin_main_frame(); $total = (clone $query)->count(); -list($pagertop, $pagerbottom, $limit, $offset, $pageSize) = pager(50, $total, $pagerParam); +list($pagertop, $pagerbottom, $limit, $offset, $pageSize) = pager(50, $total, "$pagerParam&"); $list = (clone $query)->with(['user', 'torrent', 'snatch'])->offset($offset)->limit($pageSize)->orderBy('id', 'desc')->get(); print(""); print(" diff --git a/public/details.php b/public/details.php index e744affe..50b7352f 100644 --- a/public/details.php +++ b/public/details.php @@ -237,7 +237,7 @@ JS; if ($CURUSER['showdescription'] != 'no' && !empty($row["descr"])){ $torrentdetailad=$Advertisement->get_ad('torrentdetail'); - tr("\"Show/Hide\" ".$lang_details['row_description']."", "
".($Advertisement->enable_ad() && $torrentdetailad ? "
".$torrentdetailad[0]."
" : "").format_comment($row["descr"])."
", 1); + tr("\"Show/Hide\" ".$lang_details['row_description']."", "
".($Advertisement->enable_ad() && $torrentdetailad ? "
".$torrentdetailad[0]."
" : "").format_comment($row["descr"])."
", 1); } if (get_user_class() >= $viewnfo_class && $CURUSER['shownfo'] != 'no' && $row["nfosz"] > 0){ diff --git a/public/forums.php b/public/forums.php index 65c1bccb..e01ae2e7 100644 --- a/public/forums.php +++ b/public/forums.php @@ -644,7 +644,7 @@ if ($action == "viewtopic") { if ($Advertisement->enable_ad()){ if (!empty($forumpostad[$pn-1])) - echo "
".$forumpostad[$pn-1]."
"; + echo "
".$forumpostad[$pn-1]."
"; } } ++$pn; @@ -1458,7 +1458,7 @@ foreach ($overforums as $a) if ($count>=1) if ($Advertisement->enable_ad()){ if (!empty($interoverforumsad[$count-1])) - echo ""; + echo ""; } $forid = $a["id"]; $overforumname = $a["name"]; diff --git a/public/fun.php b/public/fun.php index 8c246477..c0ff6228 100644 --- a/public/fun.php +++ b/public/fun.php @@ -87,7 +87,7 @@ if ($action == 'view') " type="text/css"> - +" type="text/css"> " type="text/css"> - +
".$interoverforumsad[$count-1]."
".$interoverforumsad[$count-1]."
- + @@ -1121,7 +1121,7 @@ if ($tagKeyById->isNotEmpty()) { if ($Advertisement->enable_ad()){ $belowsearchboxad = $Advertisement->get_ad('belowsearchbox'); if (!empty($belowsearchboxad[0])) { - echo "
".$belowsearchboxad[0]."
"; + echo "
".$belowsearchboxad[0]."
"; } } if($inclbookmarked == 1)