pbd-kn/contao-inputvar-bundle

获取/设置输入变量

安装: 677

依赖: 0

建议: 0

安全: 0

星星: 0

关注者: 1

分支: 1

公开问题: 1

类型:contao-bundle

1.0.22 2023-12-07 10:22 UTC

This package is auto-updated.

Last update: 2024-09-07 12:05:38 UTC


README

Contao是一个开源的PHP内容管理系统,适合那些想要易于维护的专业网站。访问[项目网站][1]获取更多信息。

inputvar提供用于读取和写入GET POST和SESSION变量的inserttags

{{get::var[::opt]}} // 从 _GET 获取变量 {{post::var[::opt]}} // 从 _POST 获取变量 {{posthtml::var[::opt]}} // 从 _POST 获取变量(允许在值中包含HTML标签) {{postraw::var[::opt]}} // 从 _POST 获取变量(没有进行大范围安全检查 -> 不安全!) {{cookie::cookie[::opt]}} // 从 _COOKIE 获取变量 {{session::var[::opt]}} // 从 _SESSION 获取变量 {{setpost::var::value} // 设置 _POST 中的变量 {{setget::var::value} // 设置 _GET 中的变量 {{setcookie::var::value} // 设置 _COOKIE 中的变量

有效的功能选项

mysql_real_escape_string

addslashes, stripslashes, standardize, ampersand, specialchars

nl2br, nl2br_pre, strtolower, utf8_strtolower, strtoupper

utf8_strtoupper, ucfirst, lcfirst, ucwords, trim, rtrim, ltrim

utf8_romanize

strlen, strrev

decodeEntities, encodeEmail, number_format, number_format_2