diff --git a/include/constants.php b/include/constants.php index 3efad25f..d5807eb8 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ "主創: ", 'submit_search_at_shooter' => "搜索射手網", 'submit_search_at_opensubtitles' => "搜索Opensubtitles", + 'title_show_or_hide' => "顯示 或 隱藏", 'title_bookmark' => "收藏", 'text_album_information' => "專輯資訊:", 'text_about_album' => "關于該專輯:", diff --git a/public/getusertorrentlistajax.php b/public/getusertorrentlistajax.php index 279d6151..e3d08c89 100644 --- a/public/getusertorrentlistajax.php +++ b/public/getusertorrentlistajax.php @@ -259,7 +259,7 @@ function maketable($res, $mode = 'seeding') return [$ret, $total_size]; } $count = 0; -$torrentlist = ""; +$torrentlist = $pagertop = $pagerbottom = ""; switch ($type) { case 'uploaded': diff --git a/public/mybonus.php b/public/mybonus.php index 0ad399c8..3da45e54 100644 --- a/public/mybonus.php +++ b/public/mybonus.php @@ -301,7 +301,7 @@ function bonusarray($option = 0){ stderr($lang_mybonus['std_sorry'],$lang_mybonus['std_karma_system_disabled'].($bonus_tweak == "disablesave" ? "".$lang_mybonus['std_points_active']."" : ""),false); $action = htmlspecialchars($_GET['action'] ?? ''); -$do = htmlspecialchars($_GET['do'] ?? null); +$do = htmlspecialchars($_GET['do'] ?? ''); unset($msg); if (isset($do)) { if ($do == "upload") @@ -398,7 +398,7 @@ function bonusarray($option = 0){ elseif ($bonusarray['art'] == 'noad'){ if ($enablenoad_advertisement == 'yes' && get_user_class() >= $noad_advertisement) print(""); - elseif (strtotime($CURUSER['noaduntil']) >= TIMENOW) + elseif (!empty($CURUSER['noaduntil']) && strtotime($CURUSER['noaduntil']) >= TIMENOW) print(""); elseif (get_user_class() < $bonusnoad_advertisement) print(""); @@ -550,8 +550,6 @@ function bonusarray($option = 0){ print("
  • ".$lang_mybonus['text_offer_vote'].$offervote_bonus.$lang_mybonus['text_point'].add_s($offervote_bonus)."
  • "); if ($funboxvote_bonus > 0) print("
  • ".$lang_mybonus['text_funbox_vote'].$funboxvote_bonus.$lang_mybonus['text_point'].add_s($funboxvote_bonus)."
  • "); -if ($ratetorrent_bonus > 0) - print("
  • ".$lang_mybonus['text_rate_torrent'].$ratetorrent_bonus.$lang_mybonus['text_point'].add_s($ratetorrent_bonus)."
  • "); if ($saythanks_bonus > 0) print("
  • ".$lang_mybonus['text_say_thanks'].$saythanks_bonus.$lang_mybonus['text_point'].add_s($saythanks_bonus)."
  • "); if ($receivethanks_bonus > 0) diff --git a/public/torrentrss.php b/public/torrentrss.php index 68c6afb3..bcffbd9a 100644 --- a/public/torrentrss.php +++ b/public/torrentrss.php @@ -71,7 +71,7 @@ function hex_esc($matches) { $ANDOR = ($search_mode == 0 ? " AND " : " OR "); // only affects mode 0 and mode 1 foreach ($like_expression_array as &$like_expression_array_element) - $like_expression_array_element = "(torrents.name" . $like_expression_array_element.($_GET['ismalldescr'] ? " OR torrents.small_descr". $like_expression_array_element : "").")"; + $like_expression_array_element = "(torrents.name" . $like_expression_array_element.(!empty($_GET['ismalldescr']) ? " OR torrents.small_descr". $like_expression_array_element : "").")"; $wherea[] = implode($ANDOR, $like_expression_array); $where .= ($where ? " AND " : "") . implode(" AND ", $wherea); }