Source for file core.is_secure.php
Documentation is available at core.is_secure.php
* determines if a resource is secure or not.
* @param string $resource_type
* @param string $resource_name
// $resource_type, $resource_name
if (!$smarty->security ||
$smarty->security_settings['INCLUDE_ANY']) {
if ($params['resource_type'] ==
'file') {
$_rp =
realpath($params['resource_name']);
if (isset
($params['resource_base_path'])) {
foreach ((array)
$params['resource_base_path'] as $curr_dir) {
if ( ($_cd =
realpath($curr_dir)) !==
false &&
if (!empty($smarty->secure_dir)) {
foreach ((array)
$smarty->secure_dir as $curr_dir) {
if ( ($_cd =
realpath($curr_dir)) !==
false) {
// resource is not on local file system
$smarty->_plugins['resource'][$params['resource_type']][0][2],
array($params['resource_name'], &$smarty));
/* vim: set expandtab: */
Documentation generated on Sun, 09 Mar 2008 23:51:08 -0300 by phpDocumentor 1.4.0