Files
smarty/docs/en/programmers/api-variables/variable-security-settings.xml
2006-09-27 06:28:21 +00:00

73 lines
2.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="variable.security.settings">
<title>$security_settings</title>
<para>
These are used to override or specify the security settings when
<link linkend="variable.security"><parameter>$security</parameter></link> is enabled.
These are the possible settings:
</para>
<itemizedlist>
<listitem>
<para>
<constant>PHP_HANDLING</constant> - boolean. If set to &true;, the
<link linkend="variable.php.handling"><parameter>$php_handling</parameter></link>
setting is not checked for security.
</para>
</listitem>
<listitem>
<para>
<constant>IF_FUNCS</constant> - array. The names of permitted PHP functions in
<link linkend="language.function.if"><varname>{if}</varname></link> statements.
</para>
</listitem>
<listitem>
<para>
<constant>INCLUDE_ANY</constant> - boolean. If set to &true;, any
template can be <link linkend="language.function.include">included</link>
from the file system, regardless of the
<link linkend="variable.secure.dir"><parameter>$secure_dir</parameter></link> list.
</para>
</listitem>
<listitem>
<para>
<constant>PHP_TAGS</constant> - boolean. If set to &true;,
<link linkend="language.function.php"><varname>{php}{/php}</varname></link>
tags are permitted in the templates.
</para>
</listitem>
<listitem>
<para>
<constant>MODIFIER_FUNCS</constant> - array. The names of permitted
PHP functions that can be used as variable modifiers.
</para>
</listitem>
<listitem>
<para>
<constant>ALLOW_CONSTANTS</constant> - boolean. If set to &true;, constants via
<link linkend="language.variables.smarty.const"><parameter>{$smarty.const.FOO}</parameter></link>
are allowed in the templates.
</para>
</listitem>
</itemizedlist>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->