From c0cd197df2cfd6b98f4e68dedec4eb3584b87122 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 22 Apr 2024 14:02:33 +0700 Subject: [PATCH] Fix Extend Confirmation long text --- init.php | 2 +- system/autoload/Text.php | 64 ++++++++++++++++++++++++++++++++++++++++ ui/ui/user-dashboard.tpl | 2 +- 3 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 system/autoload/Text.php diff --git a/init.php b/init.php index d3ef00c7..de0dc6a0 100644 --- a/init.php +++ b/init.php @@ -222,7 +222,7 @@ function Lang($key) function alphanumeric($str, $tambahan = "") { - return preg_replace("/[^a-zA-Z0-9" . $tambahan . "]+/", "", $str); + return Text::alphanumeric($str, $tambahan); } function showResult($success, $message = '', $result = [], $meta = []) diff --git a/system/autoload/Text.php b/system/autoload/Text.php new file mode 100644 index 00000000..bc094e15 --- /dev/null +++ b/system/autoload/Text.php @@ -0,0 +1,64 @@ +{Lang::T('Extend')} + onclick="return confirm('{Text::toHex($_c['extend_confirmation'])}')">{Lang::T('Extend')} {/if}