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}