From ffbe083f796b3932b03fb24cdb5d9e33ce973e2d Mon Sep 17 00:00:00 2001 From: FSWIAI Docker Server Date: Tue, 10 Jul 2018 22:33:47 +0200 Subject: [PATCH] Fix padlist encoding, Add title to page --- intern/list-pads/index.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/intern/list-pads/index.php b/intern/list-pads/index.php index dbd8659..1082bc8 100644 --- a/intern/list-pads/index.php +++ b/intern/list-pads/index.php @@ -1,5 +1,13 @@ -

Read ALL the Pads

-

of the FS-Wiai Pad

+ + + + Pad List + + + + +

Read ALL the Pads

+

of the FS-Wiai Pad

connect_errno){ die("FAIL"); } + +$con->set_charset("utf8"); + $query = 'select distinct substring(store.key,5,locate(":",store.key,5)-5) from store where store.key like "pad:%"'; $result = $con->query($query); @@ -15,8 +26,11 @@ $result = $con->query($query); while($row = $result->fetch_row()){ - echo "".$row[0]."
"; + echo "".$row[0]."
\n"; } ?> + + +