File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 160160<tr><th><div>Value</div></th><th><div> </div></th><th><div> </div></th></tr>
161161
162162<?php foreach ($ values as $ value ) {
163- $ display_value = $ redis ->exists ($ value ) ? '<a href="view.php?s= ' . $ server ['id ' ] . '&key= ' . urlencode ($ value ) . '"> ' . $ value . '</a> ' : nl2br (format_html ($ value ));
163+ $ display_value = $ redis ->exists ($ value ) ? '<a href="view.php?s= ' . $ server ['id ' ]. '&key= ' . urlencode ($ value ). '"> ' . nl2br ( format_html ( $ value)). '</a> ' : nl2br (format_html ($ value ));
164164?>
165165 <tr <?php echo $ alt ? 'class="alt" ' : '' ?> ><td><div><?php echo $ display_value ?> </div></td><td><div>
166166 <a href="edit.php?s=<?php echo $ server ['id ' ]?> &type=set&key=<?php echo urlencode ($ _GET ['key ' ])?> &value=<?php echo urlencode ($ value )?> "><img src="images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a>
180180<tr><th><div>Score</div></th><th><div>Value</div></th><th><div> </div></th><th><div> </div></th></tr>
181181
182182<?php foreach ($ values as $ value ) {
183- $ score = $ redis ->zScore ($ _GET ['key ' ], $ value );
184- $ display_value = $ redis ->exists ($ value ) ? '<a href="view.php?s= ' . $ server ['id ' ] . '&key= ' . urlencode ($ value ) . '"> ' . $ value . '</a> ' : nl2br (format_html ($ value ));
183+ $ score = $ redis ->zScore ($ _GET ['key ' ], $ value );
184+ $ display_value = $ redis ->exists ($ value ) ? '<a href="view.php?s= ' . $ server ['id ' ]. '&key= ' . urlencode ($ value ). '"> ' . nl2br ( format_html ( $ value)). '</a> ' : nl2br (format_html ($ value ));
185185?>
186186 <tr <?php echo $ alt ? 'class="alt" ' : '' ?> ><td><div><?php echo $ score?> </div></td><td><div><?php echo $ display_value ?> </div></td><td><div>
187187 <a href="edit.php?s=<?php echo $ server ['id ' ]?> &type=zset&key=<?php echo urlencode ($ _GET ['key ' ])?> &score=<?php echo $ score?> &value=<?php echo urlencode ($ value )?> "><img src="images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a>
You can’t perform that action at this time.
0 commit comments