From a78830f80573ad0ad812125a8bffe364c8bfa313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 6 Sep 2017 17:27:33 +0200 Subject: [PATCH] Paste button --- html_orig/base.php | 6 ++++++ html_orig/lang/en.php | 2 ++ html_orig/pages/help.php | 2 +- html_orig/pages/term.php | 8 +++++++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/html_orig/base.php b/html_orig/base.php index c4531b1..a922358 100644 --- a/html_orig/base.php +++ b/html_orig/base.php @@ -52,6 +52,12 @@ function e($s) return htmlspecialchars($s, ENT_HTML5 | ENT_QUOTES); } +function je($s) +{ + return htmlspecialchars(json_encode($s), ENT_HTML5); +} + + function tr($key) { global $_messages; diff --git a/html_orig/lang/en.php b/html_orig/lang/en.php index 422c191..7c60089 100644 --- a/html_orig/lang/en.php +++ b/html_orig/lang/en.php @@ -20,6 +20,8 @@ return [ 'term_nav.wifi' => 'WiFi', 'term_nav.help' => 'Help', 'term_nav.about' => 'About', + 'term_nav.paste' => 'Paste', + 'term_nav.paste_prompt' => 'Paste text to send:', 'net.ap' => 'DHCP Server (AP)', 'net.sta' => 'DHCP Client (Station)', diff --git a/html_orig/pages/help.php b/html_orig/pages/help.php index a99cd93..575d4d5 100644 --- a/html_orig/pages/help.php +++ b/html_orig/pages/help.php @@ -1,5 +1,5 @@
- Expand all | Collapse all + Expand all | Collapse all
diff --git a/html_orig/pages/term.php b/html_orig/pages/term.php index a99361e..4a3c3ef 100644 --- a/html_orig/pages/term.php +++ b/html_orig/pages/term.php @@ -25,7 +25,8 @@