mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-04 06:11:37 +01:00 
			
		
		
		
	
		
			
	
	
		
			48 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
		
		
			
		
	
	
			48 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| 
								 | 
							
								<?xml version="1.0" encoding="iso-8859-1"?>
							 | 
						|||
| 
								 | 
							
								<!-- $Revision$ -->
							 | 
						|||
| 
								 | 
							
								     <sect1 id="variable.security">
							 | 
						|||
| 
								 | 
							
								      <title>$security</title>
							 | 
						|||
| 
								 | 
							
								      <para>
							 | 
						|||
| 
								 | 
							
								      $security true/false, el default es false. Security es bueno 
							 | 
						|||
| 
								 | 
							
								      para situaciones cuando usted tiene partes inconfiables editando 
							 | 
						|||
| 
								 | 
							
								      el template (via ftp por ejemplo) y usetd quiere reducir los 
							 | 
						|||
| 
								 | 
							
								      riesgos de comportamiento de seguridad del sistema a trav<61>s del 
							 | 
						|||
| 
								 | 
							
								      lenguaje del template. Al habilitar la seguridad forza las siguientes 
							 | 
						|||
| 
								 | 
							
								      reglas del lenguaje del template, a menos que especifique control con 
							 | 
						|||
| 
								 | 
							
								      $security_settings:
							 | 
						|||
| 
								 | 
							
								      </para>
							 | 
						|||
| 
								 | 
							
								      <itemizedlist>
							 | 
						|||
| 
								 | 
							
								       <listitem><para>Si $php_handling est<73> asignado a SMARTY_PHP_ALLOW, 
							 | 
						|||
| 
								 | 
							
								       este es implicitamente cambiado a SMARTY_PHP_PASSTHRU</para></listitem>
							 | 
						|||
| 
								 | 
							
								       <listitem><para>Las funciones PHP no son permitidas en sentencias IF,
							 | 
						|||
| 
								 | 
							
								       excepto quellas que esten especificadas en $security_settings</para></listitem>
							 | 
						|||
| 
								 | 
							
								       <listitem><para>Los templates solo pueden ser incluidos en el
							 | 
						|||
| 
								 | 
							
								       directorio listado en $secure_dir array</para></listitem>
							 | 
						|||
| 
								 | 
							
								       <listitem><para>Los archivos locales solamente pueden ser traidos del
							 | 
						|||
| 
								 | 
							
								       directorio listado en $secure_dir usando el arreglo {fetch}</para></listitem>
							 | 
						|||
| 
								 | 
							
								       <listitem><para>Estas etiquetas {php}{/php} no son permitidas</para></listitem>
							 | 
						|||
| 
								 | 
							
								       <listitem><para>Las funciones PHP no son permitidas como modificadores,
							 | 
						|||
| 
								 | 
							
								       excepto si estan especificados en el $security_settings</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
							 | 
						|||
| 
								 | 
							
								-->
							 |