mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
fix formatting
This commit is contained in:
@@ -760,6 +760,9 @@ class Smarty extends Smarty_Internal_Data {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Autoloader
|
||||||
|
*/
|
||||||
function smartyAutoload($class)
|
function smartyAutoload($class)
|
||||||
{
|
{
|
||||||
$_class = strtolower($class);
|
$_class = strtolower($class);
|
||||||
@@ -768,11 +771,16 @@ function smartyAutoload($class)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Smarty exception class
|
||||||
|
*/
|
||||||
Class SmartyException extends Exception {
|
Class SmartyException extends Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Smarty compiler exception class
|
||||||
|
*/
|
||||||
Class SmartyCompilerException extends SmartyException {
|
Class SmartyCompilerException extends SmartyException {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,21 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin to execute PHP code
|
* Smarty plugin to execute PHP code
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsBlock
|
* @subpackage PluginsBlock
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {php}{/php} block plugin
|
* Smarty {php}{/php} block plugin
|
||||||
*
|
*
|
||||||
* @param string $content contents of the block
|
* @param string $content contents of the block
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param boolean $ &$repeat repeat flag
|
* @param boolean $ &$repeat repeat flag
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string content re-formatted
|
* @return string content re-formatted
|
||||||
*/
|
*/
|
||||||
function smarty_block_php($params, $content, $smarty, &$repeat, $template)
|
function smarty_block_php($params, $content, $smarty, &$repeat, $template)
|
||||||
{
|
{
|
||||||
if (!$smarty->allow_php_tag) {
|
if (!$smarty->allow_php_tag) {
|
||||||
@@ -24,4 +24,5 @@ function smarty_block_php($params, $content, $smarty, &$repeat, $template)
|
|||||||
eval($content);
|
eval($content);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,37 +1,37 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin to format text blocks
|
* Smarty plugin to format text blocks
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsBlock
|
* @subpackage PluginsBlock
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {textformat}{/textformat} block plugin
|
* Smarty {textformat}{/textformat} block plugin
|
||||||
*
|
*
|
||||||
* Type: block function<br>
|
* Type: block function<br>
|
||||||
* Name: textformat<br>
|
* Name: textformat<br>
|
||||||
* Purpose: format text a certain way with preset styles
|
* Purpose: format text a certain way with preset styles
|
||||||
* or custom wrap/indent settings<br>
|
* or custom wrap/indent settings<br>
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.function.textformat.php {textformat}
|
* @link http://smarty.php.net/manual/en/language.function.textformat.php {textformat}
|
||||||
(Smarty online manual)
|
* (Smarty online manual)
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* <pre>
|
* <pre>
|
||||||
* Params: style: string (email)
|
* Params: style: string (email)
|
||||||
* indent: integer (0)
|
* indent: integer (0)
|
||||||
* wrap: integer (80)
|
* wrap: integer (80)
|
||||||
* wrap_char string ("\n")
|
* wrap_char string ("\n")
|
||||||
* indent_char: string (" ")
|
* indent_char: string (" ")
|
||||||
* wrap_boundary: boolean (true)
|
* wrap_boundary: boolean (true)
|
||||||
* </pre>
|
* </pre>
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @param string $content contents of the block
|
* @param string $content contents of the block
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param boolean &$repeat repeat flag
|
* @param boolean &$repeat repeat flag
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string content re-formatted
|
* @return string content re-formatted
|
||||||
*/
|
*/
|
||||||
function smarty_block_textformat($params, $content, $smarty, &$repeat, $template)
|
function smarty_block_textformat($params, $content, $smarty, &$repeat, $template)
|
||||||
{
|
{
|
||||||
if (is_null($content)) {
|
if (is_null($content)) {
|
||||||
|
@@ -5,7 +5,6 @@
|
|||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {counter} function plugin
|
* Smarty {counter} function plugin
|
||||||
*
|
*
|
||||||
@@ -74,4 +73,5 @@ function smarty_function_counter($params, $smarty)
|
|||||||
return $retval;
|
return $retval;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
* @param Smarty
|
* @param Smarty
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_function_cycle($params, $smarty)
|
function smarty_function_cycle($params, $smarty)
|
||||||
{
|
{
|
||||||
static $cycle_vars;
|
static $cycle_vars;
|
||||||
@@ -100,4 +102,5 @@ function smarty_function_cycle($params, $smarty)
|
|||||||
|
|
||||||
return $retval;
|
return $retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {fetch} plugin
|
* Smarty {fetch} plugin
|
||||||
*
|
*
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {html_checkboxes} function plugin
|
* Smarty {html_checkboxes} function plugin
|
||||||
*
|
*
|
||||||
|
@@ -1,39 +1,39 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {html_image} function plugin
|
* Smarty {html_image} function plugin
|
||||||
*
|
*
|
||||||
* Type: function<br>
|
* Type: function<br>
|
||||||
* Name: html_image<br>
|
* Name: html_image<br>
|
||||||
* Date: Feb 24, 2003<br>
|
* Date: Feb 24, 2003<br>
|
||||||
* Purpose: format HTML tags for the image<br>
|
* Purpose: format HTML tags for the image<br>
|
||||||
* Examples: {html_image file="/images/masthead.gif"}
|
* Examples: {html_image file="/images/masthead.gif"}
|
||||||
* Output: <img src="/images/masthead.gif" width=400 height=23>
|
* Output: <img src="/images/masthead.gif" width=400 height=23>
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image}
|
* @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image}
|
||||||
(Smarty online manual)
|
* (Smarty online manual)
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @author credits to Duda <duda@big.hu>
|
* @author credits to Duda <duda@big.hu>
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* Input:<br>
|
* Input:<br>
|
||||||
* - file = file (and path) of image (required)
|
* - file = file (and path) of image (required)
|
||||||
* - height = image height (optional, default actual height)
|
* - height = image height (optional, default actual height)
|
||||||
* - width = image width (optional, default actual width)
|
* - width = image width (optional, default actual width)
|
||||||
* - basedir = base directory for absolute paths, default
|
* - basedir = base directory for absolute paths, default
|
||||||
* is environment variable DOCUMENT_ROOT
|
* is environment variable DOCUMENT_ROOT
|
||||||
* - path_prefix = prefix for path output (optional, default empty)
|
* - path_prefix = prefix for path output (optional, default empty)
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string
|
* @return string
|
||||||
* @uses smarty_function_escape_special_chars()
|
* @uses smarty_function_escape_special_chars()
|
||||||
*/
|
*/
|
||||||
function smarty_function_html_image($params, $smarty, $template)
|
function smarty_function_html_image($params, $smarty, $template)
|
||||||
{
|
{
|
||||||
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
||||||
|
@@ -1,35 +1,34 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {html_options} function plugin
|
* Smarty {html_options} function plugin
|
||||||
*
|
*
|
||||||
* Type: function<br>
|
* Type: function<br>
|
||||||
* Name: html_options<br>
|
* Name: html_options<br>
|
||||||
* Purpose: Prints the list of <option> tags generated from
|
* Purpose: Prints the list of <option> tags generated from
|
||||||
* the passed parameters
|
* the passed parameters
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.function.html.options.php {html_image}
|
* @link http://smarty.php.net/manual/en/language.function.html.options.php {html_image}
|
||||||
(Smarty online manual)
|
* (Smarty online manual)
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* Input:<br>
|
* Input:<br>
|
||||||
* - name (optional) - string default "select"
|
* - name (optional) - string default "select"
|
||||||
* - values (required if no options supplied) - array
|
* - values (required if no options supplied) - array
|
||||||
* - options (required if no values supplied) - associative array
|
* - options (required if no values supplied) - associative array
|
||||||
* - selected (optional) - string default not set
|
* - selected (optional) - string default not set
|
||||||
* - output (required if not options supplied) - array
|
* - output (required if not options supplied) - array
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string
|
* @return string
|
||||||
* @uses smarty_function_escape_special_chars()
|
* @uses smarty_function_escape_special_chars()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_function_html_options($params, $smarty, $template)
|
function smarty_function_html_options($params, $smarty, $template)
|
||||||
{
|
{
|
||||||
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
||||||
|
@@ -1,45 +1,45 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {html_radios} function plugin
|
* Smarty {html_radios} function plugin
|
||||||
*
|
*
|
||||||
* File: function.html_radios.php<br>
|
* File: function.html_radios.php<br>
|
||||||
* Type: function<br>
|
* Type: function<br>
|
||||||
* Name: html_radios<br>
|
* Name: html_radios<br>
|
||||||
* Date: 24.Feb.2003<br>
|
* Date: 24.Feb.2003<br>
|
||||||
* Purpose: Prints out a list of radio input types<br>
|
* Purpose: Prints out a list of radio input types<br>
|
||||||
* Examples:
|
* Examples:
|
||||||
* <pre>
|
* <pre>
|
||||||
* {html_radios values=$ids output=$names}
|
* {html_radios values=$ids output=$names}
|
||||||
* {html_radios values=$ids name='box' separator='<br>' output=$names}
|
* {html_radios values=$ids name='box' separator='<br>' output=$names}
|
||||||
* {html_radios values=$ids checked=$checked separator='<br>' output=$names}
|
* {html_radios values=$ids checked=$checked separator='<br>' output=$names}
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios}
|
* @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios}
|
||||||
(Smarty online manual)
|
* (Smarty online manual)
|
||||||
* @author Christopher Kvarme <christopher.kvarme@flashjab.com>
|
* @author Christopher Kvarme <christopher.kvarme@flashjab.com>
|
||||||
* @author credits to Monte Ohrt <monte at ohrt dot com>
|
* @author credits to Monte Ohrt <monte at ohrt dot com>
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* Input:<br>
|
* Input:<br>
|
||||||
* - name (optional) - string default "radio"
|
* - name (optional) - string default "radio"
|
||||||
* - values (required) - array
|
* - values (required) - array
|
||||||
* - options (optional) - associative array
|
* - options (optional) - associative array
|
||||||
* - checked (optional) - array default not set
|
* - checked (optional) - array default not set
|
||||||
* - separator (optional) - ie <br> or
|
* - separator (optional) - ie <br> or
|
||||||
* - output (optional) - the output next to each radio button
|
* - output (optional) - the output next to each radio button
|
||||||
* - assign (optional) - assign the output as an array to this variable
|
* - assign (optional) - assign the output as an array to this variable
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string
|
* @return string
|
||||||
* @uses smarty_function_escape_special_chars()
|
* @uses smarty_function_escape_special_chars()
|
||||||
*/
|
*/
|
||||||
function smarty_function_html_radios($params, $smarty, $template)
|
function smarty_function_html_radios($params, $smarty, $template)
|
||||||
{
|
{
|
||||||
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
||||||
|
@@ -1,43 +1,43 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {html_select_date} plugin
|
* Smarty {html_select_date} plugin
|
||||||
*
|
*
|
||||||
* Type: function<br>
|
* Type: function<br>
|
||||||
* Name: html_select_date<br>
|
* Name: html_select_date<br>
|
||||||
* Purpose: Prints the dropdowns for date selection.
|
* Purpose: Prints the dropdowns for date selection.
|
||||||
*
|
*
|
||||||
* ChangeLog:<br>
|
* ChangeLog:<br>
|
||||||
* - 1.0 initial release
|
* - 1.0 initial release
|
||||||
* - 1.1 added support for +/- N syntax for begin
|
* - 1.1 added support for +/- N syntax for begin
|
||||||
* and end year values. (Monte)
|
* and end year values. (Monte)
|
||||||
* - 1.2 added support for yyyy-mm-dd syntax for
|
* - 1.2 added support for yyyy-mm-dd syntax for
|
||||||
* time value. (Jan Rosier)
|
* time value. (Jan Rosier)
|
||||||
* - 1.3 added support for choosing format for
|
* - 1.3 added support for choosing format for
|
||||||
* month values (Gary Loescher)
|
* month values (Gary Loescher)
|
||||||
* - 1.3.1 added support for choosing format for
|
* - 1.3.1 added support for choosing format for
|
||||||
* day values (Marcus Bointon)
|
* day values (Marcus Bointon)
|
||||||
* - 1.3.2 support negative timestamps, force year
|
* - 1.3.2 support negative timestamps, force year
|
||||||
* dropdown to include given date unless explicitly set (Monte)
|
* dropdown to include given date unless explicitly set (Monte)
|
||||||
* - 1.3.4 fix behaviour of 0000-00-00 00:00:00 dates to match that
|
* - 1.3.4 fix behaviour of 0000-00-00 00:00:00 dates to match that
|
||||||
* of 0000-00-00 dates (cybot, boots)
|
* of 0000-00-00 dates (cybot, boots)
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
|
* @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
|
||||||
(Smarty online manual)
|
* (Smarty online manual)
|
||||||
* @version 1.3.4
|
* @version 1.3.4
|
||||||
* @author Andrei Zmievski
|
* @author Andrei Zmievski
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function smarty_function_html_select_date($params, $smarty, $template)
|
function smarty_function_html_select_date($params, $smarty, $template)
|
||||||
{
|
{
|
||||||
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
||||||
@@ -330,4 +330,5 @@ function smarty_function_html_select_date($params, $smarty, $template)
|
|||||||
|
|
||||||
return $html_result;
|
return $html_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,28 +1,28 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {html_select_time} function plugin
|
* Smarty {html_select_time} function plugin
|
||||||
*
|
*
|
||||||
* Type: function<br>
|
* Type: function<br>
|
||||||
* Name: html_select_time<br>
|
* Name: html_select_time<br>
|
||||||
* Purpose: Prints the dropdowns for time selection
|
* Purpose: Prints the dropdowns for time selection
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
|
* @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
|
||||||
(Smarty online manual)
|
* (Smarty online manual)
|
||||||
* @author Roberto Berto <roberto@berto.net>
|
* @author Roberto Berto <roberto@berto.net>
|
||||||
* @credits Monte Ohrt <monte AT ohrt DOT com>
|
* @credits Monte Ohrt <monte AT ohrt DOT com>
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string
|
* @return string
|
||||||
* @uses smarty_make_timestamp()
|
* @uses smarty_make_timestamp()
|
||||||
*/
|
*/
|
||||||
function smarty_function_html_select_time($params, $smarty, $template)
|
function smarty_function_html_select_time($params, $smarty, $template)
|
||||||
{
|
{
|
||||||
require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
|
require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
|
||||||
|
@@ -1,53 +1,53 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {html_table} function plugin
|
* Smarty {html_table} function plugin
|
||||||
*
|
*
|
||||||
* Type: function<br>
|
* Type: function<br>
|
||||||
* Name: html_table<br>
|
* Name: html_table<br>
|
||||||
* Date: Feb 17, 2003<br>
|
* Date: Feb 17, 2003<br>
|
||||||
* Purpose: make an html table from an array of data<br>
|
* Purpose: make an html table from an array of data<br>
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Examples:
|
* Examples:
|
||||||
* <pre>
|
* <pre>
|
||||||
* {table loop=$data}
|
* {table loop=$data}
|
||||||
* {table loop=$data cols=4 tr_attr='"bgcolor=red"'}
|
* {table loop=$data cols=4 tr_attr='"bgcolor=red"'}
|
||||||
* {table loop=$data cols="first,second,third" tr_attr=$colors}
|
* {table loop=$data cols="first,second,third" tr_attr=$colors}
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @author credit to Messju Mohr <messju at lammfellpuschen dot de>
|
* @author credit to Messju Mohr <messju at lammfellpuschen dot de>
|
||||||
* @author credit to boots <boots dot smarty at yahoo dot com>
|
* @author credit to boots <boots dot smarty at yahoo dot com>
|
||||||
* @version 1.1
|
* @version 1.1
|
||||||
* @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table}
|
* @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table}
|
||||||
(Smarty online manual)
|
* (Smarty online manual)
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* Input:<br>
|
* Input:<br>
|
||||||
* - loop = array to loop through
|
* - loop = array to loop through
|
||||||
* - cols = number of columns, comma separated list of column names
|
* - cols = number of columns, comma separated list of column names
|
||||||
* or array of column names
|
* or array of column names
|
||||||
* - rows = number of rows
|
* - rows = number of rows
|
||||||
* - table_attr = table attributes
|
* - table_attr = table attributes
|
||||||
* - th_attr = table heading attributes (arrays are cycled)
|
* - th_attr = table heading attributes (arrays are cycled)
|
||||||
* - tr_attr = table row attributes (arrays are cycled)
|
* - tr_attr = table row attributes (arrays are cycled)
|
||||||
* - td_attr = table cell attributes (arrays are cycled)
|
* - td_attr = table cell attributes (arrays are cycled)
|
||||||
* - trailpad = value to pad trailing cells with
|
* - trailpad = value to pad trailing cells with
|
||||||
* - caption = text for caption element
|
* - caption = text for caption element
|
||||||
* - vdir = vertical direction (default: "down", means top-to-bottom)
|
* - vdir = vertical direction (default: "down", means top-to-bottom)
|
||||||
* - hdir = horizontal direction (default: "right", means left-to-right)
|
* - hdir = horizontal direction (default: "right", means left-to-right)
|
||||||
* - inner = inner loop (default "cols": print $loop line by line,
|
* - inner = inner loop (default "cols": print $loop line by line,
|
||||||
* $loop will be printed column by column otherwise)
|
* $loop will be printed column by column otherwise)
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function smarty_function_html_table($params, $smarty, $template)
|
function smarty_function_html_table($params, $smarty, $template)
|
||||||
{
|
{
|
||||||
$table_attr = 'border="1"';
|
$table_attr = 'border="1"';
|
||||||
@@ -173,4 +173,5 @@ function smarty_function_html_table_cycle($name, $var, $no)
|
|||||||
|
|
||||||
return ($ret) ? ' ' . $ret : '';
|
return ($ret) ? ' ' . $ret : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,54 +1,54 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {mailto} function plugin
|
* Smarty {mailto} function plugin
|
||||||
*
|
*
|
||||||
* Type: function<br>
|
* Type: function<br>
|
||||||
* Name: mailto<br>
|
* Name: mailto<br>
|
||||||
* Date: May 21, 2002
|
* Date: May 21, 2002
|
||||||
* Purpose: automate mailto address link creation, and optionally
|
* Purpose: automate mailto address link creation, and optionally
|
||||||
* encode them.<br>
|
* encode them.<br>
|
||||||
*
|
*
|
||||||
* Examples:
|
* Examples:
|
||||||
* <pre>
|
* <pre>
|
||||||
* {mailto address="me@domain.com"}
|
* {mailto address="me@domain.com"}
|
||||||
* {mailto address="me@domain.com" encode="javascript"}
|
* {mailto address="me@domain.com" encode="javascript"}
|
||||||
* {mailto address="me@domain.com" encode="hex"}
|
* {mailto address="me@domain.com" encode="hex"}
|
||||||
* {mailto address="me@domain.com" subject="Hello to you!"}
|
* {mailto address="me@domain.com" subject="Hello to you!"}
|
||||||
* {mailto address="me@domain.com" cc="you@domain.com,they@domain.com"}
|
* {mailto address="me@domain.com" cc="you@domain.com,they@domain.com"}
|
||||||
* {mailto address="me@domain.com" extra='class="mailto"'}
|
* {mailto address="me@domain.com" extra='class="mailto"'}
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.function.mailto.php {mailto}
|
* @link http://smarty.php.net/manual/en/language.function.mailto.php {mailto}
|
||||||
(Smarty online manual)
|
* (Smarty online manual)
|
||||||
* @version 1.2
|
* @version 1.2
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @author credits to Jason Sweat (added cc, bcc and subject functionality)
|
* @author credits to Jason Sweat (added cc, bcc and subject functionality)
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* Input:<br>
|
* Input:<br>
|
||||||
* - address = e-mail address
|
* - address = e-mail address
|
||||||
* - text = (optional) text to display, default is address
|
* - text = (optional) text to display, default is address
|
||||||
* - encode = (optional) can be one of:
|
* - encode = (optional) can be one of:
|
||||||
* * none : no encoding (default)
|
* * none : no encoding (default)
|
||||||
* * javascript : encode with javascript
|
* * javascript : encode with javascript
|
||||||
* * javascript_charcode : encode with javascript charcode
|
* * javascript_charcode : encode with javascript charcode
|
||||||
* * hex : encode with hexidecimal (no javascript)
|
* * hex : encode with hexidecimal (no javascript)
|
||||||
* - cc = (optional) address(es) to carbon copy
|
* - cc = (optional) address(es) to carbon copy
|
||||||
* - bcc = (optional) address(es) to blind carbon copy
|
* - bcc = (optional) address(es) to blind carbon copy
|
||||||
* - subject = (optional) e-mail subject
|
* - subject = (optional) e-mail subject
|
||||||
* - newsgroups = (optional) newsgroup(s) to post to
|
* - newsgroups = (optional) newsgroup(s) to post to
|
||||||
* - followupto = (optional) address(es) to follow up to
|
* - followupto = (optional) address(es) to follow up to
|
||||||
* - extra = (optional) extra tags for the href link
|
* - extra = (optional) extra tags for the href link
|
||||||
* @param object $smarty Smarty object
|
* @param object $smarty Smarty object
|
||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function smarty_function_mailto($params, $smarty, $template)
|
function smarty_function_mailto($params, $smarty, $template)
|
||||||
{
|
{
|
||||||
$extra = '';
|
$extra = '';
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {math} function plugin
|
* Smarty {math} function plugin
|
||||||
*
|
*
|
||||||
@@ -81,4 +80,5 @@ function smarty_function_math($params, $smarty, $template)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {popup} function plugin
|
* Smarty {popup} function plugin
|
||||||
*
|
*
|
||||||
@@ -115,4 +115,5 @@ function smarty_function_popup($params, $smarty, $template)
|
|||||||
|
|
||||||
return $retval;
|
return $retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFunction
|
* @subpackage PluginsFunction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty {popup_init} function plugin
|
* Smarty {popup_init} function plugin
|
||||||
*
|
*
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
* @param object $template template object
|
* @param object $template template object
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_function_popup_init($params, $smarty, $template)
|
function smarty_function_popup_init($params, $smarty, $template)
|
||||||
{
|
{
|
||||||
$zindex = 1000;
|
$zindex = 1000;
|
||||||
@@ -35,4 +36,5 @@ function smarty_function_popup_init($params, $smarty, $template)
|
|||||||
trigger_error("popup_init: missing src parameter",E_USER_WARNING);
|
trigger_error("popup_init: missing src parameter",E_USER_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,30 +1,30 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifier
|
* @subpackage PluginsModifier
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty date_format modifier plugin
|
* Smarty date_format modifier plugin
|
||||||
*
|
*
|
||||||
* Type: modifier<br>
|
* Type: modifier<br>
|
||||||
* Name: date_format<br>
|
* Name: date_format<br>
|
||||||
* Purpose: format datestamps via strftime<br>
|
* Purpose: format datestamps via strftime<br>
|
||||||
* Input:<br>
|
* Input:<br>
|
||||||
* - string: input date string
|
* - string: input date string
|
||||||
* - format: strftime format for output
|
* - format: strftime format for output
|
||||||
* - default_date: default date if $string is empty
|
* - default_date: default date if $string is empty
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual)
|
* @link http://smarty.php.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual)
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @param string $
|
* @param string $
|
||||||
* @param string $
|
* @param string $
|
||||||
* @param string $
|
* @param string $
|
||||||
* @return string |void
|
* @return string |void
|
||||||
* @uses smarty_make_timestamp()
|
* @uses smarty_make_timestamp()
|
||||||
*/
|
*/
|
||||||
function smarty_modifier_date_format($string, $format = SMARTY_RESOURCE_DATE_FORMAT, $default_date = '',$formatter='auto')
|
function smarty_modifier_date_format($string, $format = SMARTY_RESOURCE_DATE_FORMAT, $default_date = '',$formatter='auto')
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -1,25 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Debug
|
* @subpackage Debug
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty debug_print_var modifier plugin
|
* Smarty debug_print_var modifier plugin
|
||||||
*
|
*
|
||||||
* Type: modifier<br>
|
* Type: modifier<br>
|
||||||
* Name: debug_print_var<br>
|
* Name: debug_print_var<br>
|
||||||
* Purpose: formats variable contents for display in the console
|
* Purpose: formats variable contents for display in the console
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.modifier.debug.print.var.php debug_print_var (Smarty online manual)
|
* @link http://smarty.php.net/manual/en/language.modifier.debug.print.var.php debug_print_var (Smarty online manual)
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @param array $ |object
|
* @param array $ |object
|
||||||
* @param integer $
|
* @param integer $
|
||||||
* @param integer $
|
* @param integer $
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function smarty_modifier_debug_print_var ($var, $depth = 0, $length = 40)
|
function smarty_modifier_debug_print_var ($var, $depth = 0, $length = 40)
|
||||||
{
|
{
|
||||||
$_replace = array("\n" => '<i>\n</i>',
|
$_replace = array("\n" => '<i>\n</i>',
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifier
|
* @subpackage PluginsModifier
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty regex_replace modifier plugin
|
* Smarty regex_replace modifier plugin
|
||||||
@@ -42,4 +42,5 @@ function _smarty_regex_replace_check($search)
|
|||||||
}
|
}
|
||||||
return $search;
|
return $search;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifier
|
* @subpackage PluginsModifier
|
||||||
*/
|
*/
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifier
|
* @subpackage PluginsModifier
|
||||||
*/
|
*/
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifierCompiler
|
* @subpackage PluginsModifierCompiler
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty cat modifier plugin
|
* Smarty cat modifier plugin
|
||||||
*
|
*
|
||||||
|
@@ -35,4 +35,5 @@ function smarty_modifiercompiler_count_characters($params, $compiler)
|
|||||||
return 'preg_match_all(\'/[^\s]/\',' . $params[0] . ', $tmp)';
|
return 'preg_match_all(\'/[^\s]/\',' . $params[0] . ', $tmp)';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifierCompiler
|
* @subpackage PluginsModifierCompiler
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty count_paragraphs modifier plugin
|
* Smarty count_paragraphs modifier plugin
|
||||||
*
|
*
|
||||||
@@ -23,4 +23,5 @@ function smarty_modifiercompiler_count_paragraphs($params, $compiler)
|
|||||||
// count \r or \n characters
|
// count \r or \n characters
|
||||||
return '(preg_match_all(\'#[\r\n]+#\', ' . $params[0] . ', $tmp)+1)';
|
return '(preg_match_all(\'#[\r\n]+#\', ' . $params[0] . ', $tmp)+1)';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifierCompiler
|
* @subpackage PluginsModifierCompiler
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty count_sentences modifier plugin
|
* Smarty count_sentences modifier plugin
|
||||||
*
|
*
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* @return string with compiled code
|
* @return string with compiled code
|
||||||
*/
|
*/
|
||||||
function smarty_modifiercompiler_count_words($params, $compiler)
|
function smarty_modifiercompiler_count_words($params, $compiler)
|
||||||
{
|
{
|
||||||
// mb_ functions available?
|
// mb_ functions available?
|
||||||
|
@@ -5,7 +5,6 @@
|
|||||||
* @subpackage PluginsModifierCompiler
|
* @subpackage PluginsModifierCompiler
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty indent modifier plugin
|
* Smarty indent modifier plugin
|
||||||
*
|
*
|
||||||
@@ -18,6 +17,7 @@
|
|||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* @return string with compiled code
|
* @return string with compiled code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_modifiercompiler_indent($params, $compiler)
|
function smarty_modifiercompiler_indent($params, $compiler)
|
||||||
{
|
{
|
||||||
if (!isset($params[1])) {
|
if (!isset($params[1])) {
|
||||||
|
@@ -1,24 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
* @package Smarty
|
||||||
* @package Smarty
|
* @subpackage PluginsModifierCompiler
|
||||||
* @subpackage PluginsModifierCompiler
|
*/
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty lower modifier plugin
|
* Smarty lower modifier plugin
|
||||||
*
|
*
|
||||||
* Type: modifier<br>
|
* Type: modifier<br>
|
||||||
* Name: lower<br>
|
* Name: lower<br>
|
||||||
* Purpose: convert string to lowercase
|
* Purpose: convert string to lowercase
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.modifier.lower.php lower (Smarty online manual)
|
* @link http://smarty.php.net/manual/en/language.modifier.lower.php lower (Smarty online manual)
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* @return string with compiled code
|
* @return string with compiled code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_modifiercompiler_lower($params, $compiler)
|
function smarty_modifiercompiler_lower($params, $compiler)
|
||||||
{
|
{
|
||||||
if (function_exists('mb_strtolower')) {
|
if (function_exists('mb_strtolower')) {
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifierCompiler
|
* @subpackage PluginsModifierCompiler
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty noprint modifier plugin
|
* Smarty noprint modifier plugin
|
||||||
*
|
*
|
||||||
|
@@ -1,26 +1,26 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsModifierCompiler
|
* @subpackage PluginsModifierCompiler
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty string_format modifier plugin
|
* Smarty string_format modifier plugin
|
||||||
*
|
*
|
||||||
* Type: modifier<br>
|
* Type: modifier<br>
|
||||||
* Name: string_format<br>
|
* Name: string_format<br>
|
||||||
* Purpose: format strings via sprintf
|
* Purpose: format strings via sprintf
|
||||||
*
|
*
|
||||||
* @link http://smarty.php.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)
|
* @link http://smarty.php.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* @return string with compiled code
|
* @return string with compiled code
|
||||||
*/
|
*/
|
||||||
function smarty_modifiercompiler_string_format($params, $compiler)
|
function smarty_modifiercompiler_string_format($params, $compiler)
|
||||||
{
|
{
|
||||||
return 'sprintf(' . $params[1] . ',' . $params[0] . ')';
|
return 'sprintf(' . $params[1] . ',' . $params[0] . ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -21,6 +21,7 @@
|
|||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* @return string with compiled code
|
* @return string with compiled code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_modifiercompiler_strip($params, $compiler)
|
function smarty_modifiercompiler_strip($params, $compiler)
|
||||||
{
|
{
|
||||||
if (!isset($params[1])) {
|
if (!isset($params[1])) {
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
* @param array $params parameters
|
* @param array $params parameters
|
||||||
* @return string with compiled code
|
* @return string with compiled code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_modifiercompiler_strip_tags($params, $compiler)
|
function smarty_modifiercompiler_strip_tags($params, $compiler)
|
||||||
{
|
{
|
||||||
if (!isset($params[1])) {
|
if (!isset($params[1])) {
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFilter
|
* @subpackage PluginsFilter
|
||||||
*/
|
*/
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty shared plugin
|
* Smarty shared plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsShared
|
* @subpackage PluginsShared
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* escape_special_chars common function
|
* escape_special_chars common function
|
||||||
*
|
*
|
||||||
@@ -25,4 +25,5 @@ function smarty_function_escape_special_chars($string)
|
|||||||
}
|
}
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty shared plugin
|
* Smarty shared plugin
|
||||||
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsShared
|
* @subpackage PluginsShared
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function: smarty_make_timestamp<br>
|
* Function: smarty_make_timestamp<br>
|
||||||
* Purpose: used by other smarty functions to make a timestamp
|
* Purpose: used by other smarty functions to make a timestamp
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
* @param string $string
|
* @param string $string
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_make_timestamp($string)
|
function smarty_make_timestamp($string)
|
||||||
{
|
{
|
||||||
if(empty($string)) {
|
if(empty($string)) {
|
||||||
@@ -38,4 +39,5 @@ function smarty_make_timestamp($string)
|
|||||||
return $time;
|
return $time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,18 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsFilter
|
* @subpackage PluginsFilter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty htmlspecialchars variablefilter plugin
|
* Smarty htmlspecialchars variablefilter plugin
|
||||||
*
|
*
|
||||||
* @param string $source input string
|
* @param string $source input string
|
||||||
* @param object $ &$smarty Smarty object
|
* @param object $ &$smarty Smarty object
|
||||||
* @return string filtered output
|
* @return string filtered output
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function smarty_variablefilter_htmlspecialchars($source, $smarty)
|
function smarty_variablefilter_htmlspecialchars($source, $smarty)
|
||||||
{
|
{
|
||||||
return htmlspecialchars($source, ENT_QUOTES);
|
return htmlspecialchars($source, ENT_QUOTES);
|
||||||
|
@@ -1,17 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Append
|
* Smarty Internal Plugin Compile Append
|
||||||
*
|
*
|
||||||
* Compiles the {append} tag
|
* Compiles the {append} tag
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Append Class
|
* Smarty Internal Plugin Compile Append Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Append extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Append extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {append} tag
|
* Compiles code for the {append} tag
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Assign Class
|
* Smarty Internal Plugin Compile Assign Class
|
||||||
*/
|
*/
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Block Class
|
* Smarty Internal Plugin Compile Block Class
|
||||||
*/
|
*/
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Function_Call Class
|
* Smarty Internal Plugin Compile Function_Call Class
|
||||||
*/
|
*/
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Capture
|
* Smarty Internal Plugin Compile Capture
|
||||||
*
|
*
|
||||||
* Compiles the {capture} tag
|
* Compiles the {capture} tag
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Capture Class
|
* Smarty Internal Plugin Compile Capture Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {capture} tag
|
* Compiles code for the {capture} tag
|
||||||
@@ -39,8 +40,8 @@ class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Captureclose Class
|
* Smarty Internal Plugin Compile Captureclose Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_CaptureClose extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_CaptureClose extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {/capture} tag
|
* Compiles code for the {/capture} tag
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Config Load Class
|
* Smarty Internal Plugin Compile Config Load Class
|
||||||
*/
|
*/
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Debug
|
* Smarty Internal Plugin Compile Debug
|
||||||
*
|
*
|
||||||
* Compiles the {debug} tag
|
* Compiles the {debug} tag
|
||||||
* It opens a window the the Smarty Debugging Console
|
* It opens a window the the Smarty Debugging Console
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Debug Class
|
* Smarty Internal Plugin Compile Debug Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Debug extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Debug extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {debug} tag
|
* Compiles code for the {debug} tag
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Eval
|
* Smarty Internal Plugin Compile Eval
|
||||||
*
|
*
|
||||||
* Compiles the {eval} tag
|
* Compiles the {eval} tag
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Eval Class
|
* Smarty Internal Plugin Compile Eval Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Eval extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Eval extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {eval} tag
|
* Compiles code for the {eval} tag
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile extend Class
|
* Smarty Internal Plugin Compile extend Class
|
||||||
*/
|
*/
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile For Class
|
* Smarty Internal Plugin Compile For Class
|
||||||
*/
|
*/
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Foreach Class
|
* Smarty Internal Plugin Compile Foreach Class
|
||||||
*/
|
*/
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Function Class
|
* Smarty Internal Plugin Compile Function Class
|
||||||
*/
|
*/
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile If
|
* Smarty Internal Plugin Compile If
|
||||||
*
|
*
|
||||||
* Compiles the {if} {else} {elseif} {/if} tags
|
* Compiles the {if} {else} {elseif} {/if} tags
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile If Class
|
* Smarty Internal Plugin Compile If Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {if} tag
|
* Compiles code for the {if} tag
|
||||||
@@ -37,8 +38,8 @@ class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Else Class
|
* Smarty Internal Plugin Compile Else Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Else extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Else extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {else} tag
|
* Compiles code for the {else} tag
|
||||||
@@ -58,8 +59,8 @@ class Smarty_Internal_Compile_Else extends Smarty_Internal_CompileBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile ElseIf Class
|
* Smarty Internal Plugin Compile ElseIf Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Elseif extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Elseif extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {elseif} tag
|
* Compiles code for the {elseif} tag
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Include Class
|
* Smarty Internal Plugin Compile Include Class
|
||||||
*/
|
*/
|
||||||
|
@@ -1,17 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Include PHP
|
* Smarty Internal Plugin Compile Include PHP
|
||||||
*
|
*
|
||||||
* Compiles the {include_php} tag
|
* Compiles the {include_php} tag
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Insert Class
|
* Smarty Internal Plugin Compile Insert Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {include_php} tag
|
* Compiles code for the {include_php} tag
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Insert Class
|
* Smarty Internal Plugin Compile Insert Class
|
||||||
*/
|
*/
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Ldelim
|
* Smarty Internal Plugin Compile Ldelim
|
||||||
*
|
*
|
||||||
* Compiles the {ldelim} tag
|
* Compiles the {ldelim} tag
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Ldelim Class
|
* Smarty Internal Plugin Compile Ldelim Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {ldelim} tag
|
* Compiles code for the {ldelim} tag
|
||||||
@@ -29,4 +30,5 @@ class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase {
|
|||||||
return $this->compiler->smarty->left_delimiter;
|
return $this->compiler->smarty->left_delimiter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Nocache
|
* Smarty Internal Plugin Compile Nocache
|
||||||
*
|
*
|
||||||
* Compiles the {nocache} {/nocache} tags
|
* Compiles the {nocache} {/nocache} tags
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Nocache Class
|
* Smarty Internal Plugin Compile Nocache Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {nocache} tag
|
* Compiles code for the {nocache} tag
|
||||||
@@ -33,8 +34,8 @@ class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Nocacheclose Class
|
* Smarty Internal Plugin Compile Nocacheclose Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {/nocache} tag
|
* Compiles code for the {/nocache} tag
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Block Plugin Class
|
* Smarty Internal Plugin Compile Block Plugin Class
|
||||||
*/
|
*/
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Function Plugin Class
|
* Smarty Internal Plugin Compile Function Plugin Class
|
||||||
*/
|
*/
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Modifier Class
|
* Smarty Internal Plugin Compile Modifier Class
|
||||||
*/
|
*/
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Object Block Function
|
* Smarty Internal Plugin Compile Object Block Function
|
||||||
*
|
*
|
||||||
* Compiles code for registered objects as block function
|
* Compiles code for registered objects as block function
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Object Block Function Class
|
* Smarty Internal Plugin Compile Object Block Function Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the execution of block plugin
|
* Compiles code for the execution of block plugin
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Object Function Class
|
* Smarty Internal Plugin Compile Object Function Class
|
||||||
*/
|
*/
|
||||||
@@ -59,4 +60,5 @@ class Smarty_Internal_Compile_Private_Object_Function extends Smarty_Internal_Co
|
|||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Print Expression Class
|
* Smarty Internal Plugin Compile Print Expression Class
|
||||||
*/
|
*/
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Registered Block
|
* Smarty Internal Plugin Compile Registered Block
|
||||||
*
|
*
|
||||||
* Compiles code for the execution of a registered block function
|
* Compiles code for the execution of a registered block function
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Registered Block Class
|
* Smarty Internal Plugin Compile Registered Block Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Private_Registered_Block extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Private_Registered_Block extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the execution of a block function
|
* Compiles code for the execution of a block function
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Registered Function Class
|
* Smarty Internal Plugin Compile Registered Function Class
|
||||||
*/
|
*/
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Special Smarty Variable
|
* Smarty Internal Plugin Compile Special Smarty Variable
|
||||||
*
|
*
|
||||||
* Compiles the special $smarty variables
|
* Compiles the special $smarty variables
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile special Smarty Variable Class
|
* Smarty Internal Plugin Compile special Smarty Variable Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the speical $smarty variables
|
* Compiles code for the speical $smarty variables
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Rdelim
|
* Smarty Internal Plugin Compile Rdelim
|
||||||
*
|
*
|
||||||
* Compiles the {rdelim} tag
|
* Compiles the {rdelim} tag
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Rdelim Class
|
* Smarty Internal Plugin Compile Rdelim Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {rdelim} tag
|
* Compiles code for the {rdelim} tag
|
||||||
@@ -29,4 +30,5 @@ class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase {
|
|||||||
return $this->compiler->smarty->right_delimiter;
|
return $this->compiler->smarty->right_delimiter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,16 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Section
|
* Smarty Internal Plugin Compile Section
|
||||||
*
|
*
|
||||||
* Compiles the {section} {sectionelse} {/section} tags
|
* Compiles the {section} {sectionelse} {/section} tags
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Section Class
|
* Smarty Internal Plugin Compile Section Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {section} tag
|
* Compiles code for the {section} tag
|
||||||
@@ -136,8 +137,8 @@ class Smarty_Internal_Compile_Sectionelse extends Smarty_Internal_CompileBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Sectionclose Class
|
* Smarty Internal Plugin Compile Sectionclose Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Compile_Sectionclose extends Smarty_Internal_CompileBase {
|
class Smarty_Internal_Compile_Sectionclose extends Smarty_Internal_CompileBase {
|
||||||
/**
|
/**
|
||||||
* Compiles code for the {/section} tag
|
* Compiles code for the {/section} tag
|
||||||
@@ -166,5 +167,4 @@ class Smarty_Internal_Compile_Sectionclose extends Smarty_Internal_CompileBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile While Class
|
* Smarty Internal Plugin Compile While Class
|
||||||
*/
|
*/
|
||||||
@@ -63,4 +64,5 @@ class Smarty_Internal_Compile_Whileclose extends Smarty_Internal_CompileBase {
|
|||||||
return "<?php }?>";
|
return "<?php }?>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -10,6 +10,7 @@
|
|||||||
* @subpackage Config
|
* @subpackage Config
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main config file compiler class
|
* Main config file compiler class
|
||||||
*/
|
*/
|
||||||
|
@@ -7,6 +7,7 @@
|
|||||||
* @subpackage Config
|
* @subpackage Config
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Configfilelexer
|
* Smarty Internal Plugin Configfilelexer
|
||||||
*/
|
*/
|
||||||
@@ -521,6 +522,6 @@ class Smarty_Internal_Configfilelexer
|
|||||||
$this->yypopstate();
|
$this->yypopstate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -868,4 +868,5 @@ static public $yy_action = array(
|
|||||||
} while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
|
} while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage Debug
|
* @subpackage Debug
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Debug Class
|
* Smarty Internal Plugin Debug Class
|
||||||
*/
|
*/
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
* @subpackage PluginsInternal
|
* @subpackage PluginsInternal
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class does call function defined with the {function} tag
|
* This class does call function defined with the {function} tag
|
||||||
*/
|
*/
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Compile Insert Class
|
* Smarty Internal Plugin Compile Insert Class
|
||||||
*/
|
*/
|
||||||
|
@@ -9,13 +9,14 @@
|
|||||||
* @author Thue Kristensen
|
* @author Thue Kristensen
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
abstract class _smarty_parsetree {
|
abstract class _smarty_parsetree {
|
||||||
abstract public function to_smarty_php();
|
abstract public function to_smarty_php();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
/* A complete smarty tag. */
|
* A complete smarty tag.
|
||||||
|
*/
|
||||||
class _smarty_tag extends _smarty_parsetree
|
class _smarty_tag extends _smarty_parsetree
|
||||||
{
|
{
|
||||||
public $parser;
|
public $parser;
|
||||||
@@ -42,7 +43,9 @@ class _smarty_tag extends _smarty_parsetree
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Code fragment inside a tag. */
|
/**
|
||||||
|
* Code fragment inside a tag.
|
||||||
|
*/
|
||||||
class _smarty_code extends _smarty_parsetree {
|
class _smarty_code extends _smarty_parsetree {
|
||||||
public $parser;
|
public $parser;
|
||||||
public $data;
|
public $data;
|
||||||
@@ -58,7 +61,9 @@ class _smarty_code extends _smarty_parsetree {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Double quoted string inside a tag. */
|
/**
|
||||||
|
* Double quoted string inside a tag.
|
||||||
|
*/
|
||||||
class _smarty_doublequoted extends _smarty_parsetree {
|
class _smarty_doublequoted extends _smarty_parsetree {
|
||||||
public $parser;
|
public $parser;
|
||||||
public $subtrees = Array();
|
public $subtrees = Array();
|
||||||
@@ -113,7 +118,9 @@ class _smarty_doublequoted extends _smarty_parsetree {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Raw chars as part of a double quoted string. */
|
/**
|
||||||
|
* Raw chars as part of a double quoted string.
|
||||||
|
*/
|
||||||
class _smarty_dq_content extends _smarty_parsetree {
|
class _smarty_dq_content extends _smarty_parsetree {
|
||||||
public $data;
|
public $data;
|
||||||
function __construct($parser, $data)
|
function __construct($parser, $data)
|
||||||
@@ -127,7 +134,10 @@ class _smarty_dq_content extends _smarty_parsetree {
|
|||||||
return '"' . $this->data . '"';
|
return '"' . $this->data . '"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Template element */
|
|
||||||
|
/**
|
||||||
|
* Template element
|
||||||
|
*/
|
||||||
class _smarty_template_buffer extends _smarty_parsetree {
|
class _smarty_template_buffer extends _smarty_parsetree {
|
||||||
public $subtrees = Array();
|
public $subtrees = Array();
|
||||||
function __construct($parser)
|
function __construct($parser)
|
||||||
@@ -188,7 +198,10 @@ class _smarty_template_buffer extends _smarty_parsetree {
|
|||||||
return $code;
|
return $code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* template text */
|
|
||||||
|
/**
|
||||||
|
* template text
|
||||||
|
*/
|
||||||
class _smarty_text extends _smarty_parsetree {
|
class _smarty_text extends _smarty_parsetree {
|
||||||
public $data;
|
public $data;
|
||||||
function __construct($parser, $data)
|
function __construct($parser, $data)
|
||||||
@@ -202,7 +215,10 @@ class _smarty_text extends _smarty_parsetree {
|
|||||||
return $this->data;
|
return $this->data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* template linebreaks */
|
|
||||||
|
/**
|
||||||
|
* template linebreaks
|
||||||
|
*/
|
||||||
class _smarty_linebreak extends _smarty_parsetree {
|
class _smarty_linebreak extends _smarty_parsetree {
|
||||||
public $data;
|
public $data;
|
||||||
function __construct($parser, $data)
|
function __construct($parser, $data)
|
||||||
|
@@ -260,3 +260,5 @@ class Smarty_Internal_Register {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
?>
|
@@ -9,6 +9,7 @@
|
|||||||
* @subpackage TemplateResources
|
* @subpackage TemplateResources
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Resource Extends
|
* Smarty Internal Plugin Resource Extends
|
||||||
*/
|
*/
|
||||||
@@ -128,6 +129,10 @@ class Smarty_Internal_Resource_Extends {
|
|||||||
}
|
}
|
||||||
// $_template->template_filepath = $saved_filepath;
|
// $_template->template_filepath = $saved_filepath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* saveBlockData
|
||||||
|
*/
|
||||||
protected function saveBlockData($block_content, $block_tag, $_filepath)
|
protected function saveBlockData($block_content, $block_tag, $_filepath)
|
||||||
{
|
{
|
||||||
if (0 == preg_match("!(.?)(name=)(.*?)(?=(\s|{$this->_rdl}))!", $block_tag, $_match)) {
|
if (0 == preg_match("!(.?)(name=)(.*?)(?=(\s|{$this->_rdl}))!", $block_tag, $_match)) {
|
||||||
|
@@ -1,17 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Resource File
|
* Smarty Internal Plugin Resource File
|
||||||
*
|
*
|
||||||
* Implements the file system as resource for Smarty templates
|
* Implements the file system as resource for Smarty templates
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage TemplateResources
|
* @subpackage TemplateResources
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Resource File
|
* Smarty Internal Plugin Resource File
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Resource_File {
|
class Smarty_Internal_Resource_File {
|
||||||
public function __construct($smarty)
|
public function __construct($smarty)
|
||||||
{
|
{
|
||||||
|
@@ -1,17 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Resource PHP
|
* Smarty Internal Plugin Resource PHP
|
||||||
*
|
*
|
||||||
* Implements the file system as resource for PHP templates
|
* Implements the file system as resource for PHP templates
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage TemplateResources
|
* @subpackage TemplateResources
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Resource PHP
|
* Smarty Internal Plugin Resource PHP
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Resource_PHP {
|
class Smarty_Internal_Resource_PHP {
|
||||||
/**
|
/**
|
||||||
* Class constructor, enable short open tags
|
* Class constructor, enable short open tags
|
||||||
@@ -83,7 +84,6 @@ class Smarty_Internal_Resource_PHP {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get filepath to compiled template
|
* Get filepath to compiled template
|
||||||
*
|
*
|
||||||
|
@@ -1,18 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Resource Registered
|
* Smarty Internal Plugin Resource Registered
|
||||||
*
|
*
|
||||||
* Implements the registered resource for Smarty template
|
* Implements the registered resource for Smarty template
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage TemplateResources
|
* @subpackage TemplateResources
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
/**
|
|
||||||
* Smarty Internal Plugin Resource Registered
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Smarty Internal Plugin Resource Registered
|
||||||
|
*/
|
||||||
class Smarty_Internal_Resource_Registered {
|
class Smarty_Internal_Resource_Registered {
|
||||||
public function __construct($smarty)
|
public function __construct($smarty)
|
||||||
{
|
{
|
||||||
@@ -68,6 +68,7 @@ class Smarty_Internal_Resource_Registered {
|
|||||||
array($_template->resource_name, &$time_stamp, $this->smarty));
|
array($_template->resource_name, &$time_stamp, $this->smarty));
|
||||||
return is_numeric($time_stamp) ? (int)$time_stamp : $time_stamp;
|
return is_numeric($time_stamp) ? (int)$time_stamp : $time_stamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get timestamp to template source by type and name
|
* Get timestamp to template source by type and name
|
||||||
*
|
*
|
||||||
|
@@ -1,18 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Resource Stream
|
* Smarty Internal Plugin Resource Stream
|
||||||
*
|
*
|
||||||
* Implements the streams as resource for Smarty template
|
* Implements the streams as resource for Smarty template
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage TemplateResources
|
* @subpackage TemplateResources
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
/**
|
|
||||||
* Smarty Internal Plugin Resource Stream
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Smarty Internal Plugin Resource Stream
|
||||||
|
*/
|
||||||
class Smarty_Internal_Resource_Stream {
|
class Smarty_Internal_Resource_Stream {
|
||||||
public function __construct($smarty)
|
public function __construct($smarty)
|
||||||
{
|
{
|
||||||
|
@@ -1,18 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Resource String
|
* Smarty Internal Plugin Resource String
|
||||||
*
|
*
|
||||||
* Implements the strings as resource for Smarty template
|
* Implements the strings as resource for Smarty template
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage TemplateResources
|
* @subpackage TemplateResources
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
/**
|
|
||||||
* Smarty Internal Plugin Resource String
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Smarty Internal Plugin Resource String
|
||||||
|
*/
|
||||||
class Smarty_Internal_Resource_String {
|
class Smarty_Internal_Resource_String {
|
||||||
public function __construct($smarty)
|
public function __construct($smarty)
|
||||||
{
|
{
|
||||||
|
@@ -1,14 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Security Handler
|
* Smarty Internal Plugin Security Handler
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Security
|
* @subpackage Security
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class contains all methods for security checking
|
* This class contains all methods for security checking
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Security_Handler {
|
class Smarty_Internal_Security_Handler {
|
||||||
function __construct($smarty)
|
function __construct($smarty)
|
||||||
{
|
{
|
||||||
@@ -115,6 +116,7 @@ class Smarty_Internal_Security_Handler {
|
|||||||
throw new SmartyException ("directory '{$_rp}' not allowed by security setting");
|
throw new SmartyException ("directory '{$_rp}' not allowed by security setting");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if directory of file resource is trusted.
|
* Check if directory of file resource is trusted.
|
||||||
*
|
*
|
||||||
|
@@ -9,7 +9,9 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once("smarty_internal_parsetree.php");
|
require_once("smarty_internal_parsetree.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class SmartyTemplateCompiler
|
* Class SmartyTemplateCompiler
|
||||||
*/
|
*/
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main compiler class
|
* Main compiler class
|
||||||
*/
|
*/
|
||||||
@@ -403,5 +404,4 @@ class Smarty_Internal_TemplateCompilerBase {
|
|||||||
throw new SmartyCompilerException($error_text);
|
throw new SmartyCompilerException($error_text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@@ -1,15 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Templatelexer
|
* Smarty Internal Plugin Templatelexer
|
||||||
*
|
*
|
||||||
* This is the lexer to break the template source into tokens
|
* This is the lexer to break the template source into tokens
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Templatelexer
|
* Smarty Internal Plugin Templatelexer
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Templatelexer
|
class Smarty_Internal_Templatelexer
|
||||||
{
|
{
|
||||||
public $data;
|
public $data;
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Plugin Templateparser
|
* Smarty Internal Plugin Templateparser
|
||||||
*
|
*
|
||||||
* This is the template parser.
|
* This is the template parser.
|
||||||
* It is generated from the internal.templateparser.y file
|
* It is generated from the internal.templateparser.y file
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Compiler
|
* @subpackage Compiler
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TP_yyToken implements ArrayAccess
|
class TP_yyToken implements ArrayAccess
|
||||||
{
|
{
|
||||||
|
@@ -1,36 +1,36 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project: Smarty: the PHP compiling template engine
|
* Project: Smarty: the PHP compiling template engine
|
||||||
* File: smarty_internal_unregister.php
|
* File: smarty_internal_unregister.php
|
||||||
* SVN: $Id: $
|
* SVN: $Id: $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Lesser General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* For questions, help, comments, discussion, etc., please join the
|
* For questions, help, comments, discussion, etc., please join the
|
||||||
* Smarty mailing list. Send a blank e-mail to
|
* Smarty mailing list. Send a blank e-mail to
|
||||||
* smarty-discussion-subscribe@googlegroups.com
|
* smarty-discussion-subscribe@googlegroups.com
|
||||||
*
|
*
|
||||||
* @link http://www.smarty.net/
|
* @link http://www.smarty.net/
|
||||||
* @copyright 2008 New Digital Group, Inc.
|
* @copyright 2008 New Digital Group, Inc.
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsInternal
|
* @subpackage PluginsInternal
|
||||||
* @version 3-SVN$Rev: 3286 $
|
* @version 3-SVN$Rev: 3286 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Smarty_Internal_Unregister {
|
class Smarty_Internal_Unregister {
|
||||||
|
|
||||||
@@ -159,3 +159,4 @@ class Smarty_Internal_Unregister {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
?>
|
@@ -274,3 +274,4 @@ class Smarty_Internal_Utility {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
@@ -1,36 +1,36 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project: Smarty: the PHP compiling template engine
|
* Project: Smarty: the PHP compiling template engine
|
||||||
* File: smarty_internal_wrapper.php
|
* File: smarty_internal_wrapper.php
|
||||||
* SVN: $Id: $
|
* SVN: $Id: $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Lesser General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* For questions, help, comments, discussion, etc., please join the
|
* For questions, help, comments, discussion, etc., please join the
|
||||||
* Smarty mailing list. Send a blank e-mail to
|
* Smarty mailing list. Send a blank e-mail to
|
||||||
* smarty-discussion-subscribe@googlegroups.com
|
* smarty-discussion-subscribe@googlegroups.com
|
||||||
*
|
*
|
||||||
* @link http://www.smarty.net/
|
* @link http://www.smarty.net/
|
||||||
* @copyright 2008 New Digital Group, Inc.
|
* @copyright 2008 New Digital Group, Inc.
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsInternal
|
* @subpackage PluginsInternal
|
||||||
* @version 3-SVN$Rev: 3286 $
|
* @version 3-SVN$Rev: 3286 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Smarty Backward Compatability Wrapper
|
* Smarty Backward Compatability Wrapper
|
||||||
|
@@ -1,15 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty write file plugin
|
* Smarty write file plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage PluginsInternal
|
* @subpackage PluginsInternal
|
||||||
* @author Monte Ohrt
|
* @author Monte Ohrt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Smarty Internal Write File Class
|
* Smarty Internal Write File Class
|
||||||
*/
|
*/
|
||||||
class Smarty_Internal_Write_File {
|
class Smarty_Internal_Write_File {
|
||||||
/**
|
/**
|
||||||
* Writes file in a save way to disk
|
* Writes file in a save way to disk
|
||||||
|
@@ -1,15 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Smarty plugin
|
* Smarty plugin
|
||||||
*
|
*
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @subpackage Security
|
* @subpackage Security
|
||||||
* @author Uwe Tews
|
* @author Uwe Tews
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class does contain the security settings
|
* This class does contain the security settings
|
||||||
*/
|
*/
|
||||||
class Smarty_Security {
|
class Smarty_Security {
|
||||||
/**
|
/**
|
||||||
* This determines how Smarty handles "<?php ... ?>" tags in templates.
|
* This determines how Smarty handles "<?php ... ?>" tags in templates.
|
||||||
@@ -81,15 +81,15 @@ class Smarty_Security {
|
|||||||
*/
|
*/
|
||||||
public $streams = array('file');
|
public $streams = array('file');
|
||||||
/**
|
/**
|
||||||
+ flag if constants can be accessed from template
|
* + flag if constants can be accessed from template
|
||||||
*/
|
*/
|
||||||
public $allow_constants = true;
|
public $allow_constants = true;
|
||||||
/**
|
/**
|
||||||
+ flag if super globals can be accessed from template
|
* + flag if super globals can be accessed from template
|
||||||
*/
|
*/
|
||||||
public $allow_super_globals = true;
|
public $allow_super_globals = true;
|
||||||
/**
|
/**
|
||||||
+ flag if {php} tag can be executed
|
* + flag if {php} tag can be executed
|
||||||
*/
|
*/
|
||||||
public $allow_php_tag = false;
|
public $allow_php_tag = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user