These are used to override or specify the security settings when security is enabled. These are the possible settings:
此變數在覆蓋或設定當 security 開啟時的安全設定,有下列可能的設定:
PHP_HANDLING - true/false. If set to true, the $php_handling setting is not checked for security.
PHP_HANDLING - true/false。假如設定為 true,則不會為了安全機制檢查 $php_handling 的 設定。
IF_FUNCS - This is an array of the names of permitted PHP functions in IF statements.
IF_FUNCS - 在標示允許使用在 IF 陳述式中的 PHP 函式名稱。
INCLUDE_ANY - true/false. If set to true, any template can be included from the file system, regardless of the $secure_dir list.
INCLUDE_ANY - true/false。假如設定為 true,則可以從本地端的檔案系統中取得樣版,不必 考慮目錄路徑是否存在於 $secure_dir list 中。
PHP_TAGS - true/false. If set to true, {php}{/php} tags are permitted in the templates.
PHP_TAGS - true/false。假如設定為 true,則允許在樣版中使用 {php}{/php} 標籤。
MODIFIER_FUNCS - This is an array of the names of permitted PHP functions used as variable modifiers.
MODIFIER_FUNCS - 允許哪些 PHP 函式可作為變數修飾字的陣列。
ALLOW_CONSTANTS - true/false. If set to true, constants via {$smarty.const.name} are allowed in the templates. The defaults is set to "false" for security.
ALLOW_CONSTANTS - true/false。假如設定為 true,則 {$smarty.const.name} 內的變數都是 被允許使用在樣版中的。為了安全起見,預設值為 "false"。