Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 3ca7e0e5486da714e98ac79af09ca745 > files > 175

php-smarty2-doc-2.6.28-2.mga4.noarch.rpm

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>$secure_dir</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<link rel="home" href="index.html" title="Smarty Manual">
<link rel="up" href="api.variables.html" title="Chapter 12. Smarty Class Variables">
<link rel="prev" href="variable.security.html" title="$security">
<link rel="next" href="variable.security.settings.html" title="$security_settings">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">$secure_dir</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="variable.security.html">Prev</a> </td>
<th width="60%" align="center">Chapter 12. Smarty Class Variables</th>
<td width="20%" align="right"> <a accesskey="n" href="variable.security.settings.html">Next</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="sect1" title="$secure_dir">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="variable.secure.dir"></a>$secure_dir</h2></div></div></div>
<p>
       This is an array of all local files and directories that are considered
 secure.
 <a class="link" href="language.function.include.html" title="{include}"><code class="varname">{include}</code></a>
 and <a class="link" href="language.function.fetch.html" title="{fetch}"><code class="varname">{fetch}</code></a>
 use this when
 <a class="link" href="variable.security.html" title="$security"><em class="parameter"><code>$security</code></em></a> is enabled.
      </p>
<div class="example">
<a name="id3090233"></a><p class="title"><b>Example 12.5. $secure_dir example</b></p>
<div class="example-contents"><pre class="programlisting">

&lt;?php
$secure_dirs[] = '/path/to/site/root/templates/';
$secure_dirs[] = '/path/to/includes/';
$smarty-&gt;secure_dir = $secure_dirs;
?&gt;

</pre></div>
</div>
<br class="example-break"><p>
 See also
 <a class="link" href="variable.security.settings.html" title="$security_settings"><em class="parameter"><code>$security_settings</code></em></a>
 and <a class="link" href="variable.trusted.dir.html" title="$trusted_dir"><em class="parameter"><code>$trusted_dir</code></em></a>.
</p>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="variable.security.html">Prev</a> </td>
<td width="20%" align="center"><a accesskey="u" href="api.variables.html">Up</a></td>
<td width="40%" align="right"> <a accesskey="n" href="variable.security.settings.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">$security </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> $security_settings</td>
</tr>
</table>
</div>
</body>
</html>