Mortcalcsplus > Mortgage Calculators / Includes / Smarty / Core / Core.process Compiled Include.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Mortcalcsplus

Download:
mortcalcsplus.zip

Category:
Calculators

Archive Content:

Mortgage Calculators

Mortgage Calculators > Images

Mortgage Calculators > Includes

Mortgage Calculators > Includes > Smarty

Mortgage Calculators > Includes > Smarty > Core

Mortgage Calculators > Includes > Smarty

Mortgage Calculators > Includes > Smarty > Plugins

Mortgage Calculators > Includes > Smarty

Mortgage Calculators > Includes > Smarty > Templates C

Mortgage Calculators

Mortgage Calculators > Templates

Core.process Compiled Include.php:


<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Replace nocache-tags by results of the corresponding non-cacheable
 * functions and return it
 *
 * @param string $compiled_tpl
 * @param string $cached_source
 * @return string
 */

function smarty_core_process_compiled_include($params,  &$smarty)
{
    
$_cache_including $smarty->_cache_including;
    
$smarty->_cache_including true;

    
$_return $params['results'];
    foreach (
$smarty->_cache_serials as $_include_file_path=>$_cache_serial) {
        
$_return preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',
                                         array(&
$smarty,  '_process_compiled_include_callback'),
                                         
$_return);
    }
    
$smarty->_cache_including $_cache_including;
    return 
$_return;
}

?>



Other Calculators Scripts:

WebMaster Resources Home

©RingsWorld.com