code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * Smarty Internal Plugin Compile Insert * * Compiles the {insert} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Insert extends Smarty_Internal_Com...
PHP
<?php /** * Smarty Resource Plugin * * @package Smarty * @subpackage TemplateResources * @author Rodney Rehm */ /** * Smarty Resource Plugin * * Wrapper Implementation for custom resource plugins * * @package Smarty * @subpackage TemplateResources */ abstract class Smarty_Resource_Custom extends Smarty_Re...
PHP
<?php /** * Smarty Internal Plugin Config File Compiler * * This is the config file compiler class. It calls the lexer and parser to * perform the compiling. * * @package Smarty * @subpackage Config * @author Uwe Tews */ /** * Main config file compiler class * * @package Smarty * @subpackage Config */ cl...
PHP
<?php /** * Smarty Internal Plugin Compile Append * * Compiles the {append} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Append Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Append extends Smarty_Internal_Comp...
PHP
<?php /** * Smarty write file plugin * * @package Smarty * @subpackage PluginsInternal * @author Monte Ohrt */ /** * Smarty Internal Write File Class * * @package Smarty * @subpackage PluginsInternal */ class Smarty_Internal_Write_File { /** * Writes file in a safe way to disk * * @param...
PHP
<?php /** * Smarty Internal Plugin Compile extend * * Compiles the {extends} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile extend Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Extends extends Smarty_Internal_CompileBase { ...
PHP
<?php /** * Smarty Internal Plugin Nocache Insert * * Compiles the {insert} tag into the cache file * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Nocach...
PHP
<?php /** * Smarty Internal Plugin Compile Object Block Function * * Compiles code for registered objects as block function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Object Block Function Class * * @package Smarty * @subpackage Compiler */ class ...
PHP
<?php /** * Smarty Internal Plugin Compile Include PHP * * Compiles the {include_php} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Insert Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Include_Php extends Smart...
PHP
<?php /** * Smarty Internal Plugin Compile While * * Compiles the {while} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile While Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_While extends Smarty_Internal_CompileB...
PHP
<?php /** * Smarty Internal Plugin Compile For * * Compiles the {for} {forelse} {/for} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile For Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_For extends Smarty_Interna...
PHP
<?php /** * Smarty Resource Plugin * * @package Smarty * @subpackage TemplateResources * @author Rodney Rehm */ /** * Smarty Resource Plugin * * Base implementation for resource plugins that don't compile cache * * @package Smarty * @subpackage TemplateResources */ abstract class Smarty_Resource_Recompile...
PHP
<?php /** * Smarty Internal Plugin Resource Eval * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews * @author Rodney Rehm */ /** * Smarty Internal Plugin Resource Eval * * Implements the strings as resource for Smarty template * * {@internal unlike string-resources the co...
PHP
<?php /** * Smarty Internal Plugin Filter Handler * * Smarty filter handler class * * @package Smarty * @subpackage PluginsInternal * @author Uwe Tews */ /** * Class for filter processing * * @package Smarty * @subpackage PluginsInternal */ class Smarty_Internal_Filter_Handler { /** * Run filter...
PHP
<?php /** * Smarty Internal Plugin CompileBase * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * This class does extend all internal compile plugins * * @package Smarty * @subpackage Compiler */ abstract class Smarty_Internal_CompileBase { /** * Array of names of required attr...
PHP
<?php /** * Smarty Internal Plugin Resource Extends * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews * @author Rodney Rehm */ /** * Smarty Internal Plugin Resource Extends * * Implements the file system as resource for Smarty which {extend}s a chain of template files templates * * @package Smarty...
PHP
<?php /** * Smarty Internal Plugin Compile Registered Block * * Compiles code for the execution of a registered block function * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Registered Block Class * * @package Smarty * @subpackage Compil...
PHP
<?php /** * Smarty Internal Plugin Compile If * * Compiles the {if} {else} {elseif} {/if} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile If Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBas...
PHP
<?php /** * Smarty Internal Plugin Compile Function * * Compiles the {function} {/function} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Function extends...
PHP
<?php /** * Smarty Internal Plugin Compile Nocache * * Compiles the {nocache} {/nocache} tags. * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Nocache Classv * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Nocache extends Sm...
PHP
<?php /** * Smarty Internal Plugin Templateparser * * This is the template parser. * It is generated from the internal.templateparser.y file * @package Smarty * @subpackage Compiler * @author Uwe Tews */ class TP_yyToken implements ArrayAccess { public $string = ''; public $metadata = array(); function __...
PHP
<?php /** * Smarty Internal Plugin Compile Foreach * * Compiles the {foreach} {foreachelse} {/foreach} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Foreach Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Foreac...
PHP
<?php /** * Smarty Internal Plugin Compile Block Plugin * * Compiles code for the execution of block plugin * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Block Plugin Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_P...
PHP
<?php /** * Smarty Internal Plugin * * @package Smarty * @subpackage TemplateResources */ /** * Smarty Resource Data Object * * Meta Data Container for Config Files * * @package Smarty * @subpackage TemplateResources * @author Rodney Rehm * * @property string $content * @property int $timestamp * @p...
PHP
<?php /** * Smarty Internal Plugin Compile Include * * Compiles the {include} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Include Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {...
PHP
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-06 18:09:23 compiled from "./Smarty/templates\header.tpl" */ ?> <?php /*%%SmartyHeaderCode:2159550c01f0a24d217-94743807%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' =...
PHP
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-06 18:27:54 compiled from "./Smarty/templates\Register.tpl" */ ?> <?php /*%%SmartyHeaderCode:386650c06b526c9bd8-41164516%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' ...
PHP
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-06 13:53:32 compiled from "./Smarty/templates\bar.tpl" */ ?> <?php /*%%SmartyHeaderCode:2484750c032b8ac2eb1-36190814%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => ...
PHP
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-06 22:40:24 compiled from "./Smarty/templates\index.tpl" */ ?> <?php /*%%SmartyHeaderCode:3057050c01f09b8b7b0-60611290%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' =>...
PHP
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-06 13:52:56 compiled from "./Smarty/templates\login.tpl" */ ?> <?php /*%%SmartyHeaderCode:663350c032446201e9-19100058%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => ...
PHP
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-06 18:09:23 compiled from "./Smarty/templates\footer.tpl" */ ?> <?php /*%%SmartyHeaderCode:2175250c01f0a276568-60554592%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' =...
PHP
<?php include"GameControl.php"; DataBaseInitialize(); ?>
PHP
<?php session_start(); include"Connect.php"; require('./Smarty/libs/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = './Smarty/blog/templates/'; $smarty->compile_dir = './Smarty/blog/templates_c/'; $smarty->config_dir = './Smarty/blog/configs/'; $smarty->cache_dir = './Smarty/blog/cache/'; ...
PHP
<?php session_start(); require('./Smarty/libs/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = './Smarty/templates/'; $smarty->compile_dir = './Smarty/templates_c/'; $smarty->config_dir = './Smarty/configs/'; $smarty->cache_dir = './Smarty/cache/'; $smarty->assign('title','1012'); $_S...
PHP
<?php $con = mysql_connect("127.0.0.1","root","decode~U"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_query("set names 'UTF8'"); ?>
PHP
<?php session_start(); include"Connect.php"; require('./Smarty/libs/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = './Smarty/blog/templates/'; $smarty->compile_dir = './Smarty/blog/templates_c/'; $smarty->config_dir = './Smarty/blog/configs/'; $smarty->cache_dir = './Smarty/blog/cache/'; ...
PHP
<?php session_start(); include "Connect.php"; require('./Smarty/libs/Smarty.class.php'); $xml = simplexml_load_file("GameSetting.xml"); $smarty = new Smarty; $smarty->template_dir = './Smarty/templates/'; $smarty->compile_dir = './Smarty/templates_c/'; $smarty->config_dir = './Smarty/configs/'; $smarty->c...
PHP
<?php session_start(); include "Connect.php"; require('./Smarty/libs/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = './Smarty/templates/'; $smarty->compile_dir = './Smarty/templates_c/'; $smarty->config_dir = './Smarty/configs/'; $smarty->cache_dir = './Smarty/cache/'; $smarty->assign...
PHP
<?php session_start(); require('./Smarty/libs/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = './Smarty/templates/'; $smarty->compile_dir = './Smarty/templates_c/'; $smarty->config_dir = './Smarty/configs/'; $smarty->cache_dir = './Smarty/cache/'; $smarty->assign('title','首页'); $smarty->assign('op...
PHP
<?php session_start(); require('./Smarty/libs/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = './Smarty/templates/'; $smarty->compile_dir = './Smarty/templates_c/'; $smarty->config_dir = './Smarty/configs/'; $smarty->cache_dir = './Smarty/cache/'; $smarty->assign('title','注册'); $smarty->...
PHP
<?php include"Connect.php"; if (mysql_query("CREATE DATABASE db_1012",$con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); } mysql_select_db("db_1012", $con); $sql = "CREATE TABLE UserSet ( id int(8) NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), Passwor...
PHP
<?php $con=$_GET["q"]; $nam=$_GET["n"]; $atti=$_GET["a"]; if($atti==0) { $xml_00 = simplexml_load_file("data/ChatData_0.xml"); $i=0; $Check=$xml_00->Message[$i]->Content; while($Check!='') {echo '&nbsp&nbsp&nbsp&nbsp'.$xml_00->Message[$i]->Name.' : '.$xml_00->Message[$i]->Content....
PHP
<?php function CleanChatData(){ $xmlchat_0 = simplexml_load_file("Chat/data/ChatData_0.xml"); $i=0; $Check=$xmlchat_0->Message[$i]->Name; while($Check!='') { $xmlchat_0->Message[$i]->Content=''; $xmlchat_0->Message[$i]->Name=''; $xmlchat_0->Message[$i]->Time=''; $i++; $Check=$xmlcha...
PHP
<?php /** * Project: Smarty: the PHP compiling template engine * File: SmartyBC.class.php * SVN: $Id: $ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation;...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty lower modifier plugin * * Type: modifier<br> * Name: lower<br> * Purpose: convert string to lowercase * * @link http://www.smarty.net/manual/en/language.modifier.lower.php lower (Smarty o...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty upper modifier plugin * * Type: modifier<br> * Name: lower<br> * Purpose: convert string to uppercase * * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Sm...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_words modifier plugin * * Type: modifier<br> * Name: count_words<br> * Purpose: count the number of words in a text * * @link http://www.smarty.net/manual/en/language.modifier.c...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty to_charset modifier plugin * * Type: modifier<br> * Name: to_charset<br> * Purpose: convert character encoding from internal encoding to $charset * * @author Rodney Rehm * @param ar...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_table} function plugin * * Type: function<br> * Name: html_table<br> * Date: Feb 17, 2003<br> * Purpose: make an html table from an array of data<br> * Params: * <pre> * - loop - array to ...
PHP
<?php /** * Smarty shared plugin * * @package Smarty * @subpackage PluginsShared */ /** * convert characters to their decimal unicode equivalents * * @link http://www.ibm.com/developerworks/library/os-php-unicode/index.html#listing3 for inspiration * @param string $string characters to calculate unicode of ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty strip_tags modifier plugin * * Type: modifier<br> * Name: strip_tags<br> * Purpose: strip html tags from text * * @link http://www.smarty.net/manual/en/language.modifier.strip.tags.ph...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty string_format modifier plugin * * Type: modifier<br> * Name: string_format<br> * Purpose: format strings via sprintf * * @link http://www.smarty.net/manual/en/language.modifier.string...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty default modifier plugin * * Type: modifier<br> * Name: default<br> * Purpose: designate default value for empty variables * * @link http://www.smarty.net/manual/en/language.modifier.d...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsShared */ /** * evaluate compiler parameter * * @param array $params parameter array as given to the compiler function * @param integer $index array index of the parameter to convert * @param mixed $default value to be returned if the ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_checkboxes} function plugin * * File: function.html_checkboxes.php<br> * Type: function<br> * Name: html_checkboxes<br> * Date: 24.Feb.2003<br> * Purpose: Prints out a list of checkb...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {cycle} function plugin * * Type: function<br> * Name: cycle<br> * Date: May 3, 2002<br> * Purpose: cycle through given values<br> * Params: * <pre> * - name - name of cycle (optional) * - value...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty unescape modifier plugin * * Type: modifier<br> * Name: unescape<br> * Purpose: unescape html entities * * @author Rodney Rehm * @param array $params parameters * @return string w...
PHP
<?php /** * Smarty shared plugin * * @package Smarty * @subpackage PluginsShared */ if(!function_exists('smarty_mb_wordwrap')) { /** * Wrap a string to a given number of characters * * @link http://php.net/manual/en/function.wordwrap.php for similarity * @param string $str the string t...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty from_charset modifier plugin * * Type: modifier<br> * Name: from_charset<br> * Purpose: convert character encoding from $charset to internal encoding * * @author Rodney Rehm * @para...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_paragraphs modifier plugin * * Type: modifier<br> * Name: count_paragraphs<br> * Purpose: count the number of paragraphs in a text * * @link http://www.smarty.net/manual/en/lang...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsModifier */ /** * Smarty spacify modifier plugin * * Type: modifier<br> * Name: spacify<br> * Purpose: add spaces between characters in a string * * @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_radios} function plugin * * File: function.html_radios.php<br> * Type: function<br> * Name: html_radios<br> * Date: 24.Feb.2003<br> * Purpose: Prints out a list of radio input type...
PHP
<?php /** * Smarty plugin to format text blocks * * @package Smarty * @subpackage PluginsBlock */ /** * Smarty {textformat}{/textformat} block plugin * * Type: block function<br> * Name: textformat<br> * Purpose: format text a certain way with preset styles * or custom wrap/indent setting...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty strip modifier plugin * * Type: modifier<br> * Name: strip<br> * Purpose: Replace all repeated spaces, newlines, tabs * with a single space or supplied replacement string.<...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifier */ /** * Smarty capitalize modifier plugin * * Type: modifier<br> * Name: capitalize<br> * Purpose: capitalize words in the string * * {@internal {$string|capitalize:true:true} is the fastest option for MBString enabled ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage Debug */ /** * Smarty debug_print_var modifier plugin * * Type: modifier<br> * Name: debug_print_var<br> * Purpose: formats variable contents for display in the console * * @author Monte Ohrt <monte at ohrt dot com> * @param array|obj...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty indent modifier plugin * * Type: modifier<br> * Name: indent<br> * Purpose: indent lines of text * * @link http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty onli...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {fetch} plugin * * Type: function<br> * Name: fetch<br> * Purpose: fetch file, web or ftp data and display results * * @link http://www.smarty.net/manual/en/language.function.fetch.php {fetch} * (Sma...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * @ignore */ require_once( SMARTY_PLUGINS_DIR .'shared.literal_compiler_param.php' ); /** * Smarty escape modifier plugin * * Type: modifier<br> * Name: escape<br> * Purpose: escape string...
PHP
<?php /** * Smarty shared plugin * * @package Smarty * @subpackage PluginsShared */ /** * Function: smarty_make_timestamp<br> * Purpose: used by other smarty functions to make a timestamp from a string. * * @author Monte Ohrt <monte at ohrt dot com> * @param DateTime|int|string $string date object, times...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * @ignore */ require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); /** * @ignore */ require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); /** * Smarty {html_select_date} plugin * * Type: func...
PHP
<?php /** * Smarty shared plugin * * @package Smarty * @subpackage PluginsShared */ if (version_compare(PHP_VERSION, '5.2.3', '>=')) { /** * escape_special_chars common function * * Function: smarty_function_escape_special_chars<br> * Purpose: used by other smarty functions to escape ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_options} function plugin * * Type: function<br> * Name: html_options<br> * Purpose: Prints the list of <option> tags generated from * the passed parameters<br> * Params: * <pre> * - name...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty wordwrap modifier plugin * * Type: modifier<br> * Name: wordwrap<br> * Purpose: wrap a string of text at a given length * * @link http://smarty.php.net/manual/en/language.modifier.w...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty cat modifier plugin * * Type: modifier<br> * Name: cat<br> * Date: Feb 24, 2003<br> * Purpose: catenate a value to a variable<br> * Input: string to catenate<br> * Example: ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {html_image} function plugin * * Type: function<br> * Name: html_image<br> * Date: Feb 24, 2003<br> * Purpose: format HTML tags for the image<br> * Examples: {html_image file="/images/masthead.gif"}<b...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {counter} function plugin * * Type: function<br> * Name: counter<br> * Purpose: print out a counter value * * @author Monte Ohrt <monte at ohrt dot com> * @link http://www.smarty.net/manual/en/language.functi...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifier */ /** * Smarty date_format modifier plugin * * Type: modifier<br> * Name: date_format<br> * Purpose: format datestamps via strftime<br> * Input:<br> * - string: input date string * - format: strftime ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage PluginsModifier */ /** * Smarty replace modifier plugin * * Type: modifier<br> * Name: replace<br> * Purpose: simple search/replace * * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual) * @...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_sentences modifier plugin * * Type: modifier<br> * Name: count_sentences * Purpose: count the number of sentences in a text * * @link http://www.smarty.net/manual/en/language.mo...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_characters modifier plugin * * Type: modifier<br> * Name: count_characteres<br> * Purpose: count the number of characters in a text * * @link http://www.smarty.net/manual/en/lan...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifier */ /** * Smarty truncate modifier plugin * * Type: modifier<br> * Name: truncate<br> * Purpose: Truncate a string to a certain length if necessary, * optionally splitting in the middle of a word, and * ...
PHP
<?php /** * Smarty shared plugin * * @package Smarty * @subpackage PluginsShared */ if (!function_exists('smarty_mb_str_replace')) { /** * Multibyte string replace * * @param string $search the string to be searched * @param string $replace the replacement string * @param string $sub...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifier */ /** * Smarty escape modifier plugin * * Type: modifier<br> * Name: escape<br> * Purpose: escape string for output * * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty...
PHP
<?php /** * Smarty plugin * * This plugin is only for Smarty2 BC * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {math} function plugin * * Type: function<br> * Name: math<br> * Purpose: handle math computations in template * * @link http://www.smarty.net/manual/en/language.functi...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifier */ /** * Smarty regex_replace modifier plugin * * Type: modifier<br> * Name: regex_replace<br> * Purpose: regular expression search/replace * * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php * ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFilter */ /** * Smarty trimwhitespace outputfilter plugin * * Trim unnecessary whitespace from HTML markup. * * @author Rodney Rehm * @param string $source input string * @param Smarty_Internal_Template $smarty Smarty ob...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFilter */ /** * Smarty htmlspecialchars variablefilter plugin * * @param string $source input string * @param Smarty_Internal_Template $smarty Smarty object * @return string filtered output */ function smarty_variablefilter...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * @ignore */ require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); /** * @ignore */ require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); /** * Smarty {html_select_time} function plugin * * Type: ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsFunction */ /** * Smarty {mailto} function plugin * * Type: function<br> * Name: mailto<br> * Date: May 21, 2002 * Purpose: automate mailto address link creation, and optionally encode them.<br> * Params: * <pre> * - address ...
PHP
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty noprint modifier plugin * * Type: modifier<br> * Name: noprint<br> * Purpose: return an empty string * * @author Uwe Tews * @param array $params parameters * @return string with...
PHP
<?php /** * Project: Smarty: the PHP compiling template engine * File: Smarty.class.php * SVN: $Id: Smarty.class.php 4551 2012-02-06 20:45:10Z rodneyrehm $ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License a...
PHP
<?php /** * Smarty Internal Plugin Compile Config Load * * Compiles the {config load} tag * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Config Load Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Config_Load extends ...
PHP
<?php /** * Smarty Internal Plugin Compile Section * * Compiles the {section} {sectionelse} {/section} tags * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Section Class * * @package Smarty * @subpackage Compiler */ class Smarty_Internal_Compile_Secti...
PHP
<?php /** * Smarty Internal Plugin Smarty Template Compiler Base * * This file contains the basic classes and methodes for compiling Smarty templates with lexer/parser * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * @ignore */ include ("smarty_internal_parsetree.php"); /** * Class Sm...
PHP
<?php /** * Smarty Internal Plugin Resource File * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews * @author Rodney Rehm */ /** * Smarty Internal Plugin Resource File * * Implements the file system as resource for Smarty templates * * @package Smarty * @subpackage TemplateResources *...
PHP
<?php /** * Smarty Internal Plugin Compile Function_Call * * Compiles the calls of user defined tags defined by {function} * * @package Smarty * @subpackage Compiler * @author Uwe Tews */ /** * Smarty Internal Plugin Compile Function_Call Class * * @package Smarty * @subpackage Compiler */ class Smarty_In...
PHP
<?php /** * Smarty read include path plugin * * @package Smarty * @subpackage PluginsInternal * @author Monte Ohrt */ /** * Smarty Internal Read Include Path Class * * @package Smarty * @subpackage PluginsInternal */ class Smarty_Internal_Get_Include_Path { /** * Return full file...
PHP
<?php /** * Smarty Internal Plugin Resource String * * @package Smarty * @subpackage TemplateResources * @author Uwe Tews * @author Rodney Rehm */ /** * Smarty Internal Plugin Resource String * * Implements the strings as resource for Smarty template * * {@internal unlike eval-resources the compiled state ...
PHP
<?php /** * Smarty Internal Plugin * * @package Smarty * @subpackage Cacher */ /** * Cache Handler API * * @package Smarty * @subpackage Cacher * @author Rodney Rehm */ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource { /** * fetch cached content and its modification time fr...
PHP