From c875362859a79256a70def4b307daca8ab50adfb Mon Sep 17 00:00:00 2001 From: Chris Hecker Date: Sat, 11 Sep 2021 20:51:44 -0700 Subject: [PATCH] Clicking on detailed user cache entry expansions closes them. --- apc.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apc.php b/apc.php index 8c23a5e1..76c7a6ba 100644 --- a/apc.php +++ b/apc.php @@ -517,6 +517,7 @@ function block_sort($array1, $array2) td { vertical-align:top } a { color:black; font-weight:none; text-decoration:none; } a:hover { text-decoration:underline; } +a.entry-info:hover { text-decoration:none; } div.content { padding:1em 1em 1em 1em; position:absolute; width:97%; z-index:100; } @@ -1020,9 +1021,15 @@ function block_sort($array1, $array2) if(empty($MYREQUEST['SEARCH_REGEX']) || preg_match($MYREQUEST['SEARCH_REGEX'], $entry[$fieldname]) != 0) { $sh=md5($entry["info"]); $field_value = htmlentities(strip_tags($entry[$fieldname],''), ENT_QUOTES, 'UTF-8'); + if ($sh == $MYREQUEST["SH"]) { + $shstr = ""; + } else { + $shstr = "&SH=" . $sh; + } + $href = "$MY_SELF&OB=" . $MYREQUEST['OB'] . (!empty($MYREQUEST['SEARCH']) ? "&SEARCH=" . urlencode($MYREQUEST['SEARCH']) : '') . $shstr . "#key-" . $sh; echo '', - "",$field_value,'', + "",$field_value,'', '',$entry['num_hits'],'', '',$entry['mem_size'],'', '',date(DATE_FORMAT,$entry['access_time']),'', @@ -1048,7 +1055,7 @@ function block_sort($array1, $array2) echo ''; if ($sh == $MYREQUEST["SH"]) { echo ''; - echo '
'.htmlentities(print_r(apcu_fetch($entry['info']), 1)).'
'; + echo '
'.htmlentities(print_r(apcu_fetch($entry['info']), 1)).'
'; echo ''; } $i++;